forked from xbrowsersync/api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
72 lines (72 loc) · 1.69 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
{
"env": {
"browser": true,
"jest": true,
"node": true
},
"extends": [
"airbnb-typescript/base",
"plugin:prettier/recommended"
],
"globals": {
"JSX": "readonly"
},
"parserOptions": {
"ecmaVersion": 2018,
"project": "./tsconfig.eslint.json",
"sourceType": "module"
},
"plugins": [
"simple-import-sort",
"unused-imports"
],
"rules": {
"@typescript-eslint/comma-dangle": "off",
"@typescript-eslint/indent": "off",
"@typescript-eslint/lines-between-class-members": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/semi": "warn",
"class-methods-use-this": "off",
"consistent-return": "off",
"func-style": "warn",
"global-require": "off",
"import/extensions": "off",
"import/no-dynamic-require": "off",
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": true
}
],
"import/order": "off",
"import/prefer-default-export": "off",
"no-bitwise": "off",
"no-empty": "off",
"no-nested-ternary": "off",
"no-param-reassign": "off",
"no-undef": "error",
"no-underscore-dangle": "off",
"no-unreachable": "warn",
"no-unused-vars": "warn",
"prefer-destructuring": "off",
"prettier/prettier": "warn",
"simple-import-sort/imports": [
"warn",
{
"groups": [
[
"^\\u0000",
"^@?\\w",
"^[^.]",
"^\\."
]
]
}
],
"simple-import-sort/exports": "warn",
"sort-imports": "off",
"spaced-comment": "off",
"unused-imports/no-unused-imports-ts": "warn"
}
}