Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat(eslint-plugin)!: change recommended config#729

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
JamesHenry merged 22 commits intomasterfromv2-update-recommended
Aug 13, 2019

Conversation

bradzacher
Copy link
Member

@bradzacherbradzacher commentedJul 20, 2019
edited
Loading

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

hassankhan reacted with hooray emoji
BREAKING: recommended config changes are considered breaking
@bradzacherbradzacher added enhancementNew feature or request breaking changeThis change will require a new major version to be released labelsJul 20, 2019
@bradzacherbradzacher added this to the2.0.0 milestoneJul 20, 2019
@bradzacherbradzacher mentioned this pull requestJul 20, 2019
14 tasks
@bradzacherbradzacher changed the titlefeat(eslint-plugin): change recommended configfeat(eslint-plugin)!: change recommended configJul 21, 2019
# 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
Copy link

codecovbot commentedJul 31, 2019
edited
Loading

Codecov Report

Merging#729 intomaster willdecrease coverage by0.01%.
The diff coverage is89.47%.

@@            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
Impacted FilesCoverage Δ
.../eslint-plugin/src/rules/no-useless-constructor.ts100% <ø> (ø)⬆️
...ackages/eslint-plugin/src/rules/prefer-includes.ts100% <ø> (ø)⬆️
packages/eslint-plugin/src/rules/ban-types.ts100% <ø> (ø)⬆️
packages/parser/src/scope/scope-manager.ts100% <ø> (ø)⬆️
...ages/eslint-plugin/src/rules/no-require-imports.ts100% <ø> (ø)⬆️
...slint-plugin/src/rules/no-unnecessary-qualifier.ts96.07% <ø> (ø)⬆️
...ges/eslint-plugin/src/rules/no-misused-promises.ts100% <ø> (ø)⬆️
packages/eslint-plugin-tslint/src/custom-linter.ts100% <ø> (ø)⬆️
.../eslint-plugin/src/rules/triple-slash-reference.ts90% <ø> (ø)⬆️
...kages/eslint-plugin/src/rules/class-name-casing.ts85.71% <ø> (ø)⬆️
... and60 more

@glen-84
Copy link
Contributor

@bradzacher Should thedocumentation also be updated?

bradzacher reacted with thumbs up emoji

Copy link
Member

@JamesHenryJamesHenry left a 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!

bradzacher reacted with thumbs up emoji
@JamesHenryJamesHenry merged commit428567d intomasterAug 13, 2019
@JamesHenryJamesHenry deleted the v2-update-recommended branchAugust 13, 2019 09:50
@bbugh
Copy link

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 (likeno-console) that we rely on was removed, but I've looked through this issue and the PRs and I don't see a comprehensive list.

We'd like to put the recommended ones back in because we have a huge code base that relied on them. Thank you!

@bradzacher
Copy link
MemberAuthor

@bbugh
You're probably looking for eslint's recommended list, which changed between eslint 5 and eslint 6:
https://github.com/eslint/eslint/blob/master/conf/eslint-recommended.js

We only change our configs, which are found here:
https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/eslint-plugin/src/configs

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:
https://github.com/bradzacher/eslint-config-brad

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.

bbugh reacted with heart emoji

@github-actionsgithub-actionsbot locked asresolvedand limited conversation to collaboratorsApr 20, 2020
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@mysticateamysticateamysticatea left review comments

@RetsamRetsamRetsam left review comments

@JamesHenryJamesHenryJamesHenry approved these changes

Assignees
No one assigned
Labels
breaking changeThis change will require a new major version to be releasedenhancementNew feature or request
Projects
None yet
Milestone
2.0.0
6 participants
@bradzacher@glen-84@bbugh@JamesHenry@mysticatea@Retsam

[8]ページ先頭

©2009-2025 Movatter.jp