forked from prezly/theme-nextjs-bea
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.mjs
33 lines (32 loc) · 1.22 KB
/
eslint.config.mjs
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 prezly from '@prezly/eslint-config/nextjs';
export default [
...prezly,
{
files: ['**/*.{ts,tsx,jsx,js,mjs}'],
languageOptions: {
parserOptions: {
project: ['./tsconfig.json'],
},
},
rules: {
'import/no-default-export': 'off',
'no-restricted-exports': 'off',
'func-style': 'off',
'import/no-cycle': 'off',
'react/jsx-props-no-spreading': 'off',
'no-underscore-dangle': 'off',
'@typescript-eslint/no-use-before-define': ['error', { functions: false }],
'@typescript-eslint/no-namespace': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-non-null-asserted-optional-chain': 'off',
'@typescript-eslint/no-unsafe-function-type': 'off',
'react-refresh/only-export-components': 'off',
'@typescript-eslint/no-empty-object-type': 'off',
'@typescript-eslint/no-unnecessary-type-constraint': 'off',
},
},
{
ignores: ['next-env.d.ts', 'tsconfig.json', 'next.config.js', 'eslint.config.mjs'],
},
];