Skip to content

Commit

Permalink
Chore: avoid using deprecated rules on ESLint codebase (#8708)
Browse files Browse the repository at this point in the history
This updates eslint-config-eslint to remove deprecated rules in favor of their newer alternatives.
  • Loading branch information
not-an-aardvark committed Jun 11, 2017
1 parent 389feba commit 4aefb49
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions packages/eslint-config-eslint/default.yml
Expand Up @@ -36,7 +36,6 @@ rules:
}]
max-statements-per-line: "error"
new-cap: "error"
newline-after-var: "error"
new-parens: "error"
no-alert: "error"
no-array-constructor: "error"
Expand All @@ -62,7 +61,6 @@ rules:
no-multi-spaces: "error"
no-multi-str: "error"
no-multiple-empty-lines: ["error", {max: 2, maxBOF: 0, maxEOF: 0}]
no-native-reassign: "off"
no-nested-ternary: "error"
no-new: "error"
no-new-func: "error"
Expand Down Expand Up @@ -101,6 +99,19 @@ rules:
object-shorthand: "error"
one-var-declaration-per-line: "error"
operator-linebreak: "error"
padding-line-between-statements: [
"error",
{
blankLine: "always",
prev: ["const", "let", "var"],
next: "*"
},
{
blankLine: "any",
prev: ["const", "let", "var"],
next: ["const", "let", "var"]
}
]
prefer-arrow-callback: "error"
prefer-const: "error"
prefer-promise-reject-errors: "error"
Expand Down

0 comments on commit 4aefb49

Please sign in to comment.