Skip to content

Commit

Permalink
feat!: add eslint-plugin-regexp recommended (#373)
Browse files Browse the repository at this point in the history
  • Loading branch information
voxpelli authored Oct 23, 2024
1 parent a66f39c commit 523197d
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 0 deletions.
6 changes: 6 additions & 0 deletions base-configs/regexp.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { configs } from 'eslint-plugin-regexp';

/** @satisfies {import('eslint').Linter.Config[]} */
export const regexpRules = [
configs['flat/recommended'],
];
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { esmRules } from './base-configs/esm.js';
import { jsdocRules } from './base-configs/jsdoc.js';
import { mochaRules } from './base-configs/mocha.js';
import { nodeRules } from './base-configs/node.js';
import { regexpRules } from './base-configs/regexp.js';
import { modifiedNeostandardRules } from './base-configs/modified-rules.js';

/**
Expand Down Expand Up @@ -36,6 +37,7 @@ export function voxpelli (options) {
...modifiedNeostandardRules,
...additionalRules,
...jsdocRules,
...regexpRules,
...nodeRules(cjs),
...cjs ? [] : esmRules,
...noMocha ? [] : mochaRules,
Expand Down
61 changes: 61 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
"eslint-plugin-es-x": "^8.0.0",
"eslint-plugin-jsdoc": "^50.4.3",
"eslint-plugin-mocha": "^10.5.0",
"eslint-plugin-regexp": "^2.6.0",
"eslint-plugin-security": "^3.0.1",
"eslint-plugin-sort-destructure-keys": "^2.0.0",
"eslint-plugin-unicorn": "^56.0.0",
Expand Down

0 comments on commit 523197d

Please sign in to comment.