|
1 | | -const parser = require("@typescript-eslint/parser"); |
2 | | -const typescriptPlugin = require("@typescript-eslint/eslint-plugin"); |
| 1 | +const parser = require('@typescript-eslint/parser'); |
| 2 | +const typescriptPlugin = require('@typescript-eslint/eslint-plugin'); |
3 | 3 |
|
4 | 4 | module.exports = [ |
5 | 5 | { |
6 | | - files: ["**/*.ts"], |
| 6 | + files: ['**/*.ts'], |
7 | 7 | languageOptions: { |
8 | 8 | parser: parser, |
9 | 9 | parserOptions: { |
10 | | - sourceType: "module", |
11 | | - project: "./tsconfig.json", |
| 10 | + sourceType: 'module', |
| 11 | + project: './tsconfig.json', |
12 | 12 | tsconfigRootDir: __dirname, |
13 | 13 | }, |
14 | 14 | }, |
15 | 15 | plugins: { |
16 | | - "@typescript-eslint": typescriptPlugin, |
| 16 | + '@typescript-eslint': typescriptPlugin, |
17 | 17 | }, |
18 | 18 | rules: { |
19 | | - "no-extra-semi": "off", |
20 | | - "no-irregular-whitespace": ["error", { skipTemplates: true }], |
21 | | - "@typescript-eslint/no-unused-vars": "error", |
22 | | - "@typescript-eslint/no-useless-constructor": "error", |
23 | | - "@typescript-eslint/explicit-function-return-type": ["warn", { |
24 | | - allowExpressions: true, |
25 | | - allowTypedFunctionExpressions: true, |
26 | | - }], |
27 | | - "@typescript-eslint/no-floating-promises": "error", |
28 | | - "@typescript-eslint/await-thenable": "error", |
29 | | - "eqeqeq": ["error", "always", { null: "ignore" }], |
| 19 | + 'no-extra-semi': 'off', |
| 20 | + 'no-irregular-whitespace': ['error', {skipTemplates: true}], |
| 21 | + '@typescript-eslint/no-unused-vars': 'error', |
| 22 | + '@typescript-eslint/no-useless-constructor': 'error', |
| 23 | + '@typescript-eslint/explicit-function-return-type': [ |
| 24 | + 'warn', |
| 25 | + { |
| 26 | + allowExpressions: true, |
| 27 | + allowTypedFunctionExpressions: true, |
| 28 | + }, |
| 29 | + ], |
| 30 | + '@typescript-eslint/no-floating-promises': 'error', |
| 31 | + '@typescript-eslint/await-thenable': 'error', |
| 32 | + eqeqeq: ['error', 'always', {null: 'ignore'}], |
30 | 33 | }, |
31 | 34 | }, |
32 | 35 | ]; |
0 commit comments