-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy path.eslintrc.json
103 lines (103 loc) · 2.7 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
{
"root": true,
"reportUnusedDisableDirectives": true,
"plugins": [
"@typescript-eslint",
"simple-import-sort",
"import",
"lodash",
"jsdoc"
],
"parser": "@typescript-eslint/parser",
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"plugin:jsdoc/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript"
],
"env": {
"browser": true,
"es6": true,
"node": true
},
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module"
},
"settings": {
"import/resolver": {
"typescript": {}
}
},
"rules": {
"no-console": "warn",
"no-debugger": "error",
"sort-imports": "off",
"import/order": "off",
"import/export": "off",
"import/first": "error",
"import/newline-after-import": "error",
"import/no-extraneous-dependencies": "error",
"import/no-duplicates": "error",
"simple-import-sort/imports": [
"error",
{
"groups": [
["^\\u0000", "/(fixtures|mocks|patches)$"],
["^@?\\w"],
["^raiden-\\w+"],
["^"],
["^\\."]
]
}
],
"simple-import-sort/exports": "error",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-unused-vars": [
"warn",
{ "varsIgnorePattern": "^_", "argsIgnorePattern": "^_" }
],
"@typescript-eslint/consistent-type-imports": "warn",
"lodash/import-scope": ["warn", "method"],
"lodash/preferred-alias": "warn",
"lodash/callback-binding": "warn",
"lodash/collection-method-value": "warn",
"lodash/collection-return": "warn",
"lodash/no-double-unwrap": "warn",
"lodash/no-extra-args": "warn",
"lodash/no-unbound-this": "warn",
"lodash/unwrap": "warn",
"jsdoc/no-types": "warn",
"jsdoc/valid-types": "off",
"jsdoc/require-param-type": "off",
"jsdoc/require-returns-type": "off",
"jsdoc/require-hyphen-before-param-description": "warn",
"jsdoc/require-jsdoc": [
1,
{ "publicOnly": true }
]
},
"overrides": [
{
"files": ["**/*.js", "**/*.jsx"],
"extends": [
"eslint:recommended"
],
"rules": {
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-empty-function": "off",
"simple-import-sort/imports": "off",
"import/order": ["warn", { "newlines-between": "always" }]
}
}
]
}