/
rules.json
101 lines (101 loc) · 2.29 KB
/
rules.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
{
"extends": "fbjs/opensource",
"plugins": [
"filenames",
"import",
"unicorn"
],
"rules": {
"filenames/match-exported": 2,
"filenames/match-regex": [
2,
"^[A-Z]?[a-z]+(?:[A-Z][a-z]+)*(\\.[a-z]+)*$",
false
],
"filenames/no-index": 0,
"import/default": 2,
"import/export": 2,
"import/extensions": [
2,
"never",
{
"json": "always"
}
],
"import/first": [
2,
{
"absolute-first": true
}
],
"import/max-dependencies": [
1,
{
"max": 10
}
],
"import/named": 2,
"import/namespace": 2,
"import/newline-after-import": 2,
"import/no-absolute-path": 2,
"import/no-amd": 2,
"import/no-commonjs": 2,
"import/no-deprecated": 1,
"import/no-duplicates": 0,
"import/no-dynamic-require": 2,
"import/no-extraneous-dependencies": [
2,
{
"devDependencies": true,
"optionalDependencies": true,
"peerDependencies": true
}
],
"import/no-internal-modules": 0,
"import/no-mutable-exports": 2,
"import/no-named-as-default": 2,
"import/no-named-as-default-member": 2,
"import/no-named-default": 2,
"import/no-namespace": 2,
"import/no-nodejs-modules": 0,
"import/no-restricted-paths": 0,
"import/no-unassigned-import": 2,
"import/no-unresolved": 2,
"import/no-webpack-loader-syntax": 2,
"import/order": [
2,
{
"groups": [
"builtin",
"external",
"internal",
"parent",
"sibling",
"index"
],
"newlines-between": "never"
}
],
"import/prefer-default-export": 1,
"import/unambiguous": 1,
"unicorn/catch-error-name": [
"error",
{
"name": "error"
}
],
"unicorn/custom-error-definition": 0,
"unicorn/escape-case": 2,
"unicorn/explicit-length-check": 0,
"unicorn/filename-case": 0,
"unicorn/no-abusive-eslint-disable": 2,
"unicorn/no-array-instanceof": 2,
"unicorn/no-hex-escape": 2,
"unicorn/no-new-buffer": 2,
"unicorn/no-process-exit": 0,
"unicorn/number-literal-case": 2,
"unicorn/prefer-starts-ends-with": 2,
"unicorn/prefer-type-error": 2,
"unicorn/throw-new-error": 2
}
}