UNPKG

@antfu/eslint-define-config

Version:

Provide a defineConfig function for .eslintrc.js files

35 lines (30 loc) 830 B
import type { RuleConfig } from '../rule-config'; /** * Option. */ export interface NoNullOption { checkStrictEquality?: boolean; } /** * Options. */ export type NoNullOptions = [NoNullOption?]; /** * Disallow the use of the `null` literal. * * @see [no-null](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v48.0.1/docs/rules/no-null.md) */ export type NoNullRuleConfig = RuleConfig<NoNullOptions>; /** * Disallow the use of the `null` literal. * * @see [no-null](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v48.0.1/docs/rules/no-null.md) */ export interface NoNullRule { /** * Disallow the use of the `null` literal. * * @see [no-null](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v48.0.1/docs/rules/no-null.md) */ 'unicorn/no-null': NoNullRuleConfig; }