Bug 1793921 - Don't add local code as explicit dependency to storybook. r=rjl

This caused our linting infrastructure to get into an infinite loop, since those paths were symlinked into node_modules. Also fixes some stray linting that happened once the linter could handle the node_modules directory.

Differential Revision: https://phabricator.services.mozilla.com/D158833

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Martin Giger 2022-10-07 23:56:22 +00:00
Родитель 304fb533f5
Коммит 6aa8077489
4 изменённых файлов: 9 добавлений и 48 удалений

Просмотреть файл

@ -1,6 +1,9 @@
--- ---
extends: default extends: default
ignore: |
*node_modules*
rules: rules:
document-end: document-end:
present: false present: false

48
mail/components/storybook/package-lock.json сгенерированный
Просмотреть файл

@ -8,10 +8,6 @@
"name": "mail-storybook", "name": "mail-storybook",
"version": "1.0.0", "version": "1.0.0",
"license": "MPL-2.0", "license": "MPL-2.0",
"dependencies": {
"comm-central": "file:../../..",
"mozilla-central": "file:../../../.."
},
"devDependencies": { "devDependencies": {
"@babel/core": "^7.19.3", "@babel/core": "^7.19.3",
"@fluent/bundle": "^0.17.1", "@fluent/bundle": "^0.17.1",
@ -26,8 +22,11 @@
"lit": "^2.3.1" "lit": "^2.3.1"
} }
}, },
"../../..": {}, "../../..": {
"extraneous": true
},
"../../../..": { "../../../..": {
"extraneous": true,
"license": "MPL-2.0", "license": "MPL-2.0",
"devDependencies": { "devDependencies": {
"@babel/core": "7.19.1", "@babel/core": "7.19.1",
@ -10471,10 +10470,6 @@
"node": ">= 0.8" "node": ">= 0.8"
} }
}, },
"node_modules/comm-central": {
"resolved": "../../..",
"link": true
},
"node_modules/comma-separated-tokens": { "node_modules/comma-separated-tokens": {
"version": "1.0.8", "version": "1.0.8",
"resolved": "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-1.0.8.tgz", "resolved": "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-1.0.8.tgz",
@ -15799,10 +15794,6 @@
"rimraf": "bin.js" "rimraf": "bin.js"
} }
}, },
"node_modules/mozilla-central": {
"resolved": "../../../..",
"link": true
},
"node_modules/ms": { "node_modules/ms": {
"version": "2.1.2", "version": "2.1.2",
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
@ -29319,9 +29310,6 @@
"delayed-stream": "~1.0.0" "delayed-stream": "~1.0.0"
} }
}, },
"comm-central": {
"version": "file:../../.."
},
"comma-separated-tokens": { "comma-separated-tokens": {
"version": "1.0.8", "version": "1.0.8",
"resolved": "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-1.0.8.tgz", "resolved": "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-1.0.8.tgz",
@ -33450,34 +33438,6 @@
} }
} }
}, },
"mozilla-central": {
"version": "file:../../../..",
"requires": {
"@babel/core": "7.19.1",
"@babel/eslint-parser": "7.19.1",
"@babel/eslint-plugin": "7.19.1",
"@babel/plugin-syntax-jsx": "7.18.6",
"@microsoft/eslint-plugin-sdl": "github:mozfreddyb/eslint-plugin-sdl#17b22cd527682108af7a1a4edacf69cb7a9b4a06",
"eslint": "8.24.0",
"eslint-config-prettier": "8.5.0",
"eslint-plugin-fetch-options": "0.0.5",
"eslint-plugin-file-header": "0.0.1",
"eslint-plugin-html": "7.1.0",
"eslint-plugin-import": "2.26.0",
"eslint-plugin-jest": "23.20.0",
"eslint-plugin-jsdoc": "39.3.6",
"eslint-plugin-jsx-a11y": "6.6.1",
"eslint-plugin-mozilla": "file:tools/lint/eslint/eslint-plugin-mozilla",
"eslint-plugin-no-unsanitized": "4.0.1",
"eslint-plugin-prettier": "3.4.0",
"eslint-plugin-react": "7.29.4",
"eslint-plugin-react-hooks": "4.6.0",
"eslint-plugin-spidermonkey-js": "file:tools/lint/eslint/eslint-plugin-spidermonkey-js",
"jsdoc": "3.6.11",
"prettier": "1.19.1",
"yarn": "1.22.19"
}
},
"ms": { "ms": {
"version": "2.1.2", "version": "2.1.2",
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",

Просмотреть файл

@ -11,10 +11,7 @@
"author": "", "author": "",
"license": "MPL-2.0", "license": "MPL-2.0",
"private": true, "private": true,
"dependencies": { "dependencies": {},
"comm-central": "file:../../..",
"mozilla-central": "file:../../../.."
},
"devDependencies": { "devDependencies": {
"@babel/core": "^7.19.3", "@babel/core": "^7.19.3",
"@fluent/bundle": "^0.17.1", "@fluent/bundle": "^0.17.1",

Просмотреть файл

@ -1,5 +1,6 @@
comm/chat/protocols/matrix/lib comm/chat/protocols/matrix/lib
comm/chat/protocols/xmpp/lib comm/chat/protocols/xmpp/lib
comm/mail/components/storybook/storybook-static
comm/mailnews/mapi/include comm/mailnews/mapi/include
comm/third_party/botan comm/third_party/botan
comm/third_party/bzip2 comm/third_party/bzip2