eslint-plugin-crisp 1.0.36 → 1.0.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/recommended-vue.js +39 -0
- package/recommended.js +41 -1
package/package.json
CHANGED
package/recommended-vue.js
CHANGED
|
@@ -40,6 +40,45 @@ module.exports = {
|
|
|
40
40
|
"semi-spacing": ["error", { "before": false, "after": true }],
|
|
41
41
|
"space-before-blocks": ["error", "always"],
|
|
42
42
|
"space-in-parens": ["error", "never"],
|
|
43
|
+
|
|
44
|
+
"indent": ["error", 2, {
|
|
45
|
+
"SwitchCase": 1,
|
|
46
|
+
"FunctionDeclaration": {
|
|
47
|
+
"parameters": "off"
|
|
48
|
+
},
|
|
49
|
+
"FunctionExpression": {
|
|
50
|
+
"parameters": "off"
|
|
51
|
+
},
|
|
52
|
+
"CallExpression": {
|
|
53
|
+
"arguments": "off"
|
|
54
|
+
},
|
|
55
|
+
"VariableDeclarator": "first",
|
|
56
|
+
"outerIIFEBody": 0,
|
|
57
|
+
"ArrayExpression": "first",
|
|
58
|
+
"ObjectExpression": "first",
|
|
59
|
+
"ImportDeclaration": "first",
|
|
60
|
+
"flatTernaryExpressions": false,
|
|
61
|
+
"ignoredNodes": [
|
|
62
|
+
"BinaryExpression",
|
|
63
|
+
"ConditionalExpression",
|
|
64
|
+
"IfStatement *",
|
|
65
|
+
"VariableDeclarator",
|
|
66
|
+
"VariableDeclarator > CallExpression",
|
|
67
|
+
"CallExpression > ArrayExpression"
|
|
68
|
+
]
|
|
69
|
+
}],
|
|
70
|
+
|
|
71
|
+
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
|
|
72
|
+
"padded-blocks": ["error", "never"],
|
|
73
|
+
"no-mixed-spaces-and-tabs": "error",
|
|
74
|
+
"no-multi-str": "error",
|
|
75
|
+
"quote-props": ["error", "as-needed"],
|
|
76
|
+
"for-direction": "error",
|
|
77
|
+
"comma-style": ["error", "last"],
|
|
78
|
+
"eol-last": "error",
|
|
79
|
+
"object-curly-newline": ["error", { "multiline": true, "consistent": true }],
|
|
80
|
+
|
|
81
|
+
|
|
43
82
|
"padding-line-between-statements": [
|
|
44
83
|
"error",
|
|
45
84
|
|
package/recommended.js
CHANGED
|
@@ -30,7 +30,34 @@ module.exports = {
|
|
|
30
30
|
"no-console": "warn",
|
|
31
31
|
"no-debugger": "warn",
|
|
32
32
|
"no-unused-vars": "warn",
|
|
33
|
-
|
|
33
|
+
|
|
34
|
+
"indent": ["error", 2, {
|
|
35
|
+
"SwitchCase": 1,
|
|
36
|
+
"FunctionDeclaration": {
|
|
37
|
+
"parameters": "off"
|
|
38
|
+
},
|
|
39
|
+
"FunctionExpression": {
|
|
40
|
+
"parameters": "off"
|
|
41
|
+
},
|
|
42
|
+
"CallExpression": {
|
|
43
|
+
"arguments": "off"
|
|
44
|
+
},
|
|
45
|
+
"VariableDeclarator": "first",
|
|
46
|
+
"outerIIFEBody": 0,
|
|
47
|
+
"ArrayExpression": "first",
|
|
48
|
+
"ObjectExpression": "first",
|
|
49
|
+
"ImportDeclaration": "first",
|
|
50
|
+
"flatTernaryExpressions": false,
|
|
51
|
+
"ignoredNodes": [
|
|
52
|
+
"BinaryExpression",
|
|
53
|
+
"ConditionalExpression",
|
|
54
|
+
"IfStatement *",
|
|
55
|
+
"VariableDeclarator",
|
|
56
|
+
"VariableDeclarator > CallExpression",
|
|
57
|
+
"CallExpression > ArrayExpression"
|
|
58
|
+
]
|
|
59
|
+
}],
|
|
60
|
+
|
|
34
61
|
"linebreak-style": ["error", "unix"],
|
|
35
62
|
"semi": ["error", "always"],
|
|
36
63
|
"max-len": ["error", 80],
|
|
@@ -38,6 +65,19 @@ module.exports = {
|
|
|
38
65
|
"comma-dangle": ["error", "never"],
|
|
39
66
|
"arrow-parens": ["error", "always"],
|
|
40
67
|
"default-param-last": "error",
|
|
68
|
+
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
|
|
69
|
+
"padded-blocks": ["error", "never"],
|
|
70
|
+
"curly": "error",
|
|
71
|
+
"no-mixed-spaces-and-tabs": "error",
|
|
72
|
+
"no-multi-str": "error",
|
|
73
|
+
"quote-props": ["error", "as-needed"],
|
|
74
|
+
"space-in-parens": ["error", "never"],
|
|
75
|
+
"for-direction": "error",
|
|
76
|
+
"space-before-blocks": "error",
|
|
77
|
+
"comma-style": ["error", "last"],
|
|
78
|
+
"eol-last": "error",
|
|
79
|
+
"object-curly-newline": ["error", { "multiline": true, "consistent": true }],
|
|
80
|
+
|
|
41
81
|
"padding-line-between-statements": [
|
|
42
82
|
"error",
|
|
43
83
|
|