-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
37 lines (36 loc) · 940 Bytes
/
.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
module.exports = {
plugins: ['prettier', 'unicorn'],
extends: [
'next/core-web-vitals',
'prettier',
'plugin:import/recommended',
'plugin:import/typescript',
'plugin:@typescript-eslint/recommended',
],
rules: {
'react/display-name': 'off',
'prettier/prettier': 'error',
'unicorn/prefer-node-protocol': 'error',
'import/first': 'error',
// FIXME: eslint 9 incompatible
'import/no-named-as-default': 'off',
'import/no-named-as-default-member': 'off',
'@next/next/no-duplicate-head': 'off',
},
overrides: [
{
files: ['*.ts', '*.tsx', '*.mts', '*.cts'],
rules: {
'@typescript-eslint/consistent-type-imports': [
'error',
{
disallowTypeAnnotations: false,
prefer: 'type-imports',
},
],
},
},
],
ignorePatterns: ['.next', '.swc', 'coverage', 'node_modules', 'out'],
root: true,
};