-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
56 lines (55 loc) · 1.75 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
45
46
47
48
49
50
51
52
53
54
55
56
/******************************************************************
* Copyright (C) 2020 LvChengbin
*
* File: www/.eslintrc.js
* Author: LvChengbin<lvchengbin59@gmail.com>
* Time: 03/20/2020
* Description:
******************************************************************/
module.exports = {
parser : '@typescript-eslint/parser',
plugins : [ '@typescript-eslint/eslint-plugin' ],
extends : [
'eslint:recommended',
'plugin:@typescript-eslint/recommended'
],
globals : {
process : true
},
settings : {
ecmascript : 6
},
parserOptions : {
sourceType : 'module',
ecmaVersion : 2017
},
root : true,
env : {
browser : true,
es6 : true,
jest : true
},
rules : {
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/adjacent-overload-signatures' : 'off',
'@typescript-eslint/type-annotation-spacing' : 'off',
'@typescript-eslint/triple-slash-reference' : 'off',
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/no-array-constructor' : 'off',
'@typescript-eslint/class-name-casing' : 'off',
'@typescript-eslint/no-empty-function' : 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/camelcase' : 'off',
'react/jsx-no-target-blank' : 'off',
'prefer-rest-params' : 'off',
'prefer-const' : 'off',
'prefer-spread' : 'off',
'no-console' : 'off',
'no-empty' : [ 'error' ],
'linebreak-style': [ 'error', 'unix' ],
'no-use-before-define' : [ 'error' ],
'no-undef' : [ 'error' ],
quotes : [ 'error', 'single' ],
semi : [ 0 ]
}
}