improvements
This commit is contained in:
17
eslint.config.mjs
Normal file
17
eslint.config.mjs
Normal file
@@ -0,0 +1,17 @@
|
||||
import { defineConfig, globalIgnores } from 'eslint/config';
|
||||
import nextVitals from 'eslint-config-next/core-web-vitals';
|
||||
import prettier from 'eslint-config-prettier/flat';
|
||||
import prettierPlugin from 'eslint-plugin-prettier';
|
||||
|
||||
export default defineConfig([
|
||||
...nextVitals,
|
||||
prettier,
|
||||
{
|
||||
plugins: { prettier: prettierPlugin },
|
||||
rules: {
|
||||
'prettier/prettier': 'warn',
|
||||
'react/react-in-jsx-scope': 'off',
|
||||
},
|
||||
},
|
||||
globalIgnores(['.next/**', '.yarn/**', 'out/**', 'dist/**', 'next-env.d.ts']),
|
||||
]);
|
||||
Reference in New Issue
Block a user