Skip to content
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

Conversation

mysticatea
Copy link
Member

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

@mysticatea mysticatea added the Initial Commenting This RFC is in the initial feedback stage label Sep 19, 2019
@mysticatea mysticatea changed the title New: Changing Base Path of overrides and ignorePatterns that CLI Options Specify New: Changing Base Path of overrides and ignorePatterns Sep 19, 2019
Copy link

@gziolo gziolo left a 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.

@mysticatea mysticatea added Final Commenting This RFC is in the final week of commenting and removed Initial Commenting This RFC is in the initial feedback stage labels Oct 12, 2019
@mysticatea
Copy link
Member Author

I have moved this RFC to the final commenting phase because the team looks approving.

@mysticatea mysticatea added the breaking change This RFC contains breaking changes label Oct 14, 2019
@mysticatea mysticatea merged commit 67bb405 into master Oct 20, 2019
@mysticatea mysticatea deleted the changing-base-path-of-overrides-and-ignorepatterns-that-cli-options-specify branch October 20, 2019 05:24
mysticatea added a commit to eslint/eslint that referenced this pull request Feb 8, 2020
mysticatea added a commit to eslint/eslint that referenced this pull request Mar 23, 2020
anikethsaha pushed a commit to anikethsaha/eslint that referenced this pull request Mar 23, 2020
kaicataldo added a commit to eslint/eslint that referenced this pull request Mar 27, 2020
* 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 <kai@kaicataldo.com>

* fix markdownlint error

Co-authored-by: Kai Cataldo <kai@kaicataldo.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change This RFC contains breaking changes Final Commenting This RFC is in the final week of commenting
Projects
None yet
6 participants