summaryrefslogtreecommitdiffstats
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
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.
-rw-r--r--.eslintrc.yaml26
-rw-r--r--package-lock.json55
-rw-r--r--package.json2
3 files changed, 40 insertions, 43 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]
diff --git a/package-lock.json b/package-lock.json
index 4754a8a826..fa12ef3007 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -55,13 +55,13 @@
"wrap-ansi": "8.1.0"
},
"devDependencies": {
+ "@eslint-community/eslint-plugin-eslint-comments": "3.2.1",
"@playwright/test": "1.33.0",
"@rollup/pluginutils": "5.0.2",
"@stoplight/spectral-cli": "6.6.0",
"@vitejs/plugin-vue": "4.2.3",
"eslint": "8.40.0",
"eslint-plugin-custom-elements": "0.0.8",
- "eslint-plugin-eslint-comments": "3.2.0",
"eslint-plugin-import": "2.27.5",
"eslint-plugin-jquery": "1.5.1",
"eslint-plugin-no-jquery": "2.7.0",
@@ -767,6 +767,31 @@
"node": ">=12"
}
},
+ "node_modules/@eslint-community/eslint-plugin-eslint-comments": {
+ "version": "3.2.1",
+ "resolved": "https://registry.npmjs.org/@eslint-community/eslint-plugin-eslint-comments/-/eslint-plugin-eslint-comments-3.2.1.tgz",
+ "integrity": "sha512-/HZbjIGaVO2zLlWX3gRgiHmKRVvvqrC0zVu3eXnIj1ORxoyfGSj50l0PfDfqihyZAqrDYzSMdJesXzFjvAoiLQ==",
+ "dev": true,
+ "dependencies": {
+ "escape-string-regexp": "^1.0.5",
+ "ignore": "^5.2.4"
+ },
+ "engines": {
+ "node": ">=6.5.0"
+ },
+ "peerDependencies": {
+ "eslint": ">=4.19.1"
+ }
+ },
+ "node_modules/@eslint-community/eslint-plugin-eslint-comments/node_modules/escape-string-regexp": {
+ "version": "1.0.5",
+ "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz",
+ "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==",
+ "dev": true,
+ "engines": {
+ "node": ">=0.8.0"
+ }
+ },
"node_modules/@eslint-community/eslint-utils": {
"version": "4.4.0",
"resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz",
@@ -4520,34 +4545,6 @@
"eslint": ">=4.19.0"
}
},
- "node_modules/eslint-plugin-eslint-comments": {
- "version": "3.2.0",
- "resolved": "https://registry.npmjs.org/eslint-plugin-eslint-comments/-/eslint-plugin-eslint-comments-3.2.0.tgz",
- "integrity": "sha512-0jkOl0hfojIHHmEHgmNdqv4fmh7300NdpA9FFpF7zaoLvB/QeXOGNLIo86oAveJFrfB1p05kC8hpEMHM8DwWVQ==",
- "dev": true,
- "dependencies": {
- "escape-string-regexp": "^1.0.5",
- "ignore": "^5.0.5"
- },
- "engines": {
- "node": ">=6.5.0"
- },
- "funding": {
- "url": "https://github.com/sponsors/mysticatea"
- },
- "peerDependencies": {
- "eslint": ">=4.19.1"
- }
- },
- "node_modules/eslint-plugin-eslint-comments/node_modules/escape-string-regexp": {
- "version": "1.0.5",
- "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz",
- "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==",
- "dev": true,
- "engines": {
- "node": ">=0.8.0"
- }
- },
"node_modules/eslint-plugin-import": {
"version": "2.27.5",
"resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.27.5.tgz",
diff --git a/package.json b/package.json
index 21c39aae9c..cf3f5af99a 100644
--- a/package.json
+++ b/package.json
@@ -55,13 +55,13 @@
"wrap-ansi": "8.1.0"
},
"devDependencies": {
+ "@eslint-community/eslint-plugin-eslint-comments": "3.2.1",
"@playwright/test": "1.33.0",
"@rollup/pluginutils": "5.0.2",
"@stoplight/spectral-cli": "6.6.0",
"@vitejs/plugin-vue": "4.2.3",
"eslint": "8.40.0",
"eslint-plugin-custom-elements": "0.0.8",
- "eslint-plugin-eslint-comments": "3.2.0",
"eslint-plugin-import": "2.27.5",
"eslint-plugin-jquery": "1.5.1",
"eslint-plugin-no-jquery": "2.7.0",