-
Notifications
You must be signed in to change notification settings - Fork 14
/
.eslintrc.json
executable file
·79 lines (79 loc) · 1.79 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
{
"extends": [
"next/core-web-vitals",
"airbnb",
"airbnb/hooks",
"plugin:unicorn/recommended",
"prettier"
],
"plugins": ["unicorn"],
"env": {
"browser": true,
"es6": true,
"node": true
},
"settings": {
"import/resolver": {
"alias": {
"extensions": [".ts", ".js", ".jsx", ".json"],
"map": [
["@", "./src"],
["components", "./components"],
["lib", "./lib"],
["styles", "./styles"]
]
}
}
},
"parserOptions": {
"ecmaVersion": 2016,
"sourceType": "module",
"ecmaFeatures": {
"modules": true
}
},
"reportUnusedDisableDirectives": true,
"rules": {
"@next/next/no-img-element": "off",
"camelcase": "off",
"no-restricted-syntax": "off",
"jsx-a11y/anchor-is-valid": "off",
"import/prefer-default-export": "off",
"react/react-in-jsx-scope": "off",
"no-nested-ternary": "off",
"no-param-reassign": "off",
"no-underscore-dangle": "off",
"no-unused-expressions": [
"error",
{
"allowTernary": true
}
],
"react/no-array-index-key": "off",
"react/jsx-props-no-spreading": [
"error",
{
"html": "ignore",
"exceptions": ["Component"]
}
],
"react/prop-types": "error",
"react/forbid-prop-types": "off",
"unicorn/filename-case": "off",
"unicorn/no-array-for-each": "off",
"unicorn/no-array-reduce": "off",
"unicorn/no-null": "off",
"unicorn/no-useless-promise-resolve-reject": "off",
"unicorn/prefer-json-parse-buffer": "off",
"unicorn/prevent-abbreviations": [
"error",
{
"allowList": {
"getServerSideProps": true,
"getStaticProps": true,
"getStaticPaths": true
}
}
]
}
}