eslint-plugin-crisp 1.0.52 → 1.0.57
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.
|
@@ -3,6 +3,10 @@ on:
|
|
|
3
3
|
tags:
|
|
4
4
|
- "v*.*.*"
|
|
5
5
|
|
|
6
|
+
permissions:
|
|
7
|
+
id-token: write
|
|
8
|
+
contents: write
|
|
9
|
+
|
|
6
10
|
name: Build and Release
|
|
7
11
|
|
|
8
12
|
jobs:
|
|
@@ -23,6 +27,6 @@ jobs:
|
|
|
23
27
|
run: node --version && npm --version && node -p process.versions.v8
|
|
24
28
|
|
|
25
29
|
- name: Release package
|
|
26
|
-
run: npm publish --ignore-scripts
|
|
30
|
+
run: npm publish --ignore-scripts --provenance
|
|
27
31
|
env:
|
|
28
32
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
package/package.json
CHANGED
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-crisp",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.57",
|
|
4
4
|
"description": "Custom EsLint Rules for Crisp",
|
|
5
|
-
"main": "index.js",
|
|
6
5
|
"author": "Crisp IM SAS",
|
|
7
|
-
"
|
|
6
|
+
"main": "index.js",
|
|
7
|
+
"homepage": "https://github.com/crisp-oss/eslint-plugin-crisp",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git://github.com/crisp-oss/eslint-plugin-crisp"
|
|
11
|
+
},
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/crisp-oss/eslint-plugin-crisp/issues"
|
|
14
|
+
},
|
|
8
15
|
"dependencies": {
|
|
9
16
|
"doctrine": "3.0.0",
|
|
10
17
|
"eslint-plugin-jsdoc": "43.0.7"
|
|
@@ -13,5 +20,11 @@
|
|
|
13
20
|
"eslint": "8.45.0",
|
|
14
21
|
"eslint-plugin-vue": "9.15.1",
|
|
15
22
|
"eslint-plugin-vue-pug": "0.6.0"
|
|
16
|
-
}
|
|
23
|
+
},
|
|
24
|
+
"keywords": [
|
|
25
|
+
"eslint",
|
|
26
|
+
"rules",
|
|
27
|
+
"vue"
|
|
28
|
+
],
|
|
29
|
+
"license": "MIT"
|
|
17
30
|
}
|
package/recommended-vue.js
CHANGED
|
@@ -24,6 +24,7 @@ module.exports = {
|
|
|
24
24
|
preferredTypes: {
|
|
25
25
|
Function: "function",
|
|
26
26
|
Array: "array",
|
|
27
|
+
Map: "map",
|
|
27
28
|
Integer: "number"
|
|
28
29
|
}
|
|
29
30
|
}
|
|
@@ -42,6 +43,7 @@ module.exports = {
|
|
|
42
43
|
"eqeqeq": "error",
|
|
43
44
|
"eol-last": "error",
|
|
44
45
|
"for-direction": "error",
|
|
46
|
+
"key-spacing": ["error", { "beforeColon": false, "afterColon": true }],
|
|
45
47
|
"linebreak-style": ["error", "unix"],
|
|
46
48
|
"no-console": "warn",
|
|
47
49
|
"no-debugger": "warn",
|
|
@@ -86,20 +88,13 @@ module.exports = {
|
|
|
86
88
|
"CallExpression": {
|
|
87
89
|
"arguments": "off"
|
|
88
90
|
},
|
|
89
|
-
"VariableDeclarator":
|
|
91
|
+
"VariableDeclarator": 1,
|
|
90
92
|
"outerIIFEBody": 0,
|
|
91
|
-
"ArrayExpression":
|
|
92
|
-
"ObjectExpression":
|
|
93
|
-
"ImportDeclaration":
|
|
93
|
+
"ArrayExpression": 1,
|
|
94
|
+
"ObjectExpression": 1,
|
|
95
|
+
"ImportDeclaration": 1,
|
|
94
96
|
"flatTernaryExpressions": false,
|
|
95
|
-
"
|
|
96
|
-
"BinaryExpression",
|
|
97
|
-
"ConditionalExpression",
|
|
98
|
-
"IfStatement *",
|
|
99
|
-
"VariableDeclarator",
|
|
100
|
-
"VariableDeclarator > CallExpression",
|
|
101
|
-
"CallExpression > ArrayExpression"
|
|
102
|
-
]
|
|
97
|
+
"offsetTernaryExpressions": true
|
|
103
98
|
}
|
|
104
99
|
],
|
|
105
100
|
"object-curly-newline": [
|
|
@@ -175,7 +170,12 @@ module.exports = {
|
|
|
175
170
|
"ClassDeclaration": true,
|
|
176
171
|
"ArrowFunctionExpression": false,
|
|
177
172
|
"FunctionExpression": false
|
|
178
|
-
}
|
|
173
|
+
},
|
|
174
|
+
|
|
175
|
+
contexts: [
|
|
176
|
+
"Property[key.name=\"getters\"] > ObjectExpression > Property",
|
|
177
|
+
"Property[key.name=\"methods\"] > ObjectExpression > Property"
|
|
178
|
+
]
|
|
179
179
|
}
|
|
180
180
|
],
|
|
181
181
|
"jsdoc/sort-tags": [
|
package/rules/align-one-var.js
CHANGED
|
@@ -23,8 +23,8 @@ module.exports = {
|
|
|
23
23
|
for (let i = 0; i < node.declarations.length; i++) {
|
|
24
24
|
const declaration = node.declarations[i];
|
|
25
25
|
|
|
26
|
-
// If the current declaration is on the same line as the last one,
|
|
27
|
-
//
|
|
26
|
+
// If the current declaration is on the same line as the last one, \
|
|
27
|
+
// skip it
|
|
28
28
|
if (lastDeclarationLine === declaration.loc.start.line) {
|
|
29
29
|
continue;
|
|
30
30
|
}
|
|
@@ -39,10 +39,10 @@ module.exports = {
|
|
|
39
39
|
function checkNode(node, jsdocParams, i) {
|
|
40
40
|
jsdocParam = jsdocParams[i];
|
|
41
41
|
|
|
42
|
-
if (!jsdocParam) {
|
|
42
|
+
if (!jsdocParam || !jsdocParam.type) {
|
|
43
43
|
context.report({
|
|
44
44
|
node,
|
|
45
|
-
message: "No matching JSDoc param found
|
|
45
|
+
message: "No matching JSDoc param found"
|
|
46
46
|
});
|
|
47
47
|
|
|
48
48
|
return;
|