aboutsummaryrefslogtreecommitdiff
path: root/.eslintrc.yaml
diff options
context:
space:
mode:
authorsilverwind2022-07-15 11:38:18 +0200
committerGitHub2022-07-15 17:38:18 +0800
commit4c0fce8f7b3ec185ca34e301fb67bf2d28d972d4 (patch)
tree928012fd19d7806b265bb096f6e5bcd68ba25e85 /.eslintrc.yaml
parente35a39e81d9ef548b17612b6441951eb08b4345e (diff)
Fix eslint parsing errors, remove eslint-plugin-html (#20323)
Introduce a separate .eslintrc in the Vue components folder to selectively enable vue-eslint-parser there, so that the rest of the files can use eslint's core parser which can deal with hashbangs. The fact that the eslint-disable comments worked in HTML was a unintended side-effect of the files being parsed via vue-eslint-parser, so I had to disable the parsing of these files in .eslintrc.yaml to make it work, and finally decided to remove eslint-plugin-html as it causes more issues than it solves.
Diffstat (limited to '.eslintrc.yaml')
-rw-r--r--.eslintrc.yaml19
1 files changed, 1 insertions, 18 deletions
diff --git a/.eslintrc.yaml b/.eslintrc.yaml
index ff62d9cc9..3a906c44c 100644
--- a/.eslintrc.yaml
+++ b/.eslintrc.yaml
@@ -11,13 +11,8 @@ parserOptions:
plugins:
- eslint-plugin-unicorn
- eslint-plugin-import
- - eslint-plugin-vue
- - eslint-plugin-html
- eslint-plugin-jquery
-extends:
- - plugin:vue/recommended
-
env:
es2022: true
node: true
@@ -25,18 +20,11 @@ env:
globals:
__webpack_public_path__: true
-settings:
- html/html-extensions: [".tmpl"]
-
overrides:
- - files: ["web_src/**/*.js", "web_src/**/*.vue", "templates/**/*.tmpl"]
+ - files: ["web_src/**/*.js", "docs/**/*.js"]
env:
browser: true
node: false
- - files: ["templates/**/*.tmpl"]
- rules:
- no-tabs: [0]
- indent: [2, tab, {SwitchCase: 1}]
- files: ["web_src/**/*worker.js"]
env:
worker: true
@@ -502,11 +490,6 @@ rules:
use-isnan: [2]
valid-typeof: [2, {requireStringLiterals: true}]
vars-on-top: [0]
- vue/attributes-order: [0]
- vue/component-definition-name-casing: [0]
- vue/html-closing-bracket-spacing: [0]
- vue/max-attributes-per-line: [0]
- vue/one-component-per-file: [0]
wrap-iife: [2, inside]
wrap-regex: [0]
yield-star-spacing: [2, after]