-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
93 lines (92 loc) · 2.06 KB
/
.eslintrc.json
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
{
"extends": [
"plugin:@wordpress/eslint-plugin/recommended"
],
"plugins": [
"jsdoc"
],
"parserOptions": {
"ecmaVersion": 6,
"ecmaFeatures": {
"jsx": true,
"arrowFunctions": true,
"blockBindings": true,
"classes": true,
"defaultParams": true,
"modules": true
},
"sourceType": "module"
},
"globals": {
"wp": false,
"hm": false,
"_": false
},
"env": {
"es6": true,
"browser": true,
"node": true,
"commonjs": true,
"jquery": true
},
"rules": {
"camelcase": [1],
"space-in-parens": [1, "always"],
"no-trailing-spaces": [1],
"spaced-comment": [0],
"paddeele-d-blocks": [0],
"prefer-template": [0],
"max-len": [0],
"no-else-return": [0],
"func-names": [0],
"object-shorthand": [0],
"indent": ["error", "tab"],
"space-before-function-paren": 0,
"no-tabs": 0,
"prefer-destructuring": 0,
"no-param-reassign": 0,
"curly": "error",
"no-empty-function": "error",
"no-global-assign": "error",
"yoda": [ "error", "always" ],
"no-undefined":"error",
"comma-spacing": ["error", { "before": false, "after": true }],
"lines-between-class-members": ["error", "always"],
"arrow-spacing": "error",
"jsdoc/check-alignment": 1,
"jsdoc/check-param-names": 1,
"jsdoc/check-tag-names": 1,
"jsdoc/check-types": 0,
"jsdoc/implements-on-classes": 1,
"jsdoc/newline-after-description": 1,
"jsdoc/no-undefined-types": 0,
"jsdoc/require-jsdoc": 1,
"jsdoc/require-param": 1,
"jsdoc/require-param-description": 1,
"jsdoc/require-param-name": 1,
"jsdoc/require-param-type": 1,
"jsdoc/require-returns": 1,
"jsdoc/require-returns-check": 1,
"jsdoc/require-returns-description": 1,
"jsdoc/require-returns-type": 1,
"jsdoc/valid-types": 1,
"no-mixed-spaces-and-tabs": "off",
"require-jsdoc": ["error", {
"require": {
"FunctionDeclaration": true,
"MethodDefinition": true,
"ClassDeclaration": true,
"ArrowFunctionExpression": true,
"FunctionExpression": true
}
}]
},
"settings": {
"jsdoc": {
"tagNamePreference" : {
"param": "param",
"returns": "return"
}
}
}
}