@antfu/eslint-define-config
Version:
Provide a defineConfig function for .eslintrc.js files
23 lines (20 loc) • 933 B
TypeScript
import type { RuleConfig } from '../rule-config';
/**
* Prefer `String#replaceAll()` over regex searches with the global flag.
*
* @see [prefer-string-replace-all](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v48.0.1/docs/rules/prefer-string-replace-all.md)
*/
export type PreferStringReplaceAllRuleConfig = RuleConfig<[]>;
/**
* Prefer `String#replaceAll()` over regex searches with the global flag.
*
* @see [prefer-string-replace-all](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v48.0.1/docs/rules/prefer-string-replace-all.md)
*/
export interface PreferStringReplaceAllRule {
/**
* Prefer `String#replaceAll()` over regex searches with the global flag.
*
* @see [prefer-string-replace-all](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v48.0.1/docs/rules/prefer-string-replace-all.md)
*/
'unicorn/prefer-string-replace-all': PreferStringReplaceAllRuleConfig;
}