|
1 | 1 | module.exports = { |
2 | | - env: { |
3 | | - commonjs: true, |
4 | | - es6: true, |
5 | | - node: true, |
6 | | - }, |
7 | | - extends: 'airbnb-base', |
8 | | - globals: { |
9 | | - Atomics: 'readonly', |
10 | | - SharedArrayBuffer: 'readonly', |
11 | | - }, |
| 2 | + extends: [ |
| 3 | + 'airbnb-typescript/base', |
| 4 | + 'plugin:@typescript-eslint/recommended', |
| 5 | + 'plugin:@typescript-eslint/recommended-requiring-type-checking', |
| 6 | + ], |
| 7 | + parser: "@typescript-eslint/parser", |
12 | 8 | parserOptions: { |
13 | | - ecmaVersion: 2018, |
| 9 | + project: './tsconfig.json', |
14 | 10 | }, |
15 | 11 | rules: { |
16 | | - 'no-trailing-spaces': 'off', |
17 | | - 'padded-blocks': 'off', |
18 | | - 'no-console': 'off', |
19 | | - 'arrow-parens': 'off', |
20 | | - 'no-return-assign': 'off', |
21 | | - 'no-empty': 'off', |
| 12 | + 'no-param-reassign': 'off', |
| 13 | + 'no-void': 'off', |
| 14 | + 'max-len': ["error", { "code": 150 }], |
22 | 15 | 'consistent-return': 'off', |
23 | | - 'no-shadow': 'off', |
24 | | - 'no-plusplus': 'off', |
25 | | - 'no-case-declarations': 'off', |
26 | | - 'class-methods-use-this': 'off' |
| 16 | + 'object-curly-newline': 'off', |
| 17 | + 'import/prefer-default-export': 'off', |
| 18 | + '@typescript-eslint/no-unsafe-assignment': 'off', |
| 19 | + '@typescript-eslint/no-unsafe-return': 'off', |
| 20 | + '@typescript-eslint/no-unsafe-call': 'off', |
| 21 | + '@typescript-eslint/no-unsafe-member-access': 'off', |
| 22 | + '@typescript-eslint/no-misused-promises': 'off', |
| 23 | + '@typescript-eslint/no-unused-expressions': 'off', |
| 24 | + '@typescript-eslint/restrict-template-expressions': 'off', |
| 25 | + '@typescript-eslint/explicit-module-boundary-types': 'off' |
27 | 26 | }, |
28 | 27 | overrides: [ |
29 | 28 | { |
30 | 29 | files: [ |
31 | | - 'tests/**/*.test.js' |
| 30 | + 'test/**/*.ts' |
32 | 31 | ], |
33 | 32 | env: { |
34 | 33 | mocha: true |
35 | 34 | }, |
36 | 35 | rules: { |
37 | 36 | 'prefer-arrow-callback': 'off', |
38 | | - 'func-names': 'off', |
39 | | - 'no-loop-func': 'off', |
40 | | - 'no-await-in-loop': 'off', |
41 | | - 'no-restricted-syntax': 'off', |
42 | | - 'max-len': 'off' |
| 37 | + 'func-names': 'off' |
43 | 38 | } |
44 | 39 | } |
45 | | - ] |
| 40 | + ], |
| 41 | + ignorePatterns: ["*.js"] |
46 | 42 | }; |
0 commit comments