|
1 | 1 | { |
2 | | - "parser": "babel-eslint", |
3 | | - "rules": { |
4 | | - "strict": [ |
5 | | - 2, |
6 | | - "global" |
7 | | - ], |
8 | | - "quotes": [ |
9 | | - 2, |
10 | | - "single" |
11 | | - ], |
12 | | - "indent": [ |
13 | | - 2, |
14 | | - 2 |
15 | | - ], |
16 | | - "one-var": [ |
17 | | - 2, |
18 | | - "never" |
19 | | - ], |
20 | | - "consistent-return": 0, |
21 | | - "no-use-before-define": [ |
22 | | - 2, |
23 | | - "nofunc" |
24 | | - ], |
25 | | - "space-before-function-paren": [ |
26 | | - 2, |
27 | | - { |
28 | | - "anonymous": "always", |
29 | | - "named": "never" |
30 | | - } |
31 | | - ], |
32 | | - "keyword-spacing": 2, |
33 | | - "array-bracket-spacing": [ |
34 | | - 2, |
35 | | - "never" |
36 | | - ], |
37 | | - "space-in-parens": [ |
38 | | - 2, |
39 | | - "never" |
40 | | - ], |
41 | | - "quote-props": [ |
42 | | - 2, |
43 | | - "as-needed" |
44 | | - ], |
45 | | - "no-multiple-empty-lines": [ |
46 | | - 2, |
47 | | - { |
48 | | - "max": 2 |
49 | | - } |
50 | | - ], |
51 | | - "brace-style": [ |
52 | | - 2, |
53 | | - "1tbs" |
54 | | - ], |
55 | | - "curly": [ |
56 | | - 2, |
57 | | - "all" |
58 | | - ], |
59 | | - "key-spacing": [ |
60 | | - 2, |
61 | | - { |
62 | | - "beforeColon": false, |
63 | | - "afterColon": true |
64 | | - } |
65 | | - ], |
66 | | - "space-infix-ops": 2, |
67 | | - "no-eval": 2, |
68 | | - "no-with": 2, |
69 | | - "eol-last": 2, |
70 | | - "comma-dangle": [ |
71 | | - 2, |
72 | | - "never" |
73 | | - ], |
74 | | - "no-cond-assign": 2, |
75 | | - "no-constant-condition": 2, |
76 | | - "no-control-regex": 2, |
77 | | - "no-debugger": 2, |
78 | | - "no-dupe-args": 2, |
79 | | - "no-dupe-keys": 2, |
80 | | - "no-duplicate-case": 2, |
81 | | - "no-empty-character-class": 2, |
82 | | - "no-empty": 2, |
83 | | - "no-ex-assign": 2, |
84 | | - "no-extra-boolean-cast": 2, |
85 | | - "no-extra-semi": 2, |
86 | | - "no-func-assign": 2, |
87 | | - "no-inner-declarations": [ |
88 | | - 2, |
89 | | - "functions" |
90 | | - ], |
91 | | - "no-invalid-regexp": 2, |
92 | | - "no-irregular-whitespace": 2, |
93 | | - "no-negated-in-lhs": 2, |
94 | | - "no-obj-calls": 2, |
95 | | - "no-regex-spaces": 2, |
96 | | - "no-sparse-arrays": 2, |
97 | | - "no-unreachable": 2, |
98 | | - "use-isnan": 2, |
99 | | - "valid-typeof": 2, |
100 | | - "dot-notation": [ |
101 | | - 2, |
102 | | - { |
103 | | - "allowKeywords": true |
104 | | - } |
105 | | - ], |
106 | | - "eqeqeq": 2, |
107 | | - "no-alert": 2, |
108 | | - "no-caller": 2, |
109 | | - "no-extend-native": 2, |
110 | | - "no-extra-bind": 2, |
111 | | - "no-fallthrough": 2, |
112 | | - "no-implied-eval": 2, |
113 | | - "no-iterator": 2, |
114 | | - "no-labels": 2, |
115 | | - "no-lone-blocks": 2, |
116 | | - "no-loop-func": 2, |
117 | | - "no-multi-spaces": 2, |
118 | | - "no-multi-str": 2, |
119 | | - "no-native-reassign": 2, |
120 | | - "no-new-func": 2, |
121 | | - "no-new-wrappers": 2, |
122 | | - "no-new": 2, |
123 | | - "no-octal-escape": 2, |
124 | | - "no-octal": 2, |
125 | | - "no-proto": 2, |
126 | | - "no-redeclare": 2, |
127 | | - "no-return-assign": 2, |
128 | | - "no-script-url": 2, |
129 | | - "no-sequences": 2, |
130 | | - "no-unused-expressions": 2, |
131 | | - "yoda": 2, |
132 | | - "no-delete-var": 2, |
133 | | - "no-label-var": 2, |
134 | | - "no-shadow-restricted-names": 2, |
135 | | - "no-shadow": 2, |
136 | | - "no-undef-init": 2, |
137 | | - "no-undef": 2, |
138 | | - "no-unused-vars": [ |
139 | | - 2, |
140 | | - { |
141 | | - "vars": "all", |
142 | | - "args": "after-used" |
143 | | - } |
144 | | - ], |
145 | | - "camelcase": 0, |
146 | | - "comma-spacing": 2, |
147 | | - "new-cap": 2, |
148 | | - "new-parens": 2, |
149 | | - "no-array-constructor": 2, |
150 | | - "no-mixed-spaces-and-tabs": [ |
151 | | - 2, |
152 | | - false |
153 | | - ], |
154 | | - "no-new-object": 2, |
155 | | - "no-spaced-func": 2, |
156 | | - "no-trailing-spaces": 2, |
157 | | - "no-underscore-dangle": 2, |
158 | | - "no-extra-parens": 2, |
159 | | - "semi-spacing": [ |
160 | | - 2, |
161 | | - { |
162 | | - "before": false, |
163 | | - "after": true |
164 | | - } |
165 | | - ], |
166 | | - "semi": 2 |
167 | | - }, |
168 | | - "env": { |
169 | | - "node": true, |
170 | | - "mocha": true, |
171 | | - "es6": true |
172 | | - } |
| 2 | + "root": true, |
| 3 | + "parser": "@typescript-eslint/parser", |
| 4 | + "plugins": ["@typescript-eslint"], |
| 5 | + "rules": { |
| 6 | + "keyword-spacing": 2, |
| 7 | + "array-bracket-spacing": [2, "never"], |
| 8 | + "space-in-parens": [2, "never"], |
| 9 | + "no-multiple-empty-lines": [ |
| 10 | + 2, |
| 11 | + { |
| 12 | + "max": 2 |
| 13 | + } |
| 14 | + ], |
| 15 | + "no-eval": 2, |
| 16 | + "no-with": 2, |
| 17 | + "no-debugger": 2, |
| 18 | + "no-dupe-args": 2, |
| 19 | + "no-dupe-keys": 2, |
| 20 | + "no-duplicate-case": 2, |
| 21 | + "no-empty-character-class": 2, |
| 22 | + "no-empty": 2, |
| 23 | + "no-ex-assign": 2, |
| 24 | + "no-extra-boolean-cast": 2, |
| 25 | + "no-extra-semi": 2, |
| 26 | + "no-func-assign": 2, |
| 27 | + "no-inner-declarations": [2, "functions"], |
| 28 | + "no-invalid-regexp": 2, |
| 29 | + "no-irregular-whitespace": 2, |
| 30 | + "no-negated-in-lhs": 2, |
| 31 | + "no-obj-calls": 2, |
| 32 | + "no-regex-spaces": 2, |
| 33 | + "no-sparse-arrays": 2, |
| 34 | + "no-unreachable": 2, |
| 35 | + "use-isnan": 2, |
| 36 | + "valid-typeof": 2 |
| 37 | + }, |
| 38 | + "extends": [ |
| 39 | + "eslint:recommended", |
| 40 | + "plugin:@typescript-eslint/eslint-recommended", |
| 41 | + "plugin:@typescript-eslint/recommended", |
| 42 | + "prettier" |
| 43 | + ] |
173 | 44 | } |
0 commit comments