-
-
Notifications
You must be signed in to change notification settings - Fork 947
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move signal-exit from devDependencies to dependencies. Fixes #3185 #3186
Conversation
@hudochenkov need patch release 😞 |
I'll do one now. |
Released as I might be remembering incorrectly, but didn't we add an eslint plugin or something similar to protected us from these missing dependencies issues? |
Thanks, @jeddy3! |
@jeddy3 we do have such rules, but they won't protect from this situation. We have package in |
That discussion was in #2978, it primarily revolved around the I had a quick look at the other rules not included in the Something to keep a lookout for, or possibly create a new ESLint rule maybe |
I tried using this plugin https://www.npmjs.com/package/eslint-plugin-implicit-dependencies and reverting the change in this PR, the result: npm run lint:js
> [email protected] lint:js /Users/netweb/dev/stylelint/stylelint
> eslint . --cache
/Users/netweb/dev/stylelint/stylelint/lib/__tests__/ignoreDisables.test.js
5:21 error Module "common-tags" is not listed as a dependency in package.json implicit-dependencies/no-implicit
/Users/netweb/dev/stylelint/stylelint/lib/__tests__/needlessDisables.test.js
6:21 error Module "common-tags" is not listed as a dependency in package.json implicit-dependencies/no-implicit
/Users/netweb/dev/stylelint/stylelint/lib/__tests__/standalone-cache.test.js
11:16 error Module "cp-file" is not listed as a dependency in package.json implicit-dependencies/no-implicit
12:20 error Module "file-exists-promise" is not listed as a dependency in package.json implicit-dependencies/no-implicit
/Users/netweb/dev/stylelint/stylelint/lib/__tests__/standalone-formatter.test.js
6:19 error Module "strip-ansi" is not listed as a dependency in package.json implicit-dependencies/no-implicit
/Users/netweb/dev/stylelint/stylelint/lib/__tests__/standalone-syntax.test.js
11:19 error Module "strip-ansi" is not listed as a dependency in package.json implicit-dependencies/no-implicit
/Users/netweb/dev/stylelint/stylelint/lib/formatters/__tests__/needlessDisablesStringFormatter.test.js
4:19 error Module "strip-ansi" is not listed as a dependency in package.json implicit-dependencies/no-implicit
5:21 error Module "common-tags" is not listed as a dependency in package.json implicit-dependencies/no-implicit
/Users/netweb/dev/stylelint/stylelint/lib/formatters/__tests__/prepareFormatterOutput.js
3:19 error Module "strip-ansi" is not listed as a dependency in package.json implicit-dependencies/no-implicit
/Users/netweb/dev/stylelint/stylelint/lib/formatters/__tests__/stringFormatter.test.js
5:21 error Module "common-tags" is not listed as a dependency in package.json implicit-dependencies/no-implicit
/Users/netweb/dev/stylelint/stylelint/lib/formatters/__tests__/verboseFormatter.test.js
4:21 error Module "common-tags" is not listed as a dependency in package.json implicit-dependencies/no-implicit
/Users/netweb/dev/stylelint/stylelint/lib/rules/at-rule-empty-line-before/__tests__/index.js
8:21 error Module "common-tags" is not listed as a dependency in package.json implicit-dependencies/no-implicit
/Users/netweb/dev/stylelint/stylelint/lib/rules/no-duplicate-selectors/__tests__/index.js
6:23 error Module "postcss-import" is not listed as a dependency in package.json implicit-dependencies/no-implicit
/Users/netweb/dev/stylelint/stylelint/lib/rules/selector-nested-pattern/__tests__/index.js
8:21 error Module "common-tags" is not listed as a dependency in package.json implicit-dependencies/no-implicit
/Users/netweb/dev/stylelint/stylelint/lib/utils/__tests__/nodeContextLookup.test.js
6:23 error Module "postcss-import" is not listed as a dependency in package.json implicit-dependencies/no-implicit
/Users/netweb/dev/stylelint/stylelint/scripts/benchmark-rule.js
4:19 error Module "benchmark" is not listed as a dependency in package.json implicit-dependencies/no-implicit
8:17 error Module "request" is not listed as a dependency in package.json implicit-dependencies/no-implicit
/Users/netweb/dev/stylelint/stylelint/system-tests/fix/fix.test.js
4:16 error Module "cp-file" is not listed as a dependency in package.json implicit-dependencies/no-implicit
5:13 error Module "del" is not listed as a dependency in package.json implicit-dependencies/no-implicit
/Users/netweb/dev/stylelint/stylelint/system-tests/systemTestUtils.js
5:19 error Module "strip-ansi" is not listed as a dependency in package.json implicit-dependencies/no-implicit
✖ 20 problems (20 errors, 0 warnings)
And |
#3185
I don't know how to test it. Or recreate a problem. But this package is required in our code. Even, though, we don't use
sync
method inwriteFileAtomic.js
, which is the only place uses this package.