eslint-plugin-crisp 1.3.3 → 1.3.5

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/README.md CHANGED
@@ -175,7 +175,7 @@ Each item has emojis denoting:
175
175
  | [vue/block-order](https://eslint.vuejs.org/rules/block-order) | Enforces order of component top-level elements (`template`, then `script`, then `style`) | | 🟢 |
176
176
  | [vue/block-tag-newline](https://eslint.vuejs.org/rules/block-tag-newline) | Requires one line break after opening and before closing block-level tags | | 🟢 |
177
177
  | [vue/comma-dangle](https://eslint.vuejs.org/rules/comma-dangle) | Disallows trailing commas in `<template>` | | 🟢 |
178
- | [vue/component-api-style](https://eslint.vuejs.org/rules/component-api-style) | Enforces Options API style | | 🟢 |
178
+ | [vue/component-api-style](https://eslint.vuejs.org/rules/component-api-style) | Allows both Options API and Composition API | | 🟢 |
179
179
  | [vue/component-name-in-template-casing](https://eslint.vuejs.org/rules/component-name-in-template-casing) | Enforces tag names to kebab case | | 🟢 |
180
180
  | [vue/component-options-name-casing](https://eslint.vuejs.org/rules/component-options-name-casing) | Enforces component names in `components` options to pascal case | | 🟢 |
181
181
  | [vue/custom-event-name-casing](https://eslint.vuejs.org/rules/custom-event-name-casing) | Enforces custom event names to camel case | | 🟢 |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-crisp",
3
- "version": "1.3.3",
3
+ "version": "1.3.5",
4
4
  "description": "Custom ESLint Rules for Crisp",
5
5
  "author": "Crisp IM SAS",
6
6
  "main": "index.js",
@@ -294,7 +294,7 @@ export default function configRecommendedVue(pluginCrisp) {
294
294
  }
295
295
  ],
296
296
  "vue/comma-dangle": "error",
297
- "vue/component-api-style": ["error", ["options"]],
297
+ "vue/component-api-style": ["error", ["options", "composition"]],
298
298
  "vue/component-name-in-template-casing": ["error", "kebab-case"],
299
299
  "vue/component-options-name-casing": ["error", "PascalCase"],
300
300
  "vue/custom-event-name-casing": [
package/recommended.js CHANGED
@@ -92,7 +92,10 @@ export default function configRecommended(pluginCrisp) {
92
92
  ],
93
93
  "keyword-spacing": "error",
94
94
  "linebreak-style": ["error", "unix"],
95
- "max-len": ["error", { "code": 80, "ignorePattern": "^/\\*\\* @import" }],
95
+ "max-len": ["error", {
96
+ "code": 80,
97
+ "ignorePattern": "^\\*\\* \\@import"
98
+ }],
96
99
  "no-console": "warn",
97
100
  "no-debugger": "warn",
98
101
  "no-eval": "error",
@@ -15,10 +15,12 @@ export default {
15
15
  "PROJECT: COMPONENTS",
16
16
  "PROJECT: POPUPS",
17
17
  "PROJECT: MIXINS",
18
+ "PROJECT: COMPOSABLES",
18
19
  "PROJECT: FACTORIES",
19
20
  "PROJECT: HELPERS",
20
21
  "PROJECT: PLATFORMS",
21
22
  "PROJECT: LIBRARIES",
23
+ "TYPES",
22
24
  // Add any other groups here
23
25
  ];
24
26
 
@@ -62,7 +64,8 @@ export default {
62
64
  comment.type === "Line" &&
63
65
  (
64
66
  comment.value.trim().startsWith("PROJECT:") ||
65
- comment.value.trim().startsWith("NPM")
67
+ comment.value.trim().startsWith("NPM") ||
68
+ comment.value.trim().startsWith("TYPES")
66
69
  )
67
70
  );
68
71
  }