36 lines
756 B
JavaScript
36 lines
756 B
JavaScript
import nextConfig from 'eslint-config-next';
|
|
import prettierPlugin from 'eslint-plugin-prettier';
|
|
|
|
const additionalRules = {
|
|
'prettier/prettier': 'error',
|
|
'react-hooks/set-state-in-effect': 'off',
|
|
'react-hooks/exhaustive-deps': 'warn',
|
|
'react-hooks/immutability': 'off',
|
|
'react-hooks/incompatible-library': 'off',
|
|
'react-hooks/purity': 'off',
|
|
'import/no-anonymous-default-export': 'off',
|
|
};
|
|
|
|
const eslintConfig = [
|
|
{
|
|
ignores: [
|
|
'.next/**',
|
|
'node_modules/**',
|
|
'dist/**',
|
|
'build/**',
|
|
'coverage/**',
|
|
'public/**',
|
|
],
|
|
},
|
|
...nextConfig,
|
|
{
|
|
files: ['**/*.{js,jsx,ts,tsx}'],
|
|
plugins: {
|
|
prettier: prettierPlugin,
|
|
},
|
|
rules: additionalRules,
|
|
},
|
|
];
|
|
|
|
export default eslintConfig;
|