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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-crisp",
3
- "version": "1.3.0",
3
+ "version": "1.3.2",
4
4
  "description": "Custom ESLint Rules for Crisp",
5
5
  "author": "Crisp IM SAS",
6
6
  "main": "index.js",
@@ -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
@@ -184,6 +184,7 @@ export default function configRecommended(pluginCrisp) {
184
184
 
185
185
  // General JSDoc rules
186
186
  "jsdoc/no-undefined-types": "off",
187
+ "jsdoc/require-returns": "off",
187
188
  "jsdoc/require-jsdoc": [
188
189
  "error",
189
190
 
@@ -1,4 +1,4 @@
1
- import utils from "eslint-plugin-vue/lib/utils/index.js";
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/lib/utils/index.js";
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") {
@@ -1,4 +1,4 @@
1
- import utils from "eslint-plugin-vue/lib/utils/index.js";
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") {
@@ -1,4 +1,4 @@
1
- import utils from "eslint-plugin-vue/lib/utils/index.js";
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]
@@ -1,4 +1,4 @@
1
- import utils from "eslint-plugin-vue/lib/utils/index.js";
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) => {
@@ -1,4 +1,4 @@
1
- import utils from "eslint-plugin-vue/lib/utils/index.js";
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") {