-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.eslintrc.js
56 lines (56 loc) · 1.35 KB
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: [
'@typescript-eslint',
'prettier',
],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
'prettier/@typescript-eslint',
],
parserOptions: {
ecmaVersion: 2018,
sourceType: "module"
},
env: {
es6: true,
browser: true,
jest: true
},
rules: {
"prettier/prettier": "error",
"no-unused-vars": 2,
"no-undef": 2,
"no-console": 0,
"eqeqeq": 2,
"guard-for-in": 2,
"no-extend-native": 2,
"wrap-iife": 2,
"new-cap": 2,
"no-caller": 2,
"no-multi-str": 0,
"dot-notation": 0,
"semi": [2, "always"],
"strict": [2, "global"],
"valid-jsdoc": 0,
"no-irregular-whitespace": 1,
"no-multi-spaces": 2,
"one-var": [2, "never"],
"constructor-super": 2,
"no-this-before-super": 2,
"no-var": 2,
"prefer-const": 1,
"no-const-assign": 2,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/explicit-member-accessibility": 0,
"indent": ["error", 2]
},
globals: {
require: false,
module: false,
exports: false
}
}