eslint-plugin-crisp 1.0.57 → 1.0.59
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 +2 -1
- package/package.json +3 -3
- package/recommended-vue.js +57 -5
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-crisp",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "Custom
|
|
3
|
+
"version": "1.0.59",
|
|
4
|
+
"description": "Custom ESLint Rules for Crisp",
|
|
5
5
|
"author": "Crisp IM SAS",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"homepage": "https://github.com/crisp-oss/eslint-plugin-crisp",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
20
|
"eslint": "8.45.0",
|
|
21
|
-
"eslint-plugin-vue": "9.
|
|
21
|
+
"eslint-plugin-vue": "9.18.1",
|
|
22
22
|
"eslint-plugin-vue-pug": "0.6.0"
|
|
23
23
|
},
|
|
24
24
|
"keywords": [
|
package/recommended-vue.js
CHANGED
|
@@ -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,14 +211,64 @@ 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/require-direct-export": "error",
|
|
228
|
+
"vue/v-for-delimiter-style": ["error", "in"],
|
|
229
|
+
"vue/comma-dangle": "error",
|
|
212
230
|
"vue/html-quotes": "off",
|
|
213
231
|
"vue/no-v-html": "off",
|
|
214
232
|
"vue/prefer-true-attribute-shorthand": "error",
|
|
233
|
+
"vue/comma-dangle": "error",
|
|
234
|
+
"vue/eqeqeq": "error",
|
|
235
|
+
"vue/key-spacing": ["error", { "beforeColon": false, "afterColon": true }],
|
|
236
|
+
"vue/no-irregular-whitespace": "error",
|
|
237
|
+
"vue/padding-lines-in-component-definition": [
|
|
238
|
+
"error",
|
|
239
|
+
|
|
240
|
+
{
|
|
241
|
+
"groupSingleLineProperties": false
|
|
242
|
+
}
|
|
243
|
+
],
|
|
244
|
+
"vue/block-lang": [
|
|
245
|
+
"error",
|
|
246
|
+
|
|
247
|
+
{
|
|
248
|
+
"script": { "allowNoLang": true }
|
|
249
|
+
}
|
|
250
|
+
],
|
|
251
|
+
"vue/block-order": [
|
|
252
|
+
"error",
|
|
253
|
+
|
|
254
|
+
{
|
|
255
|
+
"order": ["template", "script", "style"]
|
|
256
|
+
}
|
|
257
|
+
],
|
|
258
|
+
"vue/block-tag-newline": [
|
|
259
|
+
"error",
|
|
260
|
+
|
|
261
|
+
{
|
|
262
|
+
"singleline": "always",
|
|
263
|
+
"multiline": "always",
|
|
264
|
+
"maxEmptyLines": 0
|
|
265
|
+
}
|
|
266
|
+
],
|
|
215
267
|
"vue/attributes-order": [
|
|
216
268
|
"error",
|
|
217
269
|
|
|
218
270
|
{
|
|
219
|
-
order: [
|
|
271
|
+
"order": [
|
|
220
272
|
"RENDER_MODIFIERS",
|
|
221
273
|
"CONDITIONALS",
|
|
222
274
|
"OTHER_DIRECTIVES",
|