-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.eslintrc.js
47 lines (46 loc) · 1019 Bytes
/
.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
45
46
47
/*
* @author Wayne
* @Date 2022-03-22 16:07:26
* @LastEditTime 2022-10-11 11:06:57
*/
// document: https://eslint.org/docs/user-guide/configuring
module.exports = {
parser: '@typescript-eslint/parser',
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
],
plugins: ['@typescript-eslint'],
env: {
browser: true,
node: true,
},
parserOptions: {
ecmaVersion: 2019,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
},
rules: {
camelcase: [0],
'no-trailing-spaces': [0],
'filenames/match-exported': [0],
'no-multi-spaces': [0],
indent: [0],
'no-console': [0],
'no-extra-parens': [0],
'no-unused-vars': [
2,
{
vars: 'local',
args: 'none',
},
],
'no-magic-numbers': [0],
'no-shadow': 'off',
'line-comment-position': [0],
'no-unused-vars': 'off',
},
};