@antfu/eslint-define-config
Version:
Provide a defineConfig function for .eslintrc.js files
50 lines (45 loc) • 849 B
TypeScript
import type { RuleConfig } from '../rule-config';
/**
* Option.
*/
export interface NoBitwiseOption {
allow?: (
| '^'
| '|'
| '&'
| '<<'
| '>>'
| '>>>'
| '^='
| '|='
| '&='
| '<<='
| '>>='
| '>>>='
| '~'
)[];
int32Hint?: boolean;
}
/**
* Options.
*/
export type NoBitwiseOptions = [NoBitwiseOption?];
/**
* Disallow bitwise operators.
*
* @see [no-bitwise](https://eslint.org/docs/latest/rules/no-bitwise)
*/
export type NoBitwiseRuleConfig = RuleConfig<NoBitwiseOptions>;
/**
* Disallow bitwise operators.
*
* @see [no-bitwise](https://eslint.org/docs/latest/rules/no-bitwise)
*/
export interface NoBitwiseRule {
/**
* Disallow bitwise operators.
*
* @see [no-bitwise](https://eslint.org/docs/latest/rules/no-bitwise)
*/
'no-bitwise': NoBitwiseRuleConfig;
}