Skip to content

Commit

Permalink
Replace eslint-plugin-typescript with @typescript-eslint/eslint-plugin (
Browse files Browse the repository at this point in the history
  • Loading branch information
TANIGUCHI Masaya authored and lydell committed Jan 22, 2019
1 parent f5f7549 commit d1254cd
Show file tree
Hide file tree
Showing 9 changed files with 935 additions and 913 deletions.
7 changes: 4 additions & 3 deletions .eslintrc.base.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,19 @@ module.exports = {
"react/jsx-no-bind": "off",
// Force a conflict with Prettier in test-lint/standard.js.
"standard/computed-property-even-spacing": ["error", "even"],
"unicorn/filename-case": "off",
// Force a conflict with Prettier in test-lint/babel.js.
"object-curly-spacing": "off",
"babel/object-curly-spacing": ["error", "never"]
},
overrides: [
{
files: ["*.ts", "*.tsx"],
parserOptions: { parser: "eslint-plugin-typescript/parser" },
parserOptions: { parser: "@typescript-eslint/parser" },
rules: {
// Force a conflict with Prettier in test-lint/typescript.js.
// This is included in "plugin:typescript/recommended".
"typescript/indent": "error"
// This is included in "plugin:@typescript-eslint/recommended".
"@typescript-eslint/indent": "error"
}
}
],
Expand Down
9 changes: 9 additions & 0 deletions @typescript-eslint.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
"use strict";

module.exports = {
rules: {
"@typescript-eslint/indent": "off",
"@typescript-eslint/member-delimiter-style": "off",
"@typescript-eslint/type-annotation-spacing": "off"
}
};
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@ configs.

A few ESLint plugins are supported as well:

- [@typescript-eslint/eslint-plugin]
- [eslint-plugin-babel]
- [eslint-plugin-flowtype]
- [eslint-plugin-react]
- [eslint-plugin-standard]
- [eslint-plugin-typescript]
- [eslint-plugin-unicorn]
- [eslint-plugin-vue]

Expand All @@ -79,11 +79,11 @@ Add extra exclusions for the plugins you use like so:
"extends": [
"some-other-config-you-use",
"prettier",
"prettier/@typescript-eslint",
"prettier/babel",
"prettier/flowtype",
"prettier/react",
"prettier/standard",
"prettier/typescript",
"prettier/unicorn",
"prettier/vue"
]
Expand Down Expand Up @@ -128,27 +128,27 @@ Exit codes:
{
"extends": [
"standard",
"plugin:@typescript-eslint/recommended",
"plugin:flowtype/recommended",
"plugin:react/recommended",
"plugin:typescript/recommended",
"plugin:unicorn/recommended",
"plugin:vue/recommended",
"prettier",
"prettier/@typescript-eslint",
"prettier/babel",
"prettier/flowtype",
"prettier/react",
"prettier/standard",
"prettier/typescript",
"prettier/unicorn",
"prettier/vue"
],
"plugins": [
"@typescript-eslint",
"babel",
"flowtype",
"react",
"prettier",
"react",
"standard",
"typescript",
"unicorn",
"vue"
],
Expand Down Expand Up @@ -716,11 +716,11 @@ 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.15.3
- @typescript-eslint/eslint-plugin 1.0.0
- eslint-plugin-babel 5.3.0
- eslint-plugin-flowtype 3.2.1
- eslint-plugin-react 7.12.4
- eslint-plugin-standard 4.0.0
- eslint-plugin-typescript 1.0.0-rc.1
- eslint-plugin-unicorn 7.0.0
- eslint-plugin-vue 5.1.0

Expand Down Expand Up @@ -788,6 +788,7 @@ several other npm scripts:

[MIT](LICENSE).

[@typescript-eslint/eslint-plugin]: https://github.com/typescript-eslint/typescript-eslint
[ESlint 5.7.0]: https://eslint.org/blog/2018/10/eslint-v5.7.0-released
[Prettier]: https://github.com/prettier/prettier
[babel/quotes]: https://github.com/babel/eslint-plugin-babel#rules
Expand All @@ -797,7 +798,6 @@ several other npm scripts:
[eslint-plugin-prettier]: https://github.com/prettier/eslint-plugin-prettier
[eslint-plugin-react]: https://github.com/yannickcr/eslint-plugin-react
[eslint-plugin-standard]: https://github.com/xjamundx/eslint-plugin-standard
[eslint-plugin-typescript]: https://github.com/bradzacher/eslint-plugin-typescript
[eslint-plugin-unicorn]: https://github.com/sindresorhus/eslint-plugin-unicorn
[eslint-plugin-vue]: https://github.com/vuejs/eslint-plugin-vue
[lines-around-comment]: https://eslint.org/docs/rules/lines-around-comment
Expand Down
Loading

0 comments on commit d1254cd

Please sign in to comment.