-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
60 lines (60 loc) · 1.66 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
{
"root": true,
"extends": [
"plugin:@shopify/typescript",
"plugin:@shopify/react",
"plugin:@next/next/recommended"
],
"plugins": ["unused-imports"],
"rules": {
"curly": [0, "multi-or-nest"],
"jsx-a11y/label-has-for": 0,
"jsx-a11y/label-has-associated-control": [2],
"jsx-a11y/anchor-is-valid": [
2,
{
"components": ["Link"],
"specialLink": ["hrefLeft", "hrefRight"],
"aspects": ["invalidHref", "preferButton"]
}
],
"@typescript-eslint/consistent-type-definitions": [2, "type"],
"@typescript-eslint/consistent-indexed-object-style": [2, "record"],
"@typescript-eslint/member-delimiter-style": [2, {
"multiline": { "delimiter": "semi", "requireLast": true },
"singleline": { "delimiter": "semi", "requireLast": true }
}],
"unused-imports/no-unused-imports": [2],
// quotes
"quotes": [0],
"@typescript-eslint/quotes": [2, "single"],
// curly-spacing
"object-curly-spacing": 0,
"babel/object-curly-spacing": 0,
"@typescript-eslint/object-curly-spacing": [2],
// no-extra-parens
"no-extra-parens": 0,
"@typescript-eslint/no-extra-parens": [2, "functions"]
},
"overrides": [
{
"files": ["*.d.ts"],
"rules": {
"spaced-comment": [0],
"@typescript-eslint/triple-slash-reference": [0],
"@typescript-eslint/consistent-type-definitions": [0],
"@typescript-eslint/no-namespace": [0]
}
},
{
"files": ["*.js"],
"extends": ["plugin:@shopify/node"]
},
{
"files": ["test/*.ts"],
"rules": {
"import/no-anonymous-default-export": 0
}
}
]
}