-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
85 lines (85 loc) · 1.97 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
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"project": "./tsconfig.json"
},
"plugins": [
"@typescript-eslint",
"cypress",
"simple-import-sort",
"import",
"sort-destructure-keys",
"sort-keys-fix"
],
"extends": [
"plugin:@typescript-eslint/recommended",
"eslint:recommended",
"prettier",
"plugin:cypress/recommended"
],
"root": true,
"env": {
"browser": true,
"node": true,
"es6": true
},
"rules": {
"no-console": 2,
"@typescript-eslint/explicit-module-boundary-types": 2,
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_"
}
],
"import/first": 2,
"import/newline-after-import": 2,
"import/no-anonymous-default-export": 2,
"import/no-duplicates": 2,
"linebreak-style": "off",
"no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_"
}
],
"padding-line-between-statements": [
2,
{ "blankLine": "always", "prev": ["function"], "next": "*" }
],
"simple-import-sort/exports": 2,
"simple-import-sort/imports": [
2,
{
"groups": [
// CSS... Side effect imports.
["^\\u0000"],
// NodeJS packages
["^fs$", "^path$", "^crypto$", "^fs-extra$", "^glob$"],
// Things that start with a letter
["^@?\\w"],
//
["^@nestjs"],
["^@fc"],
// Anything not matched in another group.
["^"],
// Relative imports.
["^\\."]
]
}
],
"sort-imports": "off",
"sort-keys-fix/sort-keys-fix": 2,
"sort-destructure-keys/sort-destructure-keys": 2,
"sort-keys": [
2,
"asc",
{ "caseSensitive": true, "natural": false, "minKeys": 2 }
]
}
}