summaryrefslogtreecommitdiffstats
path: root/.eslintrc.yaml
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2023-05-15 19:29:23 +0200
committerGitHub <noreply@github.com>2023-05-15 17:29:23 +0000
commit31ad6181e11977634a9ab4a30635bb4516acbbf8 (patch)
tree2e1c56469e4b6675aba8acb8a5f6633515f97649 /.eslintrc.yaml
parentf74bd9dc81e343d82e95f41699a505eeb2ac52c4 (diff)
downloadgitea-31ad6181e11977634a9ab4a30635bb4516acbbf8.tar.gz
gitea-31ad6181e11977634a9ab4a30635bb4516acbbf8.zip
Switch to `@eslint-community/eslint-comments` (#24736)
[eslint-plugin-eslint-comments](https://github.com/mysticatea/eslint-plugin-eslint-comments) is unmaintained, switch to the community fork. See https://github.com/mysticatea/eslint-plugin-eslint-comments/issues/72 for discussion.
Diffstat (limited to '.eslintrc.yaml')
-rw-r--r--.eslintrc.yaml26
1 files changed, 13 insertions, 13 deletions
diff --git a/.eslintrc.yaml b/.eslintrc.yaml
index d47d8c0349..fd1b6da2c0 100644
--- a/.eslintrc.yaml
+++ b/.eslintrc.yaml
@@ -9,15 +9,15 @@ parserOptions:
ecmaVersion: latest
plugins:
- - eslint-plugin-unicorn
+ - "@eslint-community/eslint-plugin-eslint-comments"
+ - eslint-plugin-custom-elements
- eslint-plugin-import
- eslint-plugin-jquery
- eslint-plugin-no-jquery
- - eslint-plugin-sonarjs
- - eslint-plugin-custom-elements
- eslint-plugin-regexp
+ - eslint-plugin-sonarjs
+ - eslint-plugin-unicorn
- eslint-plugin-wc
- - eslint-plugin-eslint-comments
env:
es2022: true
@@ -45,6 +45,15 @@ overrides:
import/no-unused-modules: [0]
rules:
+ "@eslint-community/eslint-comments/disable-enable-pair": [2]
+ "@eslint-community/eslint-comments/no-aggregating-enable": [2]
+ "@eslint-community/eslint-comments/no-duplicate-disable": [2]
+ "@eslint-community/eslint-comments/no-restricted-disable": [0]
+ "@eslint-community/eslint-comments/no-unlimited-disable": [2]
+ "@eslint-community/eslint-comments/no-unused-disable": [2]
+ "@eslint-community/eslint-comments/no-unused-enable": [2]
+ "@eslint-community/eslint-comments/no-use": [0]
+ "@eslint-community/eslint-comments/require-description": [0]
accessor-pairs: [2]
array-bracket-newline: [0]
array-bracket-spacing: [2, never]
@@ -87,15 +96,6 @@ rules:
dot-notation: [0]
eol-last: [2]
eqeqeq: [2]
- eslint-comments/disable-enable-pair: [2]
- eslint-comments/no-aggregating-enable: [2]
- eslint-comments/no-duplicate-disable: [2]
- eslint-comments/no-restricted-disable: [0]
- eslint-comments/no-unlimited-disable: [2]
- eslint-comments/no-unused-disable: [2]
- eslint-comments/no-unused-enable: [2]
- eslint-comments/no-use: [0]
- eslint-comments/require-description: [0]
for-direction: [2]
func-call-spacing: [2, never]
func-name-matching: [2]