-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
45 lines (45 loc) · 1.01 KB
/
.eslintrc.cjs
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
34
35
36
37
38
39
40
41
42
43
44
45
module.exports = {
root: true,
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react-hooks/recommended',
'plugin:perfectionist/recommended-natural',
'airbnb',
'airbnb-typescript',
'next',
'prettier',
],
env: {
browser: true,
es2022: true,
jest: true,
},
parser: '@typescript-eslint/parser',
parserOptions: {
sourceType: 'module',
project: ['tsconfig.json'],
tsconfigRootDir: __dirname,
},
plugins: [
'@typescript-eslint',
'zod'
],
rules: {
'import/prefer-default-export': 'off',
'no-console': 'off',
'no-debugger': 'off',
'no-restricted-exports': 'off',
'react/jsx-props-no-spreading': 'off',
'@typescript-eslint/consistent-type-imports': 'warn',
'react/function-component-definition': 'off',
'react/display-name': 'off',
'react/button-has-type': 'off', // allow reset button
},
settings: {
'import/resolver': {
typescript: true,
node: true,
},
},
};