-
-
Notifications
You must be signed in to change notification settings - Fork 174
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
fix: Separate ESLint API options from option.eslintConfig #798
Conversation
|
6e0121d
to
63e22e8
Compare
Well, this PR ended up becoming kinda breaking change so I changed the title. Previously, the ESLint API options, which should be served to ESLint constructor as a parameter ( This PR fixes the problem by creating |
Note: the half of diffs were caused by |
Codecov ReportBase: 99.66% // Head: 99.65% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #798 +/- ##
==========================================
- Coverage 99.66% 99.65% -0.01%
==========================================
Files 2 2
Lines 298 292 -6
Branches 88 88
==========================================
- Hits 297 291 -6
Misses 1 1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
The handling of `options.eslintConfig` was a bit of a mess. Config properties and API options had been merged into the same object and manually divided one by one. Even though this is technecally a breaking change, it would be barely a problem because the moved part had been not documented nor was intended to use. BREAKING CHANGE: `options.eslintConfig` no longer accepts ESLint API options (e.g. `extensions`, allowInlineConfig), despite they were not officially supported regarding to document. From now they must be in `options.eslintConfig.apiOptions`.
63e22e8
to
546b1e2
Compare
The huge diff is caused by all-contributors/cli update.
546b1e2
to
0cb51b2
Compare
Stale pull request |
This PR fixes the following error that occurs when
reportUnusedDisableDirectives
option in ESLint config file is set totrue
orfalse
:The property
reportUnusedDisableDirectives
should be boolean. What must be "error", "warn", "off", or null is one of API options which has the identical name.Relevant PR: #735