|
| 1 | +module.exports = { |
| 2 | + parser: '@typescript-eslint/parser', |
| 3 | + parserOptions: { |
| 4 | + sourceType: 'module', |
| 5 | + }, |
| 6 | + plugins: [ '@typescript-eslint/eslint-plugin' ], |
| 7 | + extends: [ |
| 8 | + 'plugin:@typescript-eslint/eslint-recommended', |
| 9 | + 'plugin:@typescript-eslint/recommended', |
| 10 | + 'prettier', |
| 11 | + 'prettier/@typescript-eslint', |
| 12 | + ], |
| 13 | + root: true, |
| 14 | + env: { |
| 15 | + node: true, |
| 16 | + jest: true, |
| 17 | + 'shared-node-browser': true, |
| 18 | + es6: true |
| 19 | + }, |
| 20 | + rules: { |
| 21 | + '@typescript-eslint/no-empty-interface': 'off', |
| 22 | + '@typescript-eslint/no-namespace': 'off', |
| 23 | + '@typescript-eslint/ban-types': 'off', |
| 24 | + '@typescript-eslint/no-var-requires': 'off', |
| 25 | + '@typescript-eslint/interface-name-prefix': 'off', |
| 26 | + '@typescript-eslint/explicit-function-return-type': 'off', |
| 27 | + '@typescript-eslint/no-explicit-any': 'off', |
| 28 | + '@typescript-eslint/explicit-module-boundary-types': 'off', |
| 29 | + '@typescript-eslint/ban-ts-comment': 'off', |
| 30 | + '@typescript-eslint/no-empty-function': 'off', |
| 31 | + '@typescript-eslint/no-unused-vars': 'off', |
| 32 | + 'prefer-rest-params': 'off', |
| 33 | + '@typescript-eslint/no-this-alias': 'off', |
| 34 | + 'semi':[ 'error','always' ], |
| 35 | + 'prefer-spread': 'off', |
| 36 | + "array-bracket-spacing": [ "error","always" ], |
| 37 | + "object-curly-spacing": [ "error","always" ] |
| 38 | + }, |
| 39 | +}; |
0 commit comments