-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
42 lines (42 loc) · 1.02 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
/* eslint-disable linebreak-style */
/* eslint-disable strict */
module.exports = {
root: true,
extends: "eslint:recommended",
env: {
commonjs: true,
es6: true,
browser: true,
},
globals: {
dw: true,
customer: true,
session: true,
request: true,
response: true,
empty: true,
PIPELET_ERROR: true,
PIPELET_NEXT: true,
},
rules: {
"eol-last": ["error", "always"],
"func-style": "off",
"global-require": "off",
"no-bitwise": "off",
"no-plusplus": "off",
"no-unneeded-ternary": "off",
"no-unused-vars": ["error", { argsIgnorePattern: "^_" }],
"prefer-const": "off",
"prefer-spread": "off",
indent: ["error", 4, { SwitchCase: 1 }],
quotes: "off",
radix: ["error", "always"],
semi: ["error", "always"],
},
parserOptions: {
"ecmaVersion": 2018,
"ecmaFeatures": {
"jsx": true
}
}
};