-
-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy patheslint.config.ts
More file actions
37 lines (36 loc) 路 921 Bytes
/
Copy patheslint.config.ts
File metadata and controls
37 lines (36 loc) 路 921 Bytes
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
import antfu from '@antfu/eslint-config'
export default antfu(
{
vue: true,
react: true,
rules: {
'node/prefer-global/process': 'off',
'pnpm/yaml-enforce-settings': 'off',
'react/no-use-context': 'off',
'no-console': 'off',
'react-refresh/only-export-components': 'off',
},
ignores: ['**/.source/**', '**/next-env.d.ts', '**/routeTree.gen.ts', '**/_artifacts/**'],
},
{
files: ['examples/**/*.ts?(x)'],
rules: {
'react/no-unnecessary-use-prefix': 'off',
'react-web-api/no-leaked-timeout': 'off',
},
},
{
files: ['permix/src/vue/*.ts?(x)'],
rules: {
'react/rules-of-hooks': 'off',
'react/no-unnecessary-use-prefix': 'off',
},
},
{
files: ['permix/src/solid/*.ts?(x)', 'examples/solid/**/*.ts?(x)'],
rules: {
'react/no-context-provider': 'off',
'react/no-missing-key': 'off',
},
},
)