-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patheslint.config.mjs
More file actions
33 lines (32 loc) · 805 Bytes
/
eslint.config.mjs
File metadata and controls
33 lines (32 loc) · 805 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
import pluginNext from '@next/eslint-plugin-next'
import parser from '@typescript-eslint/parser' // optional
import tailwind from 'eslint-plugin-tailwindcss'
export default [
...tailwind.configs['flat/recommended'],
{
name: 'ESLint Config - nextjs',
languageOptions: {
parser, // optional
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
},
},
settings: {
tailwindcss: {
callees: ['classnames', 'clsx', 'ctl', 'cn', 'cva'],
},
},
plugins: {
'@next/next': pluginNext,
},
files: ['**/*.{js,mjs,cjs,ts,jsx,tsx}'],
rules: {
...pluginNext.configs.recommended.rules,
...pluginNext.configs['core-web-vitals'].rules,
},
},
]