@datadayrepos/eslint-define-config
Version:
Provide a defineConfig function for .eslintrc.js files
23 lines (20 loc) • 880 B
TypeScript
import type { RuleConfig } from '../rule-config';
/**
* Disallow the use of side effects in `waitFor`.
*
* @see [no-wait-for-side-effects](https://github.com/testing-library/eslint-plugin-testing-library/tree/main/docs/rules/no-wait-for-side-effects.md)
*/
export type NoWaitForSideEffectsRuleConfig = RuleConfig<[]>;
/**
* Disallow the use of side effects in `waitFor`.
*
* @see [no-wait-for-side-effects](https://github.com/testing-library/eslint-plugin-testing-library/tree/main/docs/rules/no-wait-for-side-effects.md)
*/
export interface NoWaitForSideEffectsRule {
/**
* Disallow the use of side effects in `waitFor`.
*
* @see [no-wait-for-side-effects](https://github.com/testing-library/eslint-plugin-testing-library/tree/main/docs/rules/no-wait-for-side-effects.md)
*/
'testing-library/no-wait-for-side-effects': NoWaitForSideEffectsRuleConfig;
}