Skip to content

Commit

Permalink
Disable @typescript-eslint/quotes rule
Browse files Browse the repository at this point in the history
The new rule `@typescript-eslint/quotes` has been added since `@typescript-eslint@2.1.0`.
See <https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/quotes.md>

- Update `@typescript-eslint/eslint-plugin` from 2.0.0 to 2.1.0
- Add the rule link to the "quotes" section in README.

Fix #104
  • Loading branch information
ybiquitous committed Sep 3, 2019
1 parent 793aa76 commit 4890c0a
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 23 deletions.
2 changes: 2 additions & 0 deletions @typescript-eslint.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

module.exports = {
rules: {
"@typescript-eslint/quotes": 0,

"@typescript-eslint/func-call-spacing": "off",
"@typescript-eslint/indent": "off",
"@typescript-eslint/member-delimiter-style": "off",
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ Example configuration:

### [quotes]

(The following applies to [babel/quotes] as well.)
(The following applies to [babel/quotes] and [@typescript-eslint/quotes] as well.)

**This rule requires certain options and certain Prettier options.**

Expand Down Expand Up @@ -785,7 +785,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 1.18.2
- @typescript-eslint/eslint-plugin 2.0.0
- @typescript-eslint/eslint-plugin 2.1.0
- eslint-plugin-babel 5.3.0
- eslint-plugin-flowtype 4.2.0
- eslint-plugin-react 7.14.3
Expand Down Expand Up @@ -892,3 +892,4 @@ several other npm scripts:
[travis-badge]: https://travis-ci.org/prettier/eslint-config-prettier.svg?branch=master
[travis]: https://travis-ci.org/prettier/eslint-config-prettier
[vue/html-self-closing]: https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/html-self-closing.md
[@typescript-eslint/quotes]: https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/quotes.md
40 changes: 21 additions & 19 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
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
"get-stdin": "^6.0.0"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "2.0.0",
"@typescript-eslint/parser": "2.0.0",
"@typescript-eslint/eslint-plugin": "2.1.0",
"@typescript-eslint/parser": "2.1.0",
"babel-eslint": "10.0.2",
"cross-spawn": "6.0.5",
"doctoc": "1.4.0",
Expand Down

0 comments on commit 4890c0a

Please sign in to comment.