-
Notifications
You must be signed in to change notification settings - Fork 126
/
.eslintrc.yml
99 lines (98 loc) · 2.64 KB
/
.eslintrc.yml
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
extends:
- google
- "plugin:oro/recommended"
- "plugin:no-jquery/deprecated"
parserOptions:
ecmaVersion: 2022
sourceType: module
env:
browser: true
commonjs: true
amd: true
jasmine: true
globals:
Promise: true
plugins:
- 'no-jquery'
rules:
# turn off ES6 code style check
arrow-parens: ['error', 'as-needed']
oro/named-constructor: 'error'
# customization
indent: ['error', 4, {'SwitchCase': 1}]
max-len:
- 'error'
- code: 120
comments: 160
tabWidth: 4
ignoreComments: true
ignoreTrailingComments: true
ignoreRegExpLiterals: true
ignorePattern: '^\s*const\s.+=\s*require\s*\(|\.extend\(\/\*\*\s+@lends\s.+\*\/\{$'
comma-dangle: ['error', 'never']
eqeqeq: ['error', 'smart']
no-useless-call: 'error'
no-useless-concat: 'error'
no-loop-func: 'error'
no-eval: 'error'
no-undef: 'error'
no-unused-vars:
- 'error'
- ignoreRestSiblings: true
args: 'none'
operator-linebreak:
- 'error'
- 'after'
- overrides:
"?": 'before'
":": 'before'
new-cap:
- 'error'
- newIsCap: true
properties: false
quote-props:
- 'error'
- 'consistent-as-needed'
- keywords: true
numbers: true
valid-jsdoc: 'off' # has to be turned on in a future
no-useless-escape: 'off' # has to be turned on in a future
require-jsdoc: 'off' # has to be turned on in a future
no-invalid-this: 'off' # has to be turned on in a future
space-infix-ops:
- 'error'
'no-jquery/no-event-shorthand': 'error'
'no-jquery/no-trim': 'error'
'no-jquery/no-sizzle':
- 'error'
- allowPositional: false
allowOther: true
'no-jquery/no-camel-case': 'error'
'no-jquery/no-is-function': 'error'
'no-jquery/no-is-numeric': 'error'
'no-jquery/no-is-window': 'error'
'no-jquery/no-now': 'error'
'no-jquery/no-proxy': 'error'
'no-jquery/no-type': 'error'
'no-jquery/no-hold-ready': 'error'
'no-jquery/no-is-array': 'error'
'no-jquery/no-node-name': 'error'
'no-jquery/no-bind': 'error'
'no-jquery/no-delegate': 'error'
'no-jquery/no-fx-interval': 'error'
'no-jquery/no-parse-json': 'error'
'no-jquery/no-ready-shorthand': 'error'
'no-jquery/no-unique': 'error'
'no-jquery/no-context-prop': 'error'
'no-jquery/no-support': 'error'
'no-jquery/no-and-self': 'error'
'no-jquery/no-error-shorthand': 'error'
'no-jquery/no-load-shorthand': 'error'
'no-jquery/no-on-ready': 'error'
'no-jquery/no-size': 'error'
'no-jquery/no-unload-shorthand': 'error'
'no-jquery/no-live': 'error'
'no-jquery/no-sub': 'error'
'no-jquery/no-selector-prop': 'error'
'no-jquery/no-box-model': 'error'
'no-jquery/no-browser': 'error'