leon-ai--leon
22 行
493 B
JavaScript
22 行
493 B
JavaScript
import js from '@eslint/js'
|
|
import nextPlugin from '@next/eslint-plugin-next'
|
|
import tseslint from 'typescript-eslint'
|
|
|
|
export default tseslint.config(
|
|
{
|
|
ignores: ['.next/**', '.source/**', 'node_modules/**']
|
|
},
|
|
js.configs.recommended,
|
|
...tseslint.configs.recommended,
|
|
{
|
|
files: ['**/*.{ts,tsx}'],
|
|
plugins: {
|
|
'@next/next': nextPlugin
|
|
},
|
|
rules: {
|
|
...nextPlugin.configs.recommended.rules,
|
|
...nextPlugin.configs['core-web-vitals'].rules
|
|
}
|
|
}
|
|
)
|