-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.cjs
34 lines (34 loc) · 940 Bytes
/
.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
/*
* @Author: hqk
* @Date: 2023-02-16 11:20:26
* @LastEditors: hqk
* @LastEditTime: 2023-05-05 12:52:05
* @Description:
*/
module.exports = {
env: {
browser: true,
es2021: true,
node: true
},
extends: ['eslint:recommended', 'plugin:react/recommended', 'plugin:@typescript-eslint/recommended', 'plugin:prettier/recommended'],
overrides: [],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module'
},
plugins: ['react', '@typescript-eslint', 'prettier'],
rules: {
'prettier/prettier': 'error',
'arrow-body-style': 'off',
'prefer-arrow-callback': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'react/display-name': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'react/prop-types': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'no-empty-pattern': 'off',
'react/react-in-jsx-scope': 'off'
}
}