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)

This commit is contained in:
Kevin MacMartin 2022-03-17 17:40:26 -04:00
parent d057abd134
commit a535ddba36
2 changed files with 6 additions and 5 deletions

View file

@ -12,7 +12,7 @@ Configurations for linters used at WNY
* Linter: [eslint](https://github.com/eslint/eslint) * Linter: [eslint](https://github.com/eslint/eslint)
* Modules: * 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-vue@next](https://github.com/vuejs/eslint-plugin-vue)
* [eslint-plugin-json](https://github.com/azeemba/eslint-plugin-json) * [eslint-plugin-json](https://github.com/azeemba/eslint-plugin-json)
* Config: `eslintrc` * Config: `eslintrc`

View file

@ -1,8 +1,8 @@
{ {
"parserOptions": { "parserOptions": {
"parser": "babel-eslint", "parser": "@babel/eslint-parser",
"ecmaVersion": 6, "sourceType": "module",
"sourceType": "module" "allowImportExportEverywhere": true
}, },
"extends": [ "extends": [
@ -130,7 +130,8 @@
"vue/html-closing-bracket-spacing": [ "warn", { "startTag": "never", "endTag": "never", "selfClosingTag": "always" } ], "vue/html-closing-bracket-spacing": [ "warn", { "startTag": "never", "endTag": "never", "selfClosingTag": "always" } ],
"vue/html-indent": "off", "vue/html-indent": "off",
"vue/html-self-closing": "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/multiline-html-element-content-newline": "off",
"vue/mustache-interpolation-spacing": [ "warn" ], "vue/mustache-interpolation-spacing": [ "warn" ],
"vue/name-property-casing": [ "warn", "kebab-case" ], "vue/name-property-casing": [ "warn", "kebab-case" ],