eslint-plugin-crisp 1.1.9 → 1.1.10

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.1.9",
3
+ "version": "1.1.10",
4
4
  "description": "Custom ESLint Rules for Crisp",
5
5
  "author": "Crisp IM SAS",
6
6
  "main": "index.js",
@@ -27,8 +27,8 @@ export default function configRecommendedVue(pluginCrisp) {
27
27
  },
28
28
 
29
29
  plugins: {
30
- "jsdoc": pluginJSDoc,
31
- "crisp": pluginCrisp
30
+ jsdoc: pluginJSDoc,
31
+ crisp: pluginCrisp
32
32
  },
33
33
 
34
34
  settings: {
package/recommended.js CHANGED
@@ -20,8 +20,8 @@ export default function configRecommended(pluginCrisp) {
20
20
  },
21
21
 
22
22
  plugins: {
23
- "jsdoc": pluginJSDoc,
24
- "crisp": pluginCrisp
23
+ jsdoc: pluginJSDoc,
24
+ crisp: pluginCrisp
25
25
  },
26
26
 
27
27
  settings: {
@@ -19,7 +19,7 @@ export default {
19
19
  comment.type === "Block" && comment.value.startsWith("*")
20
20
  );
21
21
 
22
- if (jsDocComment) {
22
+ if (jsDocComment && node.key?.name) {
23
23
  const isPrivate = node.key.name.startsWith("__");
24
24
  const isProtected = node.key.name.startsWith("_") && !node.key.name.startsWith("__");
25
25
  const isPublicJsDoc = jsDocComment.value.includes("@public");