-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
94 lines (94 loc) · 2.29 KB
/
.eslintrc.js
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
87
88
89
90
91
92
93
94
module.exports = {
extends: [
'eslint:recommended',
'google',
'plugin:@typescript-eslint/recommended',
'plugin:tailwindcss/recommended',
'plugin:prettier/recommended',
'next/core-web-vitals',
],
ignorePatterns: ['**/*.config.js', '**/.eslintrc.js'],
overrides: [],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
project: 'tsconfig.json',
sourceType: 'module',
tsconfigRootDir: __dirname,
},
plugins: ['@typescript-eslint/eslint-plugin', 'prettier'],
rules: {
"@next/next/no-html-link-for-pages": ["error", "src/app/"],
'@typescript-eslint/no-non-null-assertion': [0],
'@typescript-eslint/no-unused-vars': [
2,
{
args: 'none',
varsIgnorePattern: '^_',
},
],
'@typescript-eslint/triple-slash-reference': [0],
'jsx-quotes': [2, 'prefer-single'],
'linebreak-style': [0],
'max-len': [2, 300],
'new-cap': [0],
'no-invalid-this': [0],
'object-curly-newline': [
2,
{
ObjectExpression: {
minProperties: 2,
multiline: true,
},
ObjectPattern: {
minProperties: 2,
multiline: true,
},
},
],
'object-property-newline': [2, { allowAllPropertiesOnSameLine: false }],
'prettier/prettier': [1],
'react/jsx-equals-spacing': [2, 'never'],
'react/jsx-max-props-per-line': [
2,
{
maximum: 1,
when: 'multiline',
},
],
'react/jsx-sort-props': [
2,
{
callbacksLast: true,
ignoreCase: true,
multiline: 'first',
noSortAlphabetically: true,
reservedFirst: true,
shorthandFirst: true,
shorthandLast: false,
},
],
'react/jsx-tag-spacing': [
2,
{
afterOpening: 'never',
beforeClosing: 'never',
beforeSelfClosing: 'always',
closingSlash: 'never',
},
],
semi: [2, 'always'],
'sort-keys': [
2,
'asc',
{
caseSensitive: false,
natural: true,
},
],
'space-infix-ops': [2, { int32Hint: false }],
'spaced-comment': [2, 'always', { markers: ['/'] }],
'tailwindcss/classnames-order': [2, { order: 'alphabetical' }],
'tailwindcss/no-custom-classname': [0],
},
};