-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.cjs
60 lines (60 loc) · 1.3 KB
/
.eslintrc.cjs
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
module.exports = {
extends: [
// "next/core-web-vitals",
'eslint:recommended',
'plugin:import/recommended',
'plugin:react/recommended',
'plugin:react-hooks/recommended',
'plugin:jsx-a11y/recommended',
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'plugin:unicorn/recommended',
// 'next',
// 'next/core-web-vitals',
'plugin:@next/next/recommended',
'prettier',
],
settings: {
'import/resolver': {
node: {
extensions: ['.js', '.jsx', '.ts', '.tsx'],
},
},
react: {
version: 'detect',
},
},
overrides: [
{
files: ['*.json'],
rules: {
'unicorn/numeric-separators-style': 0,
'unicorn/no-null': 0,
},
},
],
rules: {
'import/order': 2,
'jsx-quotes': 2,
'object-shorthand': 2,
'react/jsx-curly-brace-presence': [2, 'never'],
'prettier/prettier': 2,
'@typescript-eslint/ban-ts-comment': 0,
'@typescript-eslint/no-unused-vars': [
'error',
{ ignoreRestSiblings: true },
],
'unicorn/prevent-abbreviations': [
2,
{
allowList: {
dev: true,
props: true,
Props: true,
},
},
],
},
plugins: ['prettier'],
}