|
1 | 1 | {
|
| 2 | + "root": true, |
| 3 | + "extends": [ |
| 4 | + "eslint:recommended", |
| 5 | + "plugin:@typescript-eslint/recommended" |
| 6 | + ], |
| 7 | + "parser": "@typescript-eslint/parser", |
| 8 | + "parserOptions": { |
| 9 | + "project": ["./tsconfig.json"] |
| 10 | + }, |
| 11 | + "plugins": [ |
| 12 | + "@typescript-eslint" |
| 13 | + ], |
2 | 14 | "env": {
|
3 | 15 | "browser": true,
|
4 | 16 | "node": true,
|
5 | 17 | "es6": true
|
6 | 18 | },
|
7 |
| - |
8 |
| - "parserOptions": { |
9 |
| - "ecmaVersion": 2018, |
10 |
| - "sourceType": "module", |
11 |
| - "ecmaFeatures": { |
12 |
| - "arrowFunctions": true, |
13 |
| - "binaryLiterals": true, |
14 |
| - "blockBindings": true, |
15 |
| - "classes": true, |
16 |
| - "defaultParams": true, |
17 |
| - "destructuring": true, |
18 |
| - "forOf": true, |
19 |
| - "generators": true, |
20 |
| - "modules": true, |
21 |
| - "objectLiteralComputedProperties": true, |
22 |
| - "objectLiteralDuplicateProperties": true, |
23 |
| - "objectLiteralShorthandMethods": true, |
24 |
| - "objectLiteralShorthandProperties": true, |
25 |
| - "octalLiterals": true, |
26 |
| - "regexUFlag": true, |
27 |
| - "regexYFlag": true, |
28 |
| - "spread": true, |
29 |
| - "superInFunctions": true, |
30 |
| - "templateStrings": true, |
31 |
| - "unicodeCodePointEscapes": true, |
32 |
| - "globalReturn": true, |
33 |
| - "jsx": true |
34 |
| - } |
35 |
| - }, |
36 |
| - |
37 | 19 | "rules": {
|
38 |
| - |
39 |
| - // |
40 |
| - //Possible Errors |
41 |
| - // |
42 |
| - // The following rules point out areas where you might have made mistakes. |
43 |
| - // |
44 |
| - "no-const-assign": 2, // disallow reassignment const variable |
45 |
| - "comma-dangle": 2, // disallow or enforce trailing commas |
46 |
| - "no-cond-assign": 0, // allow assignment in conditional expressions |
47 |
| - "no-console": 1, // disallow use of console (off by default in the node environment) |
48 |
| - "no-constant-condition": 2, // disallow use of constant expressions in conditions |
49 |
| - "no-control-regex": 2, // disallow control characters in regular expressions |
50 |
| - "no-debugger": 2, // disallow use of debugger |
51 |
| - "no-dupe-args": 2, // disallow duplicate arguments in functions |
52 |
| - "no-dupe-keys": 2, // disallow duplicate keys when creating object literals |
53 |
| - "no-duplicate-case": 2, // disallow a duplicate case label. |
54 |
| - "no-ex-assign": 2, // disallow assigning to the exception in a catch block |
55 |
| - "no-extra-boolean-cast": 2, // disallow double-negation boolean casts in a boolean context |
56 |
| - "no-extra-parens": 0, // disallow unnecessary parentheses (off by default) |
57 |
| - "no-extra-semi": 2, // disallow unnecessary semicolons |
58 |
| - "no-func-assign": 2, // disallow overwriting functions written as function declarations |
59 |
| - "no-inner-declarations": 2, // disallow function or variable declarations in nested blocks |
60 |
| - "no-invalid-regexp": 2, // disallow invalid regular expression strings in the RegExp constructor |
61 |
| - "no-irregular-whitespace": 2, // disallow irregular whitespace outside of strings and comments |
62 |
| - "no-negated-in-lhs": 2, // disallow negation of the left operand of an in expression |
63 |
| - "no-obj-calls": 2, // disallow the use of object properties of the global object (Math and JSON) as functions |
64 |
| - "no-regex-spaces": 2, // disallow multiple spaces in a regular expression literal |
65 |
| - "no-sparse-arrays": 2, // disallow sparse arrays |
66 |
| - "no-unreachable": 2, // disallow unreachable statements after a return, throw, continue, or break statement |
67 |
| - "use-isnan": 2, // disallow comparisons with the value NaN |
68 |
| - "valid-typeof": 2, // Ensure that the results of typeof are compared against a valid string |
69 |
| - |
70 |
| - // Variables |
71 |
| - // |
72 |
| - // These rules have to do with variable declarations. |
73 |
| - // |
74 |
| - "no-catch-shadow": 2, // disallow the catch clause parameter name being the same as a variable in the outer scope (off by default in the node environment) |
75 |
| - "no-delete-var": 2, // disallow deletion of variables |
76 |
| - "no-label-var": 2, // disallow labels that share a name with a variable |
77 |
| - "no-shadow-restricted-names": 2, // disallow shadowing of names such as arguments |
78 |
| - "no-undef": 2, // disallow use of undeclared variables unless mentioned in a /*global */ block |
79 |
| - "no-undef-init": 2, // disallow use of undefined when initializing variables |
80 |
| - "no-unused-vars": 2 // disallow declaration of variables that are not used in the code |
81 |
| - } |
| 20 | + "@typescript-eslint/no-explicit-any": 0 |
| 21 | + }, |
| 22 | + "overrides": [ |
| 23 | + { |
| 24 | + "files": ["*.ts"], |
| 25 | + "rules": { |
| 26 | + "no-undef": 0 |
| 27 | + } |
| 28 | + } |
| 29 | + ] |
82 | 30 | }
|
0 commit comments