-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.js
33 lines (29 loc) · 959 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
import path from 'node:path'
import { fileURLToPath } from 'node:url'
import antfu from '@antfu/eslint-config'
// @ts-expect-error no typings
import { FlatCompat } from '@eslint/eslintrc'
const __filename = fileURLToPath(import.meta.url)
const __dirname = path.dirname(__filename)
const compat = new FlatCompat({ baseDirectory: __dirname })
export default antfu(
{
rules: {
curly: 'off',
'no-case-declarations': 'off',
'antfu/consistent-list-newline': 'off',
'ts/no-unsafe-assignment': 'off',
'ts/no-unsafe-call': 'off',
'ts/no-unsafe-argument': 'off',
'ts/no-unsafe-member-access': 'off',
'style/operator-linebreak': 'off',
'style/quote-props': 'off',
'style/brace-style': 'off',
'style/arrow-parens': 'off',
'style/indent': 'off',
'vue/v-on-event-hyphenation': 'off',
'node/prefer-global/process': 'off',
},
},
compat.extends('eslint-config-prettier'),
)