eslint-plugin-crisp 1.0.57 → 1.0.58

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/recommended-vue.js +25 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-crisp",
3
- "version": "1.0.57",
3
+ "version": "1.0.58",
4
4
  "description": "Custom EsLint Rules for Crisp",
5
5
  "author": "Crisp IM SAS",
6
6
  "main": "index.js",
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "peerDependencies": {
20
20
  "eslint": "8.45.0",
21
- "eslint-plugin-vue": "9.15.1",
21
+ "eslint-plugin-vue": "9.18.1",
22
22
  "eslint-plugin-vue-pug": "0.6.0"
23
23
  },
24
24
  "keywords": [
@@ -45,6 +45,7 @@ module.exports = {
45
45
  "for-direction": "error",
46
46
  "key-spacing": ["error", { "beforeColon": false, "afterColon": true }],
47
47
  "linebreak-style": ["error", "unix"],
48
+ "newline-per-chained-call": "error",
48
49
  "no-console": "warn",
49
50
  "no-debugger": "warn",
50
51
  "no-eval": "error",
@@ -160,11 +161,12 @@ module.exports = {
160
161
  // JSDoc rules
161
162
  "jsdoc/require-param-description": "off",
162
163
  "jsdoc/newline-after-description": "off",
164
+ "jsdoc/require-description": "error",
163
165
  "jsdoc/require-jsdoc": [
164
166
  "error",
165
167
 
166
168
  {
167
- require: {
169
+ "require": {
168
170
  "FunctionDeclaration": true,
169
171
  "MethodDefinition": true,
170
172
  "ClassDeclaration": true,
@@ -172,7 +174,7 @@ module.exports = {
172
174
  "FunctionExpression": false
173
175
  },
174
176
 
175
- contexts: [
177
+ "contexts": [
176
178
  "Property[key.name=\"getters\"] > ObjectExpression > Property",
177
179
  "Property[key.name=\"methods\"] > ObjectExpression > Property"
178
180
  ]
@@ -182,9 +184,9 @@ module.exports = {
182
184
  "error",
183
185
 
184
186
  {
185
- tagSequence: [
187
+ "tagSequence": [
186
188
  {
187
- tags: [
189
+ "tags": [
188
190
  "private",
189
191
  "protected",
190
192
  "public",
@@ -209,6 +211,24 @@ module.exports = {
209
211
  "crisp/jsdoc-enforce-classdesc": "error",
210
212
 
211
213
  // General Vue rules
214
+ "vue/component-api-style": ["error", ["options"]],
215
+ "vue/component-name-in-template-casing": ["error", "kebab-case"],
216
+ "vue/component-options-name-casing": ["error", "PascalCase"],
217
+ "vue/custom-event-name-casing": ["error", "camelCase"],
218
+ "vue/html-comment-content-spacing": ["error", "always"],
219
+ "vue/match-component-import-name": ["error"],
220
+ "vue/new-line-between-multi-line-property": ["error"],
221
+ "vue/no-bare-strings-in-template": ["error"],
222
+ "vue/no-multiple-objects-in-class": ["error"],
223
+ "vue/no-static-inline-styles": ["error"],
224
+ "vue/no-use-v-else-with-v-for": ["error"],
225
+ "vue/no-useless-v-bind": ["error"],
226
+ "vue/padding-line-between-blocks": ["error", "always"],
227
+ "vue/padding-lines-in-component-definition": ["error"],
228
+ "vue/require-direct-export": ["error"],
229
+ "vue/v-for-delimiter-style": ["error", "in"],
230
+
231
+ "vue/comma-dangle": "error",
212
232
  "vue/html-quotes": "off",
213
233
  "vue/no-v-html": "off",
214
234
  "vue/prefer-true-attribute-shorthand": "error",
@@ -216,7 +236,7 @@ module.exports = {
216
236
  "error",
217
237
 
218
238
  {
219
- order: [
239
+ "order": [
220
240
  "RENDER_MODIFIERS",
221
241
  "CONDITIONALS",
222
242
  "OTHER_DIRECTIVES",