mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-18 15:21:04 +00:00
4c0fce8f7b
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.
16 lines
307 B
YAML
16 lines
307 B
YAML
plugins:
|
|
- eslint-plugin-vue
|
|
|
|
extends:
|
|
- ../../../.eslintrc.yaml
|
|
- plugin:vue/recommended
|
|
|
|
env:
|
|
browser: true
|
|
|
|
rules:
|
|
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]
|