Fix local rules
This commit is contained in:
6
dist/index.d.ts
vendored
6
dist/index.d.ts
vendored
@ -32,16 +32,16 @@ export type RuleEntry<Options> = RuleLevel | [
|
||||
];
|
||||
export interface LocalRuleOptions {
|
||||
/** Bans import from the specifier '.' and '..' and replaces it with '.+/index' */
|
||||
"rules/no-import-dot": RuleEntry<unknown>;
|
||||
"custom/no-import-dot": RuleEntry<unknown>;
|
||||
/**
|
||||
* Enforce template literal expressions to be of `string` type
|
||||
* @see [restrict-template-expressions](https://typescript-eslint.io/rules/restrict-template-expressions)
|
||||
*/
|
||||
"rules/restrict-template-expressions": RuleEntry<{
|
||||
"custom/restrict-template-expressions": RuleEntry<{
|
||||
allow: string[];
|
||||
}>;
|
||||
/** Ban assignment of empty object literals `{}` and replace them with `Object.create(null)` */
|
||||
"rules/no-empty-object-literal": RuleEntry<unknown>;
|
||||
"custom/no-empty-object-literal": RuleEntry<unknown>;
|
||||
}
|
||||
export type RuleOptions = Rules & Partial<LocalRuleOptions>;
|
||||
export interface CustomRule {
|
||||
|
Reference in New Issue
Block a user