summaryrefslogtreecommitdiffstats
path: root/package-lock.json
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2023-04-27 04:08:16 +0200
committerGitHub <noreply@github.com>2023-04-26 22:08:16 -0400
commit50133b02bd381b7ee4da1ec4b7b637d5b7552678 (patch)
tree88482ba6c25ed952fa4b84f7d92363ac231603ad /package-lock.json
parentcf465b472166ccf6d3e001e3043e4bf43e16e6b3 (diff)
downloadgitea-50133b02bd381b7ee4da1ec4b7b637d5b7552678.tar.gz
gitea-50133b02bd381b7ee4da1ec4b7b637d5b7552678.zip
Add eslint-plugin-regexp (#24361)
Add [`eslint-plugin-regexp`](https://github.com/ota-meshi/eslint-plugin-regexp) and fix discovered issues. Config is mostly the recommended one, but I relaxed a few rules.
Diffstat (limited to 'package-lock.json')
-rw-r--r--package-lock.json80
1 files changed, 80 insertions, 0 deletions
diff --git a/package-lock.json b/package-lock.json
index 9a2f5dc578..d899903e4f 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -65,6 +65,7 @@
"eslint-plugin-import": "2.27.5",
"eslint-plugin-jquery": "1.5.1",
"eslint-plugin-no-jquery": "2.7.0",
+ "eslint-plugin-regexp": "1.14.0",
"eslint-plugin-sonarjs": "0.19.0",
"eslint-plugin-unicorn": "46.0.0",
"eslint-plugin-vue": "9.11.0",
@@ -2927,6 +2928,15 @@
"node": ">= 12"
}
},
+ "node_modules/comment-parser": {
+ "version": "1.3.1",
+ "resolved": "https://registry.npmjs.org/comment-parser/-/comment-parser-1.3.1.tgz",
+ "integrity": "sha512-B52sN2VNghyq5ofvUsqZjmk6YkihBX5vMSChmSK9v4ShjKf3Vk5Xcmgpw4o+iIgtrnM/u5FiMpz9VKb8lpBveA==",
+ "dev": true,
+ "engines": {
+ "node": ">= 12.0.0"
+ }
+ },
"node_modules/commondir": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz",
@@ -4560,6 +4570,28 @@
"eslint": ">=2.3.0"
}
},
+ "node_modules/eslint-plugin-regexp": {
+ "version": "1.14.0",
+ "resolved": "https://registry.npmjs.org/eslint-plugin-regexp/-/eslint-plugin-regexp-1.14.0.tgz",
+ "integrity": "sha512-5+bBSsRTTtkSf8+/iNSjiOW6qbjAdGyqv88HxPaBNFKxROK+UAdOGDl5Jr+csV5wW2BuOOvaG82zsvTriQBRFA==",
+ "dev": true,
+ "dependencies": {
+ "@eslint-community/eslint-utils": "^4.2.0",
+ "@eslint-community/regexpp": "^4.4.0",
+ "comment-parser": "^1.1.2",
+ "grapheme-splitter": "^1.0.4",
+ "jsdoctypeparser": "^9.0.0",
+ "refa": "^0.11.0",
+ "regexp-ast-analysis": "^0.6.0",
+ "scslre": "^0.2.0"
+ },
+ "engines": {
+ "node": "^12 || >=14"
+ },
+ "peerDependencies": {
+ "eslint": ">=6.0.0"
+ }
+ },
"node_modules/eslint-plugin-sonarjs": {
"version": "0.19.0",
"resolved": "https://registry.npmjs.org/eslint-plugin-sonarjs/-/eslint-plugin-sonarjs-0.19.0.tgz",
@@ -6038,6 +6070,18 @@
"js-yaml": "bin/js-yaml.js"
}
},
+ "node_modules/jsdoctypeparser": {
+ "version": "9.0.0",
+ "resolved": "https://registry.npmjs.org/jsdoctypeparser/-/jsdoctypeparser-9.0.0.tgz",
+ "integrity": "sha512-jrTA2jJIL6/DAEILBEh2/w9QxCuwmvNXIry39Ay/HVfhE3o2yVV0U44blYkqdHA/OKloJEqvJy0xU+GSdE2SIw==",
+ "dev": true,
+ "bin": {
+ "jsdoctypeparser": "bin/jsdoctypeparser"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
"node_modules/jsdom": {
"version": "21.1.1",
"resolved": "https://registry.npmjs.org/jsdom/-/jsdom-21.1.1.tgz",
@@ -7934,11 +7978,36 @@
"node": ">=8"
}
},
+ "node_modules/refa": {
+ "version": "0.11.0",
+ "resolved": "https://registry.npmjs.org/refa/-/refa-0.11.0.tgz",
+ "integrity": "sha512-486O8/pQXwj9jV0mVvUnTsxq0uknpBnNJ0eCUhkZqJRQ8KutrT1PhzmumdCeM1hSBF2eMlFPmwECRER4IbKXlQ==",
+ "dev": true,
+ "dependencies": {
+ "@eslint-community/regexpp": "^4.5.0"
+ },
+ "engines": {
+ "node": "^12.0.0 || ^14.0.0 || >=16.0.0"
+ }
+ },
"node_modules/regenerator-runtime": {
"version": "0.13.11",
"resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz",
"integrity": "sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg=="
},
+ "node_modules/regexp-ast-analysis": {
+ "version": "0.6.0",
+ "resolved": "https://registry.npmjs.org/regexp-ast-analysis/-/regexp-ast-analysis-0.6.0.tgz",
+ "integrity": "sha512-OLxjyjPkVH+rQlBLb1I/P/VTmamSjGkvN5PTV5BXP432k3uVz727J7H29GA5IFiY0m7e1xBN7049Wn59FY3DEQ==",
+ "dev": true,
+ "dependencies": {
+ "@eslint-community/regexpp": "^4.5.0",
+ "refa": "^0.11.0"
+ },
+ "engines": {
+ "node": "^12.0.0 || ^14.0.0 || >=16.0.0"
+ }
+ },
"node_modules/regexp-tree": {
"version": "0.1.25",
"resolved": "https://registry.npmjs.org/regexp-tree/-/regexp-tree-0.1.25.tgz",
@@ -8247,6 +8316,17 @@
"url": "https://opencollective.com/webpack"
}
},
+ "node_modules/scslre": {
+ "version": "0.2.0",
+ "resolved": "https://registry.npmjs.org/scslre/-/scslre-0.2.0.tgz",
+ "integrity": "sha512-4hc49fUMmX3jM0XdFUAPBrs1xwEcdHa0KyjEsjFs+Zfc66mpFpq5YmRgDtl+Ffo6AtJIilfei+yKw8fUn3N88w==",
+ "dev": true,
+ "dependencies": {
+ "@eslint-community/regexpp": "^4.5.0",
+ "refa": "^0.11.0",
+ "regexp-ast-analysis": "^0.6.0"
+ }
+ },
"node_modules/semver": {
"version": "7.5.0",
"resolved": "https://registry.npmjs.org/semver/-/semver-7.5.0.tgz",