-
Notifications
You must be signed in to change notification settings - Fork 65
/
.eslintrc.json
75 lines (75 loc) · 2.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
{
"parser": "@typescript-eslint/parser",
"plugins": ["solid", "@typescript-eslint"],
"ignorePatterns": ["!**/*", "**/*.js", "**/*.mjs", "**/*.cjs", "**/*.d.ts"],
"extends": [
"xtrict/configs/errors",
"xtrict/configs/es6",
"xtrict/configs/modules",
"xtrict/configs/style",
"xtrict/configs/variables"
],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {
"import/order": [
"error",
{
"groups": [
"index",
"sibling",
"parent",
"internal",
"external",
"builtin",
"object",
"type"
]
}
],
"max-params": ["warn", 4],
"camelcase": "off",
"no-undefined": "off",
"max-lines-per-function": "off",
"max-statements": "off",
"max-lines": "off",
"no-duplicate-imports": "off",
"no-underscore-dangle": "off",
"max-len": "off",
"semi": "off",
"sort-keys": "off",
"sort-imports": "off",
"newline-per-chained-call": "off",
"func-call-spacing": "off",
"linebreak-style": "off",
"no-empty-function": ["error", { "allow": ["arrowFunctions"] }],
"no-tabs": "off",
"no-dupe-class-members": "off",
"no-unused-vars": "off",
"no-undef": "off",
"no-mixed-operators": "off",
"no-magic-numbers": "off",
"unicorn/no-null": "off",
"unicorn/filename-case": "off",
"import/no-default-export": "off",
"object-property-newline": "off",
"multiline-comment-style": ["error", "bare-block"],
"sonarjs/cognitive-complexity": "off",
"sonarjs/no-duplicate-string": ["warn", 4],
"@typescript-eslint/explicit-function-return-type": [
"error",
{
"allowExpressions": true,
"allowTypedFunctionExpressions": true,
"allowHigherOrderFunctions": true
}
],
"@typescript-eslint/no-empty-function": ["error", { "allow": ["arrowFunctions"] }],
"@typescript-eslint/explicit-member-accessibility": "error",
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/member-ordering": "error"
}
}
]
}