Update dependency eslint-plugin-unicorn to v47 (#14803)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
This commit is contained in:
renovate[bot]andfisker Cheung authored and GitHub committed 2023-05-08 14:17:21 +08:00
1 parent 7054be5ba0
commit 3febd6e138
5 files changed
+626 -467

No files matched your search

+3 -3
View File
@@ -33,7 +33,7 @@
"@angular/compiler": "16.0.0",
"@babel/code-frame": "7.21.4",
"@babel/parser": "7.21.8",
"@babel/types": "7.21.4",
"@babel/types": "7.21.5",
"@glimmer/syntax": "0.84.3",
"@iarna/toml": "2.2.5",
"@prettier/is-es5-identifier-name": "0.1.0",
@@ -106,7 +106,7 @@
"yaml-unist-parser": "2.0.1"
},
"devDependencies": {
"@babel/generator": "7.21.4",
"@babel/generator": "7.21.5",
"@esbuild-plugins/node-modules-polyfill": "0.2.2",
"@glimmer/reference": "0.84.3",
"@types/estree": "1.0.1",
@@ -132,7 +132,7 @@
"eslint-plugin-prettier-internal-rules": "2.0.1",
"eslint-plugin-react": "7.32.2",
"eslint-plugin-regexp": "1.14.0",
"eslint-plugin-unicorn": "46.0.0",
"eslint-plugin-unicorn": "47.0.0",
"esm-utils": "4.1.2",
"execa": "7.1.1",
"jest": "29.5.0",
+1 -1
View File
@@ -33,7 +33,7 @@ function quoteAttributeValue(value, options) {
}
function adjustNumbers(value) {
return value.replace(
return value.replaceAll(
ADJUST_NUMBERS_REGEX,
(match, quote, wordPart, number, unit) =>
!wordPart && number
+1
View File
@@ -83,6 +83,7 @@ function parse(text, options) {
*/
function isProbablyJsx(text) {
return new RegExp(
// eslint-disable-next-line regexp/no-useless-non-capturing-group -- possible bug
[
"(?:^[^\"'`]*</)", // Contains "</" when probably not in a string
"|",
+1
View File
@@ -5,6 +5,7 @@ const pragmas = ["format", "prettier"];
function startWithPragma(text) {
const pragma = `@(${pragmas.join("|")})`;
const regex = new RegExp(
// eslint-disable-next-line regexp/match-any -- possible bug
[
`<!--\\s*${pragma}\\s*-->`,
`{\\s*\\/\\*\\s*${pragma}\\s*\\*\\/\\s*}`,
+620 -463
View File
File diff suppressed because it is too large. Load diff