Skip to content

Commit 7bea178

Browse files
authored
fix: add eslint-plugin-regexp and resolve linting errors (#3673)
1 parent 1ddd922 commit 7bea178

6 files changed

Lines changed: 420 additions & 242 deletions

File tree

eslint.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import globals from 'globals'
22
import js from '@eslint/js'
33
import ts from 'typescript-eslint'
44
import eslintConfigPrettier from 'eslint-config-prettier'
5+
import * as regexpPlugin from 'eslint-plugin-regexp'
56

67
/**
78
* @typedef {import("eslint").Linter.FlatConfig[]} FlatConfigs
@@ -41,6 +42,7 @@ export default [
4142

4243
// typescript-eslint
4344
...ts.configs.recommendedTypeChecked,
45+
regexpPlugin.configs['flat/recommended'],
4446
{
4547
files: ['**/*.ts', '**/*.tsx', '**/*.cts', '**/*.mts'],
4648
languageOptions: {

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@
124124
"consola": "^3.4.2",
125125
"eslint": "^9.28.0",
126126
"eslint-config-prettier": "^10.1.5",
127+
"eslint-plugin-regexp": "^2.7.0",
127128
"get-port-please": "^3.1.2",
128129
"gh-changelogen": "^0.2.8",
129130
"globals": "^16.2.0",

0 commit comments

Comments
 (0)