Skip to content

Commit f434141

Browse files
committed
Added eslint-plugin-regexp as dev dependency
1 parent e8bd260 commit f434141

File tree

3 files changed

+89
-1
lines changed

3 files changed

+89
-1
lines changed

eslint.config.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import js from '@eslint/js'
22
import globals from 'globals'
33
import json from '@eslint/json'
44
import markdown from '@eslint/markdown'
5+
import * as regexp from 'eslint-plugin-regexp'
56
import eslintPluginYml from 'eslint-plugin-yml'
67

78
export default [
@@ -11,8 +12,9 @@ export default [
1112
ecmaVersion: 'latest', sourceType: 'script',
1213
globals: { ...globals.browser, ...globals.greasemonkey }
1314
},
15+
plugins: { regexp },
1416
rules: {
15-
...js.configs.recommended.rules,
17+
...js.configs.recommended.rules, ...regexp.configs['flat/recommended'].rules,
1618
'indent': 'off', 'no-unexpected-multiline': 'off', 'key-spacing': 'off', // allow whitespace anywhere
1719
'quotes': ['error', 'single'], // enforce single quotes for string literals
1820
'comma-dangle': ['error', 'never'], // enforce no trailing commas in arrays or objects

package-lock.json

Lines changed: 85 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"@eslint/json": "^0.6.0",
2121
"@eslint/markdown": "^6.2.1",
2222
"eslint": "^9.14.0",
23+
"eslint-plugin-regexp": "^2.6.0",
2324
"eslint-plugin-yml": "^1.15.0",
2425
"husky": "^9.1.6"
2526
}

0 commit comments

Comments
 (0)