-
-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy path.eslintrc.js
44 lines (44 loc) · 1.02 KB
/
.eslintrc.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
module.exports = {
env: {
browser: true,
es2021: true,
node: true,
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
'next/core-web-vitals',
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 'latest',
sourceType: 'module',
},
plugins: ['react', '@typescript-eslint'],
rules: {
'@typescript-eslint/no-explicit-any': 'warn',
// '@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
// 'react-hooks/exhaustive-deps': 'off',
// '@next/next/no-img-element': 'off',
// 'react/jsx-key': 'off',
// '@typescript-eslint/no-non-null-asserted-optional-chain': 'off',
// 'prefer-const': 'off',
// 'react/no-unescaped-entities': 'off',
// 'jsx-a11y/alt-text': 'off',
},
settings: {
react: {
version: 'detect',
},
},
overrides: [
{
files: ['*.js'],
},
],
};