-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy patheslint.config.js
29 lines (28 loc) · 1.04 KB
/
eslint.config.js
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
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',
'react-hooks/exhaustive-deps': 'warn',
'@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',
},
},
];