-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
54 lines (54 loc) · 1.42 KB
/
.eslintrc
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
{
"root": true,
"parser": "@babel/eslint-parser",
"extends": [
"airbnb-base/legacy",
"plugin:cypress/recommended",
"plugin:jsdoc/recommended"
],
"plugins": [
"chai-friendly",
"jsdoc"
],
"ignorePatterns": [
"backend.js",
"backend-es5.js",
"frontend.js",
"frontend-es5.js",
"bin/",
"config/naturaldocs/",
"cypress/support/component.js",
"cypress/support/e2e.js",
"docs",
"icons/",
"mochawesome-report",
"node_modules/",
"postcss.config.js",
"vendor/",
"wp-content/plugins/"
],
"rules": {
"array-bracket-spacing": ["error", "always"],
"block-spacing": ["error", "always"],
"comma-spacing": ["error"],
"func-names": ["warn", "as-needed"],
"indent": ["warn", 4],
"max-len": [ "error", {
"code": 120,
"tabWidth": 4,
"ignoreUrls": true,
"ignoreComments": true,
"ignoreRegExpLiterals": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true
}],
"no-use-before-define": "warn",
"no-param-reassign": [ "warn", {
"props": false
}],
"no-unused-vars": "warn",
"no-unused-expressions": 0,
"chai-friendly/no-unused-expressions": 2,
"jsdoc/tag-lines": 0
}
}