-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy patheslint.config.mjs
More file actions
34 lines (33 loc) · 897 Bytes
/
eslint.config.mjs
File metadata and controls
34 lines (33 loc) · 897 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
import antfu from '@antfu/eslint-config'
import nextPlugin from '@next/eslint-plugin-next'
import jsxA11y from 'eslint-plugin-jsx-a11y'
export default antfu(
{
formatters: true,
react: true,
typescript: true,
},
jsxA11y.flatConfigs.recommended,
{
plugins: {
'@next/next': nextPlugin,
},
rules: {
...nextPlugin.configs.recommended.rules,
...nextPlugin.configs['core-web-vitals'].rules,
},
},
{
rules: {
'no-console': 'off',
'unicorn/no-instanceof-builtins': 'off',
'@typescript-eslint/no-unused-vars': 'warn',
'@typescript-eslint/no-explicit-any': 'off',
'react/no-array-index-key': 'off',
'react/no-context-provider': 'off',
'react-refresh/only-export-components': 'off',
'react-hooks-extra/no-direct-set-state-in-use-effect': 'off',
'jsx-a11y/no-autofocus': 'off',
},
},
)