Update rules
This commit is contained in:
4
dist/index.d.ts
vendored
4
dist/index.d.ts
vendored
@ -42,6 +42,8 @@ export interface LocalRuleOptions {
|
||||
}>;
|
||||
/** Ban assignment of empty object literals `{}` and replace them with `Object.create(null)` */
|
||||
"custom/no-empty-object-literal": RuleEntry<unknown>;
|
||||
/** Ban useless import alias */
|
||||
"custom/no-useless-import-alias": RuleEntry<unknown>;
|
||||
}
|
||||
export type RuleOptions = Rules & Partial<LocalRuleOptions>;
|
||||
export interface CustomRule {
|
||||
@ -64,6 +66,8 @@ export type InputConfig = Omit<ESLintConfig, "rules"> & {
|
||||
* Glob pattern to find paths to custom rule files in JavaScript or TypeScript.
|
||||
* Note this must be a string literal or an array of string literals since
|
||||
* this is statically analyzed.
|
||||
*
|
||||
* Rules are prefixed with `custom/` and the file name is used as the rule name.
|
||||
*/
|
||||
customRuleFiles?: string | string[];
|
||||
/**
|
||||
|
Reference in New Issue
Block a user