-
Notifications
You must be signed in to change notification settings - Fork 1
/
eslint.config.js
36 lines (33 loc) · 854 Bytes
/
eslint.config.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
import { readFile } from 'node:fs/promises'
import lincy from '@lincy/eslint-config'
const autoImport = JSON.parse(
await readFile(new URL('./.eslintrc-auto-import.json', import.meta.url)),
)
const config = lincy(
{
vue: false,
formatters: true,
unocss: true,
overrides: {
stylistic: {
'antfu/consistent-list-newline': 'off',
'style/jsx-max-props-per-line': ['error', { maximum: 4 }],
},
react: {
'react-dom/no-dangerously-set-innerhtml': 'off',
},
ignores: [
'**/assets',
'**/static',
],
},
},
{
languageOptions: {
globals: {
...autoImport.globals,
},
},
},
)
export default config