-
-
Notifications
You must be signed in to change notification settings - Fork 54
/
eslint.config.mjs
34 lines (32 loc) · 901 Bytes
/
eslint.config.mjs
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
import antfu from '@antfu/eslint-config'
// import { FlatCompat } from '@eslint/eslintrc'
// const compat = new FlatCompat()
export default antfu(
{
formatters: true,
react: true,
},
{
ignores: [
'components/ui/**/*',
'components/magicui/**/*',
'components/animata/**/*',
'components/cute/**/*',
'components/eldora/**/*',
],
},
{
rules: {
'no-console': ['error', { allow: ['info', 'table', 'warn', 'error'] }],
'node/prefer-global/process': 'off',
'import/no-webpack-loader-syntax': 'off',
'ts/no-namespace': 'off',
'react-dom/no-dangerously-set-innerhtml': 'off',
'react-dom/no-unsafe-target-blank': 'off',
'react-hooks/exhaustive-deps': 'off',
'react-hooks/rules-of-hooks': 'off',
'regexp/no-unused-capturing-group': 'off',
'unicorn/prefer-node-protocol': 'off',
},
},
)