From a535ddba36cc237a7fd9231c1d2fd953ef41f284 Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Thu, 17 Mar 2022 17:40:26 -0400 Subject: [PATCH] Update the babel plugin and disable the new multi-word-component-names recommendation (good idea, but it's going to conflict in too many old projects) --- README.md | 2 +- eslintrc | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 7bf0101..dbd5f0d 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Configurations for linters used at WNY * Linter: [eslint](https://github.com/eslint/eslint) * Modules: - * [babel-eslint](https://github.com/babel/babel-eslint) + * [@babel/eslint-parser](https://github.com/babel/babel-eslint) * [eslint-plugin-vue@next](https://github.com/vuejs/eslint-plugin-vue) * [eslint-plugin-json](https://github.com/azeemba/eslint-plugin-json) * Config: `eslintrc` diff --git a/eslintrc b/eslintrc index bb29ca0..88ac916 100644 --- a/eslintrc +++ b/eslintrc @@ -1,8 +1,8 @@ { "parserOptions": { - "parser": "babel-eslint", - "ecmaVersion": 6, - "sourceType": "module" + "parser": "@babel/eslint-parser", + "sourceType": "module", + "allowImportExportEverywhere": true }, "extends": [ @@ -130,7 +130,8 @@ "vue/html-closing-bracket-spacing": [ "warn", { "startTag": "never", "endTag": "never", "selfClosingTag": "always" } ], "vue/html-indent": "off", "vue/html-self-closing": "off", - "vue/max-attributes-per-line": [ "warn", { "singleline": 4, "multiline": { "max": 1, "allowFirstLine": false } } ], + "vue/max-attributes-per-line": [ "warn", { "singleline": 4, "multiline": { "max": 1 } } ], + "vue/multi-word-component-names": "off", "vue/multiline-html-element-content-newline": "off", "vue/mustache-interpolation-spacing": [ "warn" ], "vue/name-property-casing": [ "warn", "kebab-case" ],