diff options
author | silverwind <me@silverwind.io> | 2023-05-12 21:15:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-12 19:15:49 +0000 |
commit | a4d6f83b5be6b95f288a5ca02eb1f46d8ac0f992 (patch) | |
tree | 7233b6cb5ef40e226595ce5ec49e25f581b54721 /.eslintrc.yaml | |
parent | 9173e079ae9ddf18685216fd846ca1727297393c (diff) | |
download | gitea-a4d6f83b5be6b95f288a5ca02eb1f46d8ac0f992.tar.gz gitea-a4d6f83b5be6b95f288a5ca02eb1f46d8ac0f992.zip |
Add `eslint-plugin-wc` (#24689)
Add [eslint-plugin-wc](https://github.com/43081j/eslint-plugin-wc),
another small set of eslint rules covering web components.
Diffstat (limited to '.eslintrc.yaml')
-rw-r--r-- | .eslintrc.yaml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/.eslintrc.yaml b/.eslintrc.yaml index c4e0b9de8c..5fa6d1e682 100644 --- a/.eslintrc.yaml +++ b/.eslintrc.yaml @@ -16,6 +16,7 @@ plugins: - eslint-plugin-sonarjs - eslint-plugin-custom-elements - eslint-plugin-regexp + - eslint-plugin-wc env: es2022: true @@ -717,6 +718,15 @@ rules: use-isnan: [2] valid-typeof: [2, {requireStringLiterals: true}] vars-on-top: [0] + wc/attach-shadow-constructor: [2] + wc/guard-super-call: [2] + wc/no-closed-shadow-root: [2] + wc/no-constructor-attributes: [2] + wc/no-constructor-params: [2] + wc/no-invalid-element-name: [0] # covered by custom-elements/valid-tag-name + wc/no-self-class: [2] + wc/no-typos: [2] + wc/require-listener-teardown: [2] wrap-iife: [2, inside] wrap-regex: [0] yield-star-spacing: [2, after] |