aboutsummaryrefslogtreecommitdiffstats
path: root/.eslintrc.yaml
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2023-04-08 11:24:42 +0200
committerGitHub <noreply@github.com>2023-04-08 05:24:42 -0400
commit3037922a9bc2e2e2708de589ff0235062970d6cc (patch)
tree4a9669a1d7753ea91d9e35202c09973d36f2801c /.eslintrc.yaml
parentb918a2c4fb62666d4f8bc1755f0dc5e1cdd94d53 (diff)
downloadgitea-3037922a9bc2e2e2708de589ff0235062970d6cc.tar.gz
gitea-3037922a9bc2e2e2708de589ff0235062970d6cc.zip
Add eslint-plugin-custom-elements (#23991)
Add [eslint-plugin-custom-elements](https://github.com/github/eslint-plugin-custom-elements) and enable all rules that I've found sensible.
Diffstat (limited to '.eslintrc.yaml')
-rw-r--r--.eslintrc.yaml14
1 files changed, 14 insertions, 0 deletions
diff --git a/.eslintrc.yaml b/.eslintrc.yaml
index 2cde9d2aa5..81b3a10f30 100644
--- a/.eslintrc.yaml
+++ b/.eslintrc.yaml
@@ -13,6 +13,7 @@ plugins:
- eslint-plugin-import
- eslint-plugin-jquery
- eslint-plugin-sonarjs
+ - eslint-plugin-custom-elements
env:
es2022: true
@@ -62,6 +63,19 @@ rules:
consistent-this: [0]
constructor-super: [2]
curly: [0]
+ custom-elements/expose-class-on-global: [0]
+ custom-elements/extends-correct-class: [2]
+ custom-elements/file-name-matches-element: [0]
+ custom-elements/no-constructor: [2]
+ custom-elements/no-customized-built-in-elements: [2]
+ custom-elements/no-dom-traversal-in-attributechangedcallback: [2]
+ custom-elements/no-dom-traversal-in-connectedcallback: [2]
+ custom-elements/no-exports-with-element: [2]
+ custom-elements/no-method-prefixed-with-on: [2]
+ custom-elements/no-unchecked-define: [0]
+ custom-elements/one-element-per-file: [0]
+ custom-elements/tag-name-matches-class: [2]
+ custom-elements/valid-tag-name: [2]
default-case-last: [2]
default-case: [0]
default-param-last: [0]