diff --git a/.eslintrc.js b/.eslintrc.js index 0f718388..20083f86 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,34 +1,31 @@ module.exports = { env: { browser: true, - es6: true + es6: true, }, - extends: ["plugin:vue/recommended", 'prettier', 'plugin:prettier/recommended' ], + extends: ["plugin:vue/recommended", "prettier", "plugin:prettier/recommended"], rules: { - 'max-len': 'off', - 'no-console': 'warn', - 'no-return-await': 'warn', - 'no-throw-literal': 'warn', - 'vue/require-default-prop': 'off', - 'vue/prop-name-casing': 'off', - 'object-curly-spacing': 'off', - 'lines-between-class-members': [ - 'warn', - 'always', - {exceptAfterSingleLine: true} + "max-len": "off", + "no-console": "warn", + "no-return-await": "warn", + "no-throw-literal": "warn", + "vue/require-default-prop": "off", + "vue/prop-name-casing": "off", + "vue/multi-word-component-names": "off", + "object-curly-spacing": "off", + "lines-between-class-members": ["warn", "always", { exceptAfterSingleLine: true }], + "padding-line-between-statements": [ + "warn", + { blankLine: "always", prev: "function", next: "*" }, + { blankLine: "always", prev: "import", next: ["class", "function"] }, ], - 'padding-line-between-statements': [ - 'warn', - {blankLine: 'always', prev: 'function', next: '*'}, - {blankLine: 'always', prev: 'import', next: ['class', 'function']} - ], - 'vue/html-self-closing': [ - 'warn', + "vue/html-self-closing": [ + "warn", { html: { - void: 'always' - } - } - ] - } + void: "always", + }, + }, + ], + }, }; diff --git a/app/javascript/components/components/ComponentCard.vue b/app/javascript/components/components/ComponentCard.vue index 859b83f5..b4cd745c 100644 --- a/app/javascript/components/components/ComponentCard.vue +++ b/app/javascript/components/components/ComponentCard.vue @@ -23,7 +23,7 @@