-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc
56 lines (56 loc) · 1.4 KB
/
.eslintrc
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
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "prettier"],
"parserOptions": {
"project": "./tsconfig.json"
},
"env": {
"node": true
},
"extends": [
"plugin:@typescript-eslint/recommended",
"airbnb",
"airbnb-typescript",
"plugin:prettier/recommended"
],
"rules": {
"no-console": "warn",
"no-unused-vars": "warn",
"@typescript-eslint/no-unused-vars": [
"warn",
{
"varsIgnorePattern": "^_",
"argsIgnorePattern": "^_"
}
],
"react/function-component-definition": [2, { "namedComponents": "arrow-function" }],
"react/jsx-props-no-spreading": "off",
"react/react-in-jsx-scope": "off",
"react/no-array-index-key": "warn",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-explicit-any": "warn",
"@next/next/no-img-element": "off",
"@next/next/no-html-link-for-pages": "off",
"import/no-anonymous-default-export": [
2,
{
"allowObject": true
}
],
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "interface",
"format": ["PascalCase"],
"custom": {
"regex": "^I[A-Z]",
"match": true
}
}
],
"react/jsx-key": ["error", { "checkFragmentShorthand": true }],
"no-useless-rename": "error",
"object-shorthand": "error"
}
}