-
-
Notifications
You must be signed in to change notification settings - Fork 251
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
Move removed rules to deprecated section #245
Conversation
Awesome work! How did you manage to find all of these? Did you run some tool? |
I'm currently adding Prettier to my project so I'm using |
Ok! Just checking one more thing: Do you have a practical need for this, or did you make the PR more for like “correctness sake”? |
I will not install the |
I see! I think. It’s fine to use eslint-config-prettier just as a reference – I do that too in many projects. How does this PR help you use eslint-config-prettier as a reference? (Not questioning the validity of the PR, just trying to figure out the impact of this PR if any.) |
Reference, in the meaning of documentation.
|
The index.js file of eslint-config-prettier contains the same set of rules both before and after this PR. In other words, you haven’t explained how you use the information about which rules are deprecated in eslint-config-prettier. |
My configuration has all ESLint rules (except deprecated or removed). I looked all the rules in the |
Move many rules to deprecated section:
generator-star
: This rule was removed in ESLint v1.0 and replaced by the generator-star-spacing rule.no-arrow-condition
: This rule was removed in ESLint v2.0 and replaced by a combination of the no-confusing-arrow and no-constant-condition rules.no-comma-dangle
: This rule was removed in ESLint v1.0 and replaced by the comma-dangle rule.no-reserved-keys
: This rule was removed in ESLint v1.0 and replaced by the quote-props rule.no-space-before-semi
: This rule was removed in ESLint v1.0 and replaced by the semi-spacing rule.no-wrap-func
: This rule was removed in ESLint v1.0 and replaced by the no-extra-parens rule. The "functions" option in the new rule is equivalent to the removed rule.space-after-function-name
: This rule was removed in ESLint v1.0 and replaced by the space-before-function-paren rule.space-after-keywords
: This rule was removed in ESLint v2.0 and replaced by the keyword-spacing rule.space-before-function-parentheses
: This rule was removed in ESLint v1.0 and replaced by the space-before-function-paren rule. The name of the rule changed from “parentheses” to “paren” for consistency with the names of other rules.space-before-keywords
: This rule was removed in ESLint v2.0 and replaced by the keyword-spacing rule.space-in-brackets
: This rule was removed in ESLint v1.0 and replaced by the object-curly-spacing and array-bracket-spacing rules.space-return-throw-case
: This rule was removed in ESLint v2.0 and replaced by the keyword-spacing rule.space-unary-word-ops
: This rule was removed in ESLint v0.10.0 and replaced by the space-unary-ops rule.