Skip to content

Commit

Permalink
Turn off @typescript-eslint/space-infix-ops (#164)
Browse files Browse the repository at this point in the history
TypeScript ESLint v4.6.0 has added a new rule: `@typescript-eslint/space-infix-ops`.
This rule is an extension of the core rule `space-infix-ops` that `eslint-config-prettier` has turned off already.

See also:
- https://github.com/typescript-eslint/typescript-eslint/releases/tag/v4.6.0
- https://github.com/typescript-eslint/typescript-eslint/blob/v4.6.0/packages/eslint-plugin/docs/rules/space-infix-ops.md
- https://github.com/prettier/eslint-config-prettier/blob/v6.14.0/index.js#L82
  • Loading branch information
ybiquitous committed Oct 27, 2020
1 parent 12b126d commit b875b6e
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 37 deletions.
1 change: 1 addition & 0 deletions @typescript-eslint.js
Expand Up @@ -15,6 +15,7 @@ module.exports = {
"@typescript-eslint/no-extra-semi": "off",
"@typescript-eslint/semi": "off",
"@typescript-eslint/space-before-function-paren": "off",
"@typescript-eslint/space-infix-ops": "off",
"@typescript-eslint/type-annotation-spacing": "off",
},
};
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -696,7 +696,7 @@ eslint-config-prettier has been tested with:
- eslint-config-prettier 2.10.0 and older were tested with ESLint 4.x
- eslint-config-prettier 2.1.1 and older were tested with ESLint 3.x
- prettier 2.1.2
- @typescript-eslint/eslint-plugin 4.5.0
- @typescript-eslint/eslint-plugin 4.6.0
- eslint-plugin-babel 5.3.1
- eslint-plugin-flowtype 5.2.0
- eslint-plugin-react 7.21.5
Expand Down
68 changes: 34 additions & 34 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -40,8 +40,8 @@
"get-stdin": "^6.0.0"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "4.5.0",
"@typescript-eslint/parser": "4.5.0",
"@typescript-eslint/eslint-plugin": "4.6.0",
"@typescript-eslint/parser": "4.6.0",
"babel-eslint": "10.1.0",
"cross-spawn": "7.0.3",
"doctoc": "1.4.0",
Expand Down

0 comments on commit b875b6e

Please sign in to comment.