-
-
Notifications
You must be signed in to change notification settings - Fork 71
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
New: Changing Base Path of overrides
and ignorePatterns
#37
New: Changing Base Path of overrides
and ignorePatterns
#37
Conversation
overrides
and ignorePatterns
that CLI Options Specifyoverrides
and ignorePatterns
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will solve the issue I reported in eslint/eslint#12278. In fact, I took the new proposed behavior for granted for both the shared ESLint config and the list of ignores. I'm sure this will help to provide solid configurations for big projects like WordPress (https://www.npmjs.com/package/@wordpress/scripts) which offer reusable scripts with default configs which are distributed as CLI commands executed using sourced located in node_modules
folder.
designs/2019-changing-base-path-in-config-files-that-cli-options-specify/README.md
Show resolved
Hide resolved
designs/2019-changing-base-path-in-config-files-that-cli-options-specify/README.md
Show resolved
Hide resolved
I have moved this RFC to the final commenting phase because the team looks approving. |
* Breaking: change relative paths with --config (refs eslint/rfcs#37) * update docs * Breaking: improve plugin resolving (refs eslint/rfcs#47) * replace getRules by getRulesForFile (refs eslint/rfcs#47) * replace rulesMeta by getRuleMeta (refs eslint/rfcs#47) * replace report.usedDeprecatedRules by report.results[].usedDeprecatedRules * Revert "replace report.usedDeprecatedRules by report.results[].usedDeprecatedRules" This reverts commit f3cc32f. * Revert "replace rulesMeta by getRuleMeta (refs eslint/rfcs#47)" This reverts commit 0d6afaf. * Revert "replace getRules by getRulesForFile (refs eslint/rfcs#47)" This reverts commit d29f613. * update docs * Update docs/user-guide/configuring.md Co-Authored-By: Kai Cataldo <[email protected]> * fix markdownlint error Co-authored-by: Kai Cataldo <[email protected]>
Summary
This RFC changes the base path of
overrides
,ignorePatterns
, and.eslintignore
from the directory which contains the config file to the current working directory if the config file was specified by CLI options--config
or--ignore-path
.Related Issues
overrides
from config in npm package looks for files in node_modules eslint#12278