Skip to content

Commit c95baae

Browse files
committed
refactor(possible errors): Update rules for Prettier integration
BREAKING CHANGE: Requires min eslint version of 4.x. BREAKING CHANGE: Multiple rules disabled and handled by Prettier, this will change code style for defaults based projects. Upgrade: After upgrading with defaults, any editor Prettier plugin can be used to update style. The pre-commit hook will also fix & write the prettier changes.
1 parent 2798140 commit c95baae

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

rules/possible-errors.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,13 @@ module.exports = {
5454

5555
// disallow unnecessary parentheses
5656
// http://eslint.org/docs/rules/no-extra-parens
57-
'no-extra-parens': ['off', 'all', {
58-
conditionalAssign: true,
59-
nestedBinaryExpressions: false,
60-
returnAssign: false,
61-
}],
57+
// This is handled by Prettier in Defaults 2.0
58+
'no-extra-parens': 'off',
6259

6360
// disallow unnecessary semicolons
6461
// http://eslint.org/docs/rules/no-extra-semi
65-
'no-extra-semi': 'error',
62+
// This is handled by Prettier in Defaults 2.0
63+
'no-extra-semi': 'off',
6664

6765
// disallow reassigning function declarations
6866
// http://eslint.org/docs/rules/no-func-assign
@@ -102,7 +100,8 @@ module.exports = {
102100

103101
// disallow confusing multiline expressions
104102
// http://eslint.org/docs/rules/no-unexpected-multiline
105-
'no-unexpected-multiline': 'error',
103+
// This is handled by Prettier in Defaults 2.0
104+
'no-unexpected-multiline': 'off',
106105

107106
// disallow unreachable code after return, throw, continue, and break statements
108107
// http://eslint.org/docs/rules/no-unreachable

0 commit comments

Comments
 (0)