-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.json
124 lines (124 loc) · 2.76 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json",
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "import", "no-relative-import-paths"],
"extends": [
"plugin:import/recommended",
"plugin:import/typescript",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"next/core-web-vitals",
"prettier",
"plugin:tailwindcss/recommended",
"plugin:storybook/recommended"
],
"settings": {
"import/resolver:": {
"typescript": true,
"node": true
}
},
"rules": {
"@typescript-eslint/no-redeclare": "off",
"no-redeclare": "error",
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "interface",
"format": ["PascalCase"]
}
],
"react/function-component-definition": [
2,
{
"namedComponents": "function-declaration"
}
],
"no-console": "error",
"react/destructuring-assignment": [2, "always"],
"react/button-has-type": 2,
"react/no-array-index-key": 2,
"import/order": 2,
"no-relative-import-paths/no-relative-import-paths": [
"error",
{
"allowSameFolder": true
}
],
"semi": [2, "always"],
"quotes": [2, "double"],
"prefer-destructuring": [
2,
{
"VariableDeclarator": {
"array": false,
"object": true
},
"AssignmentExpression": {
"array": true,
"object": false
}
},
{
"enforceForRenamedProperties": false
}
],
"object-curly-spacing": [2, "always"],
"arrow-body-style": [2, "as-needed"],
"arrow-parens": [2, "always"],
"space-infix-ops": 2,
"arrow-spacing": [
2,
{
"before": true,
"after": true
}
],
"no-unused-vars": [
2,
{
"args": "all",
"argsIgnorePattern": "_"
}
],
"guard-for-in": 2,
"no-await-in-loop": 2,
"indent": [2, 2],
"brace-style": 2,
"no-multiple-empty-lines": 2,
"eol-last": [2, "always"],
"no-nested-ternary": 2,
"@typescript-eslint/no-misused-promises": [
2,
{
"checksVoidReturn": {
"attributes": false
}
}
],
"@typescript-eslint/consistent-type-imports": [
"error",
{
"prefer": "type-imports"
}
],
"dot-notation": "off",
"@typescript-eslint/dot-notation": "error"
},
"overrides": [
{
"files": ["src/stories/**/*.{js,ts,tsx}"],
"rules": {
"no-console": "off",
"@typescript-eslint/consistent-type-imports": "off"
}
}
]
}