@antfu/eslint-define-config
Version:
Provide a defineConfig function for .eslintrc.js files
23 lines (20 loc) • 776 B
TypeScript
import type { RuleConfig } from '../rule-config';
/**
* Disallow assigning `this` to a variable.
*
* @see [no-this-assignment](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v48.0.1/docs/rules/no-this-assignment.md)
*/
export type NoThisAssignmentRuleConfig = RuleConfig<[]>;
/**
* Disallow assigning `this` to a variable.
*
* @see [no-this-assignment](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v48.0.1/docs/rules/no-this-assignment.md)
*/
export interface NoThisAssignmentRule {
/**
* Disallow assigning `this` to a variable.
*
* @see [no-this-assignment](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v48.0.1/docs/rules/no-this-assignment.md)
*/
'unicorn/no-this-assignment': NoThisAssignmentRuleConfig;
}