-
Notifications
You must be signed in to change notification settings - Fork 1
/
eslint.config.mjs
41 lines (37 loc) · 1.13 KB
/
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
35
36
37
38
39
40
41
import unocss from '@unocss/eslint-config/flat'
import { defineConfig } from 'eslint-config-hyoban'
export default defineConfig(
{
react: 'vite',
restrictedSyntax: ['jsx', 'tsx'],
strict: true,
},
{
...unocss,
},
{
rules: {
'@stylistic/operator-linebreak': 'off',
'@stylistic/comma-dangle': 'off',
'@stylistic/brace-style': ['error', '1tbs', { allowSingleLine: true }],
'@typescript-eslint/no-explicit-any': 'off',
'@eslint-react/naming-convention/filename-extension': 'off',
'unicorn/no-anonymous-default-export': 'off',
'unicorn/no-useless-undefined': 'off',
'unicorn/no-process-exit': 'off',
'unicorn/prefer-node-protocol': 'off',
'func-names': 'off',
'max-params': 'off',
'require-await': 'off',
'no-await-in-loop': 'off',
'no-console': 'warn',
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'error',
'react-refresh/only-export-components': 'off',
'react-compiler/react-compiler': 'off',
},
},
{
ignores: ['**/*.d.ts', 'node_modules/', '**/dist', 'coverage/', '**/test/'],
}
)