-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy patheslint.config.mjs
More file actions
55 lines (52 loc) · 1.19 KB
/
eslint.config.mjs
File metadata and controls
55 lines (52 loc) · 1.19 KB
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
import next from 'eslint-config-next';
import nextCoreWebVitals from 'eslint-config-next/core-web-vitals';
import nextTypescript from 'eslint-config-next/typescript';
import prettier from 'eslint-config-prettier';
import noComments from './eslint-rules/no-comments.js';
import uppercaseVariants from './eslint-rules/uppercase-variants.js';
/** @type {import('eslint').Linter.Config[]} */
const config = [
{
ignores: [
'.next/',
'build/',
'node_modules/',
'.github/',
'.vscode/',
'tailwind.config.ts',
'next-env.d.ts',
],
},
...next,
...nextCoreWebVitals,
...nextTypescript,
prettier,
{
rules: {
'@typescript-eslint/consistent-type-imports': [
'error',
{
prefer: 'type-imports',
disallowTypeAnnotations: false,
},
],
'prefer-arrow-callback': 'error',
},
},
{
files: ['icons/**/*.tsx'],
plugins: {
local: {
rules: {
'no-comments': noComments,
'uppercase-variants': uppercaseVariants,
},
},
},
rules: {
'local/no-comments': 'error',
'local/uppercase-variants': 'error',
},
},
];
export default config;