-
Notifications
You must be signed in to change notification settings - Fork 50
/
.eslintrc.json
96 lines (96 loc) · 2.63 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
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"settings": {
"import/resolver": {
"node": {
"paths": ["src"],
"extensions": [".ts"]
}
}
},
"extends": [
"prettier",
"plugin:@typescript-eslint/recommended",
"plugin:import/errors",
"plugin:import/warnings"
],
"plugins": ["@typescript-eslint", "prettier", "folders", "unicorn", "no-only-tests"],
"rules": {
// kebab-case
"folders/match-regex": [2, "^[a-z-]+$", "/src/"],
"unicorn/filename-case": [
"error",
{
"cases": {
"camelCase": true,
"pascalCase": true
}
}
],
"import/no-internal-modules": [
"error", {
"forbid": [
"commands/*",
"features/*",
"utils/*",
"test/utils/*"
]
}
],
"eqeqeq": "warn",
"no-throw-literal": "warn",
"semi": "off",
"prettier/prettier": "error",
"camelcase": 0,
"default-case": 0,
"curly": ["error", "all"],
"global-require": 0,
"import/export": 0,
"import/extensions": 0,
"import/named": 0,
"import/no-named-as-default-member": 0,
"import/no-named-as-default": 0,
"import/no-unresolved": 0,
"import/prefer-default-export": 0,
"import/order": [
"error",
{
"newlines-between": "always",
"groups": [
["external", "builtin"],
["internal", "index", "sibling", "parent"]
]
}
],
"max-classes-per-file": 0,
"new-cap": ["error", { "capIsNew": false }],
"no-restricted-globals": 0,
"no-var-requires": 0,
"no-only-tests/no-only-tests": "error",
"prefer-object-spread": "error",
"prefer-destructuring": 0,
"strict": 0,
"consistent-return": 0,
"@typescript-eslint/no-unused-vars": ["warn", { "ignoreRestSiblings": true }],
"@typescript-eslint/camelcase": 0,
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/prefer-interface": 0,
"@typescript-eslint/no-var-requires": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-empty-function": 0,
"@typescript-eslint/no-non-null-assertion": 0,
"@typescript-eslint/ban-types": 0,
"@typescript-eslint/no-inferrable-types": 0,
"@typescript-eslint/no-empty-interface": 0,
"@typescript-eslint/no-object-literal-type-assertion": 0,
"@typescript-eslint/indent": 0,
"@typescript-eslint/consistent-type-definitions": ["error", "type"],
"@typescript-eslint/explicit-module-boundary-types": 0,
"@typescript-eslint/semi": "warn"
}
}