-
Notifications
You must be signed in to change notification settings - Fork 6
/
.eslintrc.json
66 lines (66 loc) · 1.75 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
{
"$schema": "https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/eslintrc.json",
"extends": [
"next",
"next/core-web-vitals",
"prettier",
"plugin:@typescript-eslint/recommended"
],
"settings": {
"import/resolver": {
"alias": {
"map": [
["@components", "./src/components"],
["@contexts", "./src/contexts"],
["@hooks", "./src/hooks"],
["@models", "./src/models"],
["@utils", "./src/utils"],
["@pages", "./src/pages"]
]
}
}
},
"env": {
"browser": true,
"es2021": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": ["prettier", "@typescript-eslint"],
"rules": {
"no-console": ["error", { "allow": ["warn", "error"] }],
"@typescript-eslint/no-unused-vars": [
"error",
{ "varsIgnorePattern": "[iI]gnored" }
],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-empty-function": "off",
"no-param-reassign": "off",
"no-prototype-builtins": "off",
"no-underscore-dangle": "off",
"curly": "error",
"prettier/prettier": "error",
"react/forbid-prop-types": "off",
"react/react-in-jsx-scope": "off",
"react/jsx-props-no-spreading": "off",
"react/destructuring-assignment": "off",
"react/prop-types": "error",
"react/jsx-sort-props": [
1,
{
"callbacksLast": true,
"shorthandFirst": true,
"ignoreCase": true,
"reservedFirst": true
}
],
"react/jsx-filename-extension": [1, { "extensions": [".jsx", ".tsx"] }],
"react-hooks/exhaustive-deps": "error"
}
}