Skip to content

Commit

Permalink
v1.0.58
Browse files Browse the repository at this point in the history
Add more Vue rules
  • Loading branch information
eliottvincent committed Nov 9, 2023
1 parent 567e59e commit 86b2300
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 18 deletions.
22 changes: 11 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-plugin-crisp",
"version": "1.0.57",
"version": "1.0.58",
"description": "Custom EsLint Rules for Crisp",
"author": "Crisp IM SAS",
"main": "index.js",
Expand All @@ -18,7 +18,7 @@
},
"peerDependencies": {
"eslint": "8.45.0",
"eslint-plugin-vue": "9.15.1",
"eslint-plugin-vue": "9.18.1",
"eslint-plugin-vue-pug": "0.6.0"
},
"keywords": [
Expand Down
30 changes: 25 additions & 5 deletions recommended-vue.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ module.exports = {
"for-direction": "error",
"key-spacing": ["error", { "beforeColon": false, "afterColon": true }],
"linebreak-style": ["error", "unix"],
"newline-per-chained-call": "error",
"no-console": "warn",
"no-debugger": "warn",
"no-eval": "error",
Expand Down Expand Up @@ -160,19 +161,20 @@ module.exports = {
// JSDoc rules
"jsdoc/require-param-description": "off",
"jsdoc/newline-after-description": "off",
"jsdoc/require-description": "error",
"jsdoc/require-jsdoc": [
"error",

{
require: {
"require": {
"FunctionDeclaration": true,
"MethodDefinition": true,
"ClassDeclaration": true,
"ArrowFunctionExpression": false,
"FunctionExpression": false
},

contexts: [
"contexts": [
"Property[key.name=\"getters\"] > ObjectExpression > Property",
"Property[key.name=\"methods\"] > ObjectExpression > Property"
]
Expand All @@ -182,9 +184,9 @@ module.exports = {
"error",

{
tagSequence: [
"tagSequence": [
{
tags: [
"tags": [
"private",
"protected",
"public",
Expand All @@ -209,14 +211,32 @@ module.exports = {
"crisp/jsdoc-enforce-classdesc": "error",

// General Vue rules
"vue/component-api-style": ["error", ["options"]],
"vue/component-name-in-template-casing": ["error", "kebab-case"],
"vue/component-options-name-casing": ["error", "PascalCase"],
"vue/custom-event-name-casing": ["error", "camelCase"],
"vue/html-comment-content-spacing": ["error", "always"],
"vue/match-component-import-name": ["error"],
"vue/new-line-between-multi-line-property": ["error"],
"vue/no-bare-strings-in-template": ["error"],
"vue/no-multiple-objects-in-class": ["error"],
"vue/no-static-inline-styles": ["error"],
"vue/no-use-v-else-with-v-for": ["error"],
"vue/no-useless-v-bind": ["error"],
"vue/padding-line-between-blocks": ["error", "always"],
"vue/padding-lines-in-component-definition": ["error"],
"vue/require-direct-export": ["error"],
"vue/v-for-delimiter-style": ["error", "in"],

"vue/comma-dangle": "error",
"vue/html-quotes": "off",
"vue/no-v-html": "off",
"vue/prefer-true-attribute-shorthand": "error",
"vue/attributes-order": [
"error",

{
order: [
"order": [
"RENDER_MODIFIERS",
"CONDITIONALS",
"OTHER_DIRECTIVES",
Expand Down

0 comments on commit 86b2300

Please sign in to comment.