-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.ts
35 lines (35 loc) · 1.1 KB
/
.eslintrc.ts
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
// @ts-ignore
module.exports = {
env: {
browser: true,
commonjs: true,
es2021: true,
jest: true,
},
extends: ['plugin:react/recommended', 'standard-with-typescript', 'plugin:@typescript-eslint/recommended'],
overrides: [],
parserOptions: {
ecmaVersion: 'latest',
project: ['./tsconfig.json'],
},
plugins: ['react', 'react-hooks'],
rules: {
'no-use-before-define': 'off',
'@typescript-eslint/no-use-before-define': ['error'],
'react/jsx-filename-extension': ['warn', { extensions: ['.tsx'] }],
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'warn',
'react/prop-types': 'off',
'@typescript-eslint/semi': 'off',
'import/prefer-default-export': 'off',
'no-shadow': 'off',
'@typescript-eslint/no-shadow': ['error'],
'@typescript-eslint/comma-dangle': 'off',
'@typescript-eslint/space-before-function-paren': [
'error',
{ anonymous: 'always', named: 'never', asyncArrow: 'always' },
],
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-explicit-any': 'warn',
},
};