|
1 | 1 | module.exports = {
|
2 |
| - env: { |
3 |
| - es6: true, |
4 |
| - node: true, |
| 2 | + "env": { |
| 3 | + "browser": true, |
| 4 | + "es6": true, |
| 5 | + "node": true |
5 | 6 | },
|
6 |
| - parser: "@typescript-eslint/parser", |
7 |
| - parserOptions: { |
8 |
| - project: "tsconfig.json", |
9 |
| - sourceType: "module", |
10 |
| - }, |
11 |
| - plugins: ["@typescript-eslint", "@typescript-eslint/tslint"], |
12 |
| - rules: { |
| 7 | + "extends": [], |
| 8 | + "rules": { |
13 | 9 | "@typescript-eslint/array-type": "error",
|
14 | 10 | "@typescript-eslint/interface-name-prefix": "error",
|
| 11 | + "@typescript-eslint/member-ordering": "off", |
| 12 | + "@typescript-eslint/no-explicit-any": "off", |
| 13 | + "@typescript-eslint/no-param-reassign": "off", |
| 14 | + "@typescript-eslint/no-parameter-properties": "off", |
| 15 | + "@typescript-eslint/no-use-before-declare": "off", |
| 16 | + "@typescript-eslint/promise-function-async": "off", |
| 17 | + "@typescript-eslint/unbound-method": "off", |
| 18 | + "arrow-body-style": "off", |
| 19 | + "default-case": "off", |
| 20 | + "linebreak-style": "off", |
| 21 | + "no-bitwise": "off", |
| 22 | + "no-empty": "off", |
| 23 | + "no-empty-functions": "off", |
15 | 24 | "no-magic-numbers": "off",
|
16 | 25 | "prefer-template": "off",
|
17 | 26 | "@typescript-eslint/tslint/config": [
|
18 | 27 | "error",
|
19 | 28 | {
|
20 |
| - rules: { |
21 |
| - "no-implicit-dependencies": [true, "dev"], |
| 29 | + "rules": { |
| 30 | + "no-implicit-dependencies": [ |
| 31 | + true, |
| 32 | + "dev" |
| 33 | + ], |
22 | 34 | "strict-boolean-expressions": [
|
23 | 35 | true,
|
24 | 36 | "allow-boolean-or-undefined",
|
25 |
| - "allow-number", |
26 |
| - ], |
27 |
| - }, |
28 |
| - }, |
29 |
| - ], |
| 37 | + "allow-number" |
| 38 | + ] |
| 39 | + } |
| 40 | + } |
| 41 | + ] |
| 42 | + }, |
| 43 | + "globals": {}, |
| 44 | + "parser": "@typescript-eslint/parser", |
| 45 | + "parserOptions": { |
| 46 | + "project": "tsconfig.json", |
| 47 | + "sourceType": "module" |
30 | 48 | },
|
| 49 | + "plugins": [ |
| 50 | + "@typescript-eslint", |
| 51 | + "@typescript-eslint/tslint" |
| 52 | + ], |
| 53 | + "settings": { |
| 54 | + "import/resolver": { |
| 55 | + "node": { |
| 56 | + "extensions": [ |
| 57 | + ".mjs", |
| 58 | + ".js", |
| 59 | + ".json" |
| 60 | + ] |
| 61 | + } |
| 62 | + }, |
| 63 | + "import/extensions": [ |
| 64 | + ".js", |
| 65 | + ".mjs", |
| 66 | + ".jsx" |
| 67 | + ], |
| 68 | + "import/core-modules": [], |
| 69 | + "import/ignore": [ |
| 70 | + "node_modules", |
| 71 | + "\\.(coffee|scss|css|less|hbs|svg|json)$" |
| 72 | + ] |
| 73 | + } |
31 | 74 | };
|
0 commit comments