@antfu/eslint-define-config
Version:
Provide a defineConfig function for .eslintrc.js files
23 lines (20 loc) • 804 B
TypeScript
import type { RuleConfig } from '../rule-config';
/**
* Enforce the use of Unicode escapes instead of hexadecimal escapes.
*
* @see [no-hex-escape](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v48.0.1/docs/rules/no-hex-escape.md)
*/
export type NoHexEscapeRuleConfig = RuleConfig<[]>;
/**
* Enforce the use of Unicode escapes instead of hexadecimal escapes.
*
* @see [no-hex-escape](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v48.0.1/docs/rules/no-hex-escape.md)
*/
export interface NoHexEscapeRule {
/**
* Enforce the use of Unicode escapes instead of hexadecimal escapes.
*
* @see [no-hex-escape](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v48.0.1/docs/rules/no-hex-escape.md)
*/
'unicorn/no-hex-escape': NoHexEscapeRuleConfig;
}