-
Notifications
You must be signed in to change notification settings - Fork 170
/
.eslintrc.json
56 lines (56 loc) · 1.31 KB
/
.eslintrc.json
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
{
"root": true,
"env": {
"es6": true,
"node": true,
"jest/globals": true
},
"extends": [
"airbnb-base",
"plugin:jest/recommended",
"plugin:@typescript-eslint/recommended"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2020,
"project": "./tsconfig.json"
},
"plugins": ["jest", "@typescript-eslint"],
"rules": {
"space-before-function-paren": ["error", "always"],
"no-underscore-dangle": "off",
"no-param-reassign": ["error", { "props": false }],
"no-shadow": "warn",
"max-len": [
"error",
{
"code": 180,
"ignorePattern": "^\\s*/\\*.*\\*/\\s*$",
"ignoreComments": true
}
],
"radix": ["warn", "as-needed"],
"arrow-parens": "off",
"arrow-body-style": "off",
"object-curly-newline": "warn",
"prefer-destructuring": ["error", { "object": true, "array": false }],
"func-names": "off",
"no-restricted-imports": [
"error",
{
"paths": [
{
"name": "uiv",
"message": "Please use the globally registered component/directive instead"
}
]
}
],
"import/prefer-default-export": "off"
}
}