-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.mjs
More file actions
34 lines (33 loc) · 1.07 KB
/
eslint.config.mjs
File metadata and controls
34 lines (33 loc) · 1.07 KB
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 eslintPluginBetterTailwindcss from 'eslint-plugin-better-tailwindcss'
export default antfu({
react: true,
nextjs: true,
}, {
plugins: {
'better-tailwindcss': eslintPluginBetterTailwindcss,
},
rules: {
...eslintPluginBetterTailwindcss.configs['recommended-error'].rules,
'node/prefer-global/process': 'off',
'no-console': 'off',
'curly': ['error', 'all'],
'react/no-array-index-key': 'off',
'react-dom/no-dangerously-set-innerhtml': 'off',
'react-refresh/only-export-components': 'off',
'react-hooks/set-state-in-effect': 'off',
'react-hooks-extra/no-direct-set-state-in-use-effect': 'off',
'func-style': ['error', 'declaration', { allowArrowFunctions: false }],
'better-tailwindcss/no-unknown-classes': 'off',
'better-tailwindcss/enforce-consistent-line-wrapping': ['error', {
group: 'newLine',
preferSingleLine: true,
printWidth: 120,
}],
},
settings: {
'better-tailwindcss': {
tailwindConfig: './src/app/(platform)/globals.css',
},
},
})