-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.json
More file actions
86 lines (86 loc) · 2.19 KB
/
.eslintrc.json
File metadata and controls
86 lines (86 loc) · 2.19 KB
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
{
"root": true,
"env": {
"browser": true
},
"extends": [
"eslint:recommended",
"airbnb",
"airbnb-typescript",
"prettier",
"plugin:import/recommended",
"plugin:@next/next/recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module",
"allowImportExportEverywhere": true,
"project": "./tsconfig.json"
},
"plugins": [
"prettier",
"@typescript-eslint",
"react-hooks",
"unused-imports"
],
"rules": {
"camelcase": 0,
"consistent-return": 0,
"import/first": 0,
"import/order": ["error", { "newlines-between": "ignore" }],
"import/prefer-default-export": 0,
"jsx-a11y/label-has-for": 0,
"no-console": ["error", { "allow": ["error", "debug", "warn"] }],
"no-nested-ternary": 0,
"no-param-reassign": 0,
"no-prototype-builtins": 0,
"no-underscore-dangle": 0,
"no-unused-expressions": 0,
"no-unused-vars": ["warn"],
"prefer-promise-reject-errors": 0,
"prettier/prettier": ["error"],
"react-hooks/exhaustive-deps": "warn",
"react-hooks/rules-of-hooks": "error",
"react/destructuring-assignment": 0,
"react/forbid-prop-types": 0,
"react/function-component-definition": 0,
"react/jsx-filename-extension": 0,
"react/jsx-props-no-spreading": 0,
"react/no-multi-comp": [1, { "ignoreStateless": true }],
"react/prop-types": 0,
"react/react-in-jsx-scope": 0,
"react/require-default-props": 0,
"react/sort-comp": 0,
"semi": ["error", "never"],
"unused-imports/no-unused-imports": "error",
"unused-imports/no-unused-vars": [
"warn",
{
"vars": "all",
"varsIgnorePattern": "^_",
"args": "after-used",
"argsIgnorePattern": "^_"
}
]
},
"settings": {
"import/resolver": {
"typescript": {
"project": "./tsconfig.json"
},
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"],
"moduleDirectory": ["node_modules", "."]
}
}
},
"overrides": [
{
"files": ["next-env.d.ts"],
"rules": {
"@typescript-eslint/triple-slash-reference": "off"
}
}
]
}