chore(eslint): update shared presets and config exports

This commit is contained in:
2026-06-08 15:50:59 +07:00
parent 5c583b64a4
commit 4678a372b1
10 changed files with 156 additions and 76 deletions
+18
View File
@@ -0,0 +1,18 @@
import type { FlatConfigArray } from '../types';
import regexpPlugin from 'eslint-plugin-regexp';
/**
* Regular-expression correctness & optimization rules via
* [`eslint-plugin-regexp`](https://ota-meshi.github.io/eslint-plugin-regexp/).
*
* Applies the plugin's flat `recommended` ruleset — catches buggy/ambiguous
* patterns (control characters, useless quantifiers, ReDoS-prone constructs)
* and pushes toward clearer, faster expressions. Included in {@link base} so it
* applies to every package.
*/
export const regexp: FlatConfigArray = [
{
...regexpPlugin.configs['flat/recommended'],
name: 'robonen/regexp',
},
];