-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.mjs
More file actions
42 lines (39 loc) · 1.16 KB
/
eslint.config.mjs
File metadata and controls
42 lines (39 loc) · 1.16 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
import { FlatCompat } from '@eslint/eslintrc'
import stylistic from '@stylistic/eslint-plugin'
import parserTs from '@typescript-eslint/parser'
const compat = new FlatCompat({
baseDirectory: import.meta.dirname,
})
const eslintConfig = [
{
languageOptions: {
parser: parserTs,
},
plugins: {
'@stylistic/ts': stylistic,
'@stylistic': stylistic,
},
rules: {
'@stylistic/ts/comma-dangle': [
'error',
{
'arrays': 'always-multiline',
'functions': 'only-multiline',
'generics': 'always-multiline',
'objects': 'always-multiline',
'tuples': 'always-multiline',
},
],
'@stylistic/eol-last': 'error',
'@stylistic/no-trailing-spaces': 'error',
'@stylistic/ts/semi': ['error', 'never'],
},
},
...compat.config({
extends: ['next/core-web-vitals', 'next/typescript'],
rules: {
'@next/next/no-page-custom-font': 'off',
},
}),
]
export default eslintConfig