Fix bugs when replacing characters with space (#18455)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
c2ab62e8d2
commit
1a3ef69056
14 files changed
+185
-215
No files matched your search
+4
-7
@@ -128,7 +128,10 @@ const configs = [
|
||||
"prefer-rest-params": "error",
|
||||
"prefer-spread": "error",
|
||||
"require-await": "error",
|
||||
"require-unicode-regexp": "error",
|
||||
// The `u` or `v` flag cause problems when dealing with non-ascii characters
|
||||
// https://github.com/prettier/prettier/pull/18453
|
||||
// https://github.com/prettier/prettier/pull/18455
|
||||
"require-unicode-regexp": "off",
|
||||
"symbol-description": "error",
|
||||
yoda: [
|
||||
"error",
|
||||
@@ -492,12 +495,6 @@ const configs = [
|
||||
"prefer-arrow-callback": "off",
|
||||
},
|
||||
},
|
||||
// ESBuild doesn't support regular expressions with `u` flag
|
||||
// https://github.com/evanw/esbuild/issues/4128
|
||||
{
|
||||
files: ["scripts/build/esbuild-plugins/**/*"],
|
||||
rules: { "require-unicode-regexp": "off" },
|
||||
},
|
||||
{
|
||||
files: ["src/document/printer/printer.js"],
|
||||
rules: {
|
||||
|
||||
Reference in new issue
Block a user