forked from oroinc/orocommerce-application
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yml
62 lines (60 loc) · 1.41 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
extends:
- google
- "plugin:oro/recommended"
parserOptions:
ecmaVersion: 2022
sourceType: module
env:
browser: true
commonjs: true
amd: true
jasmine: true
globals:
Promise: true
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'