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
feat(eslint-plugin)!: change recommended config #729
Conversation
BREAKING: recommended config changes are considered breaking
# Conflicts: # packages/eslint-plugin/src/configs/base.json # packages/eslint-plugin/src/configs/recommended.json
# Conflicts: # packages/eslint-plugin/README.md # packages/eslint-plugin/src/configs/base.json # packages/eslint-plugin/src/configs/recommended.json # packages/eslint-plugin/src/rules/no-triple-slash-reference.ts # packages/eslint-plugin/src/rules/prefer-interface.ts
# Conflicts: # packages/eslint-plugin/README.md
# Conflicts: # .eslintrc.json # packages/eslint-plugin/src/rules/camelcase.ts # packages/eslint-plugin/src/rules/indent-new-do-not-use/index.ts # packages/eslint-plugin/src/rules/prefer-string-starts-ends-with.ts # packages/eslint-plugin/tests/rules/indent/utils.ts # packages/eslint-plugin/tools/validate-docs/validate-table-structure.ts # packages/parser/src/analyze-scope.ts # packages/typescript-estree/tests/lib/semanticInfo.ts # yarn.lock
Codecov Report
@@ Coverage Diff @@
## master #729 +/- ##
==========================================
- Coverage 94.21% 94.19% -0.02%
==========================================
Files 112 112
Lines 4821 4825 +4
Branches 1336 1338 +2
==========================================
+ Hits 4542 4545 +3
- Misses 159 160 +1
Partials 120 120
|
@bradzacher Should the documentation also be updated? |
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 contains some important updates to defaults of rules etc, and in general has a large diff, so I'm going to merge it and make the updates we discussed in a follow up.
Thanks again for doing this!
Is there a full list of what was removed? We upgraded to the latest 2.x release from 1.x and notice a bunch of stuff (like We'd like to put the recommended ones back in because we have a huge code base that relied on them. Thank you! |
@bbugh We only change our configs, which are found here: If you look at #651, you'll see an in-depth list of every single rule, and why or why not it was included in our v2 list. As an aside, have a look at my personal config repo: In there I have tooling which strictly types config files to ensure I'm configuring rules correctly, and to ensure that I've configured every single available rule. I strongly recommend that any appropriately large codebase should take ownership of their eslint config, and think about every single rule. It will take a few hours to do e2e, sure, but the wins in terms of strict code style, error catching, etc are completely worth it for a large project. |
BREAKING CHANGE: recommended config changes are considered breaking
See #651 for more info about what was included and why
Fixes #651
Fixes #433
Fixes #201
Fixes #493
Fixes #759
Fixes #822