|
1 | 1 | module.exports = { |
2 | | - plugins: ['typescript'], |
3 | | - parser: 'typescript-eslint-parser', |
| 2 | + extends: ['prettier/@typescript-eslint'], |
| 3 | + plugins: ['@typescript-eslint'], |
| 4 | + parser: '@typescript-eslint/parser', |
4 | 5 | settings: { |
5 | 6 | 'import/resolver': { |
6 | 7 | typescript: { |
@@ -46,32 +47,35 @@ module.exports = { |
46 | 47 | 'import/no-named-as-default-member': 'off', // conflicts with typescript |
47 | 48 | 'import/no-named-as-default': 'off', // conflicts with typescript |
48 | 49 | // https://github.com/nzakas/eslint-plugin-typescript |
49 | | - 'typescript/adjacent-overload-signatures': 'off', // TSLint is better at this |
50 | | - 'typescript/class-name-casing': 'off', // TSLint is better at this |
51 | | - 'typescript/explicit-function-return-type': 'off', |
52 | | - 'typescript/explicit-member-accessibility': 'off', // TSLint is better at this |
53 | | - 'typescript/generic-type-naming': ['error', '^([TUKV]|T[A-Z][a-zA-Z]+)$'], |
54 | | - 'typescript/interface-name-prefix': 'off', // TSLint is better at this |
55 | | - 'typescript/member-delimiter-style': 'off', |
56 | | - 'typescript/member-naming': 'off', |
57 | | - 'typescript/member-ordering': 'off', // type annotations should come first |
58 | | - 'typescript/no-angle-bracket-type-assertion': 'off', // TSLint is better at this |
59 | | - 'typescript/no-array-constructor': 'error', |
60 | | - 'typescript/no-empty-interface': 'off', // TSLint is better at this |
61 | | - 'typescript/no-explicit-any': 'off', // TSLint is better at this |
62 | | - 'typescript/no-inferrable-types': 'off', // TSLint is better at this |
63 | | - 'typescript/no-namespace': 'off', // TSLint is better at this |
64 | | - 'typescript/no-non-null-assertion': 'off', // TSLint is better at this |
65 | | - 'typescript/no-parameter-properties': 'off', // TSLint is better at this |
66 | | - 'typescript/no-triple-slash-reference': 'off', // TSLint is better at this |
67 | | - 'typescript/no-type-alias': 'off', // TSLint is better at this |
68 | | - 'typescript/no-unused-vars': 'error', |
69 | | - 'typescript/no-var-requires': 'off', // TSLint is better at this |
70 | | - 'typescript/no-use-before-define': [ |
| 50 | + '@typescript-eslint/adjacent-overload-signatures': 'off', // TSLint is better at this |
| 51 | + '@typescript-eslint/class-name-casing': 'off', // TSLint is better at this |
| 52 | + '@typescript-eslint/explicit-function-return-type': 'off', |
| 53 | + '@typescript-eslint/explicit-member-accessibility': 'off', // TSLint is better at this |
| 54 | + '@typescript-eslint/generic-type-naming': [ |
| 55 | + 'error', |
| 56 | + '^([TUKV]|T[A-Z][a-zA-Z]+)$', |
| 57 | + ], |
| 58 | + '@typescript-eslint/interface-name-prefix': 'off', // TSLint is better at this |
| 59 | + '@typescript-eslint/member-delimiter-style': 'off', |
| 60 | + '@typescript-eslint/member-naming': 'off', |
| 61 | + '@typescript-eslint/member-ordering': 'off', // type annotations should come first |
| 62 | + '@typescript-eslint/no-angle-bracket-type-assertion': 'off', // TSLint is better at this |
| 63 | + '@typescript-eslint/no-array-constructor': 'error', |
| 64 | + '@typescript-eslint/no-empty-interface': 'off', // TSLint is better at this |
| 65 | + '@typescript-eslint/no-explicit-any': 'off', // TSLint is better at this |
| 66 | + '@typescript-eslint/no-inferrable-types': 'off', // TSLint is better at this |
| 67 | + '@typescript-eslint/no-namespace': 'off', // TSLint is better at this |
| 68 | + '@typescript-eslint/no-non-null-assertion': 'off', // TSLint is better at this |
| 69 | + '@typescript-eslint/no-parameter-properties': 'off', // TSLint is better at this |
| 70 | + '@typescript-eslint/no-triple-slash-reference': 'off', // TSLint is better at this |
| 71 | + '@typescript-eslint/no-type-alias': 'off', // TSLint is better at this |
| 72 | + '@typescript-eslint/no-unused-vars': 'error', |
| 73 | + '@typescript-eslint/no-var-requires': 'off', // TSLint is better at this |
| 74 | + '@typescript-eslint/no-use-before-define': [ |
71 | 75 | 'error', |
72 | 76 | {functions: true, classes: true, variables: true}, |
73 | 77 | ], |
74 | | - 'typescript/prefer-namespace-keyword': 'off', // TSLint is better at this |
75 | | - 'typescript/type-annotation-spacing': 'off', // not necessary with prettier |
| 78 | + '@typescript-eslint/prefer-namespace-keyword': 'off', // TSLint is better at this |
| 79 | + '@typescript-eslint/type-annotation-spacing': 'off', // not necessary with prettier |
76 | 80 | }, |
77 | 81 | }; |
0 commit comments