Skip to content

Commit

Permalink
chore(deps): update dependency eslint-plugin-regexp to v2 (#14730)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
  • Loading branch information
renovate[bot] and bluwy authored Oct 26, 2023
1 parent 9babef5 commit 0a7c753
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 52 deletions.
2 changes: 2 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ module.exports = defineConfig({
],

'regexp/no-contradiction-with-assertion': 'error',
// in some cases using explicit letter-casing is more performant than the `i` flag
'regexp/use-ignore-case': 'off',
},
overrides: [
{
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"eslint-define-config": "^1.24.1",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-n": "^16.2.0",
"eslint-plugin-regexp": "^1.15.0",
"eslint-plugin-regexp": "^2.1.1",
"execa": "^8.0.1",
"fs-extra": "^11.1.1",
"lint-staged": "^15.0.1",
Expand Down
3 changes: 2 additions & 1 deletion packages/plugin-legacy/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,8 @@ function viteLegacyPlugin(options: Options = {}): Plugin[] {
fileName = fileName.replace(/[.-]?\[hash\]/, '-legacy$&')
} else {
// entry.js -> entry-legacy.js
fileName = fileName.replace(/(.+)\.(.+)/, '$1-legacy.$2')
// entry.min.js -> entry-legacy.min.js
fileName = fileName.replace(/(.+?)\.(.+)/, '$1-legacy.$2')
}

return fileName
Expand Down
85 changes: 35 additions & 50 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0a7c753

Please sign in to comment.