@antfu/eslint-define-config
Version:
Provide a defineConfig function for .eslintrc.js files
23 lines (20 loc) • 970 B
TypeScript
import type { RuleConfig } from '../rule-config';
/**
* Enforce using `String#startsWith` and `String#endsWith` over other equivalent methods of checking substrings.
*
* @see [prefer-string-starts-ends-with](https://typescript-eslint.io/rules/prefer-string-starts-ends-with)
*/
export type PreferStringStartsEndsWithRuleConfig = RuleConfig<[]>;
/**
* Enforce using `String#startsWith` and `String#endsWith` over other equivalent methods of checking substrings.
*
* @see [prefer-string-starts-ends-with](https://typescript-eslint.io/rules/prefer-string-starts-ends-with)
*/
export interface PreferStringStartsEndsWithRule {
/**
* Enforce using `String#startsWith` and `String#endsWith` over other equivalent methods of checking substrings.
*
* @see [prefer-string-starts-ends-with](https://typescript-eslint.io/rules/prefer-string-starts-ends-with)
*/
'@typescript-eslint/prefer-string-starts-ends-with': PreferStringStartsEndsWithRuleConfig;
}