-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
59 lines (56 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
'use strict';
module.exports = {
extends: 'next/core-web-vitals',
plugins: [
'unused-imports',
'custom-rules',
],
rules: {
'comma-dangle': ['error', 'always-multiline'],
'object-curly-spacing': ['warn', 'always'],
'import/consistent-type-specifier-style': ['error', 'prefer-top-level'],
'import/order': [
'error',
{
'newlines-between': 'always',
groups: [
'builtin',
'external',
'internal',
['parent', 'sibling', 'index'],
'type',
],
pathGroups: [
{
pattern: 'react',
group: 'builtin',
position: 'after',
},
{
pattern: 'react-icons/**',
group: 'builtin',
position: 'after',
},
{
pattern: 'next/**',
group: 'builtin',
position: 'before',
},
],
pathGroupsExcludedImportTypes: ['react', 'react-icons/**', 'next/**'],
alphabetize: {
order: 'asc',
caseInsensitive: false,
},
},
],
indent: ['error', 'tab', { SwitchCase: 1 }],
'no-multi-spaces': ['error', { ignoreEOLComments: true }],
'no-multiple-empty-lines': ['error', { max: 1, maxEOF: 1 }],
quotes: ['error', 'single'],
semi: ['error', 'always'],
'unused-imports/no-unused-imports': 'error',
'custom-rules/page-export-naming': 'error',
'custom-rules/layout-export-naming': 'error',
},
};