eslint-plugin-crisp 1.3.0 → 1.3.2
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 +1 -0
- package/recommended.js +1 -0
- package/rules/vue-attribute-comma.js +2 -2
- package/rules/vue-attribute-linebreak.js +2 -2
- package/rules/vue-html-indent.js +2 -2
- package/rules/vue-html-quotes.js +2 -2
- package/rules/vue-name-prop.js +2 -2
- package/rules/vue-ref-case.js +2 -2
package/package.json
CHANGED
package/recommended-vue.js
CHANGED
|
@@ -197,6 +197,7 @@ export default function configRecommendedVue(pluginCrisp) {
|
|
|
197
197
|
// General JSDoc rules
|
|
198
198
|
"jsdoc/require-description": "error",
|
|
199
199
|
"jsdoc/require-param-description": "off",
|
|
200
|
+
"jsdoc/require-returns": "off",
|
|
200
201
|
"jsdoc/require-property-description": "off",
|
|
201
202
|
"jsdoc/require-jsdoc": [
|
|
202
203
|
"error",
|
package/recommended.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import utils from "eslint-plugin-vue/
|
|
1
|
+
import utils from "eslint-plugin-vue/dist/utils/index.js";
|
|
2
2
|
|
|
3
3
|
export default {
|
|
4
4
|
meta: {
|
|
@@ -13,7 +13,7 @@ export default {
|
|
|
13
13
|
},
|
|
14
14
|
|
|
15
15
|
create(context) {
|
|
16
|
-
return utils.defineTemplateBodyVisitor(context, {
|
|
16
|
+
return utils.default.defineTemplateBodyVisitor(context, {
|
|
17
17
|
"VAttribute"(node) {
|
|
18
18
|
const sourceCode = context.getSourceCode();
|
|
19
19
|
const attributeText = sourceCode.getText(node);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import utils from "eslint-plugin-vue/
|
|
1
|
+
import utils from "eslint-plugin-vue/dist/utils/index.js";
|
|
2
2
|
|
|
3
3
|
export default {
|
|
4
4
|
meta: {
|
|
@@ -19,7 +19,7 @@ export default {
|
|
|
19
19
|
})
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
return utils.defineTemplateBodyVisitor(context, {
|
|
22
|
+
return utils.default.defineTemplateBodyVisitor(context, {
|
|
23
23
|
VStartTag(node) {
|
|
24
24
|
// Skip 'template' tags
|
|
25
25
|
if (node.parent.name === "template") {
|
package/rules/vue-html-indent.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import utils from "eslint-plugin-vue/
|
|
1
|
+
import utils from "eslint-plugin-vue/dist/utils/index.js";
|
|
2
2
|
|
|
3
3
|
export default {
|
|
4
4
|
meta: {
|
|
@@ -40,7 +40,7 @@ export default {
|
|
|
40
40
|
context.report(reportObj);
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
return utils.defineTemplateBodyVisitor(context, {
|
|
43
|
+
return utils.default.defineTemplateBodyVisitor(context, {
|
|
44
44
|
VStartTag(node) {
|
|
45
45
|
// Skip "template" tags
|
|
46
46
|
if (node.parent.name === "template") {
|
package/rules/vue-html-quotes.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import utils from "eslint-plugin-vue/
|
|
1
|
+
import utils from "eslint-plugin-vue/dist/utils/index.js";
|
|
2
2
|
|
|
3
3
|
export default {
|
|
4
4
|
meta: {
|
|
@@ -33,7 +33,7 @@ export default {
|
|
|
33
33
|
const quoteChar = double ? '"' : "'"
|
|
34
34
|
const quoteName = double ? "double quotes" : "single quotes"
|
|
35
35
|
|
|
36
|
-
return utils.defineTemplateBodyVisitor(context, {
|
|
36
|
+
return utils.default.defineTemplateBodyVisitor(context, {
|
|
37
37
|
"VAttribute[value!=null]"(node) {
|
|
38
38
|
const text = sourceCode.getText(node.value)
|
|
39
39
|
const firstChar = text[0]
|
package/rules/vue-name-prop.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import utils from "eslint-plugin-vue/
|
|
1
|
+
import utils from "eslint-plugin-vue/dist/utils/index.js";
|
|
2
2
|
import { snakeCase } from "lodash-es";
|
|
3
3
|
|
|
4
4
|
export default {
|
|
@@ -17,7 +17,7 @@ export default {
|
|
|
17
17
|
},
|
|
18
18
|
|
|
19
19
|
create(context) {
|
|
20
|
-
return utils.defineTemplateBodyVisitor(context, {
|
|
20
|
+
return utils.default.defineTemplateBodyVisitor(context, {
|
|
21
21
|
"VElement"(node) {
|
|
22
22
|
if (node.name && node.name.startsWith("field-")) {
|
|
23
23
|
const nameAttribute = node.startTag.attributes.find((attribute) => {
|
package/rules/vue-ref-case.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import utils from "eslint-plugin-vue/
|
|
1
|
+
import utils from "eslint-plugin-vue/dist/utils/index.js";
|
|
2
2
|
|
|
3
3
|
export default {
|
|
4
4
|
meta: {
|
|
@@ -12,7 +12,7 @@ export default {
|
|
|
12
12
|
},
|
|
13
13
|
|
|
14
14
|
create(context) {
|
|
15
|
-
return utils.defineTemplateBodyVisitor(context, {
|
|
15
|
+
return utils.default.defineTemplateBodyVisitor(context, {
|
|
16
16
|
"VAttribute[directive=false][key.name='ref']"(node) {
|
|
17
17
|
// Check if the ref attribute is not bound to an expression
|
|
18
18
|
if (node.value && node.value.type === "VLiteral") {
|