-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.eslintrc.js
41 lines (41 loc) · 1.13 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
module.exports = {
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'plugin:jsx-a11y/recommended',
],
env: {
browser: true,
node: true,
},
parser: '@typescript-eslint/parser',
parserOptions: {
project: './tsconfig.json',
tsconfigRootDir: __dirname,
},
plugins: [
'@typescript-eslint',
'import',
'jsx-a11y',
'react',
'react-refresh',
'react-hooks',
],
root: true,
rules: {
'react/react-in-jsx-scope': 'off',
'react-refresh/only-export-components': 'warn',
'@typescript-eslint/no-unsafe-call': 'warn', // TODO: remove after ts migration
'@typescript-eslint/no-unsafe-member-access': 'warn', // TODO: remove after ts migration
'@typescript-eslint/restrict-template-expressions': 'warn', // TODO: remove after ts migration
'@typescript-eslint/prefer-ts-expect-error': 'warn',
'@typescript-eslint/ban-ts-comment': [
'warn',
{
'ts-expect-error': 'allow-with-description',
},
],
'@typescript-eslint/no-unsafe-assignment': 'warn',
},
};