routie dev init since i didn't adhere to any proper guidance up until now
This commit is contained in:
Generated
Vendored
+48
@@ -0,0 +1,48 @@
|
||||
import { ESLintUtils } from '@typescript-eslint/utils'
|
||||
/**
|
||||
* Factory function for creating ESLint rules with consistent structure and
|
||||
* documentation.
|
||||
*
|
||||
* Wraps the ESLintUtils.RuleCreator to automatically generate documentation
|
||||
* URLs for each rule based on its name. All rules created with this function
|
||||
* will have their documentation hosted at perfectionist.dev.
|
||||
*
|
||||
* @see {@link https://typescript-eslint.io/packages/utils/} - TypeScript ESLint
|
||||
* Utils documentation
|
||||
* @see {@link https://perfectionist.dev/} - Perfectionist plugin documentation
|
||||
*/
|
||||
export declare let createEslintRule: <
|
||||
Options extends readonly unknown[],
|
||||
MessageIds extends string,
|
||||
>({
|
||||
meta,
|
||||
name,
|
||||
...rule
|
||||
}: Readonly<
|
||||
ESLintUtils.RuleWithMetaAndName<
|
||||
Options,
|
||||
MessageIds,
|
||||
{
|
||||
/**
|
||||
* Indicates whether the rule is part of the recommended configuration.
|
||||
*
|
||||
* @default false
|
||||
*/
|
||||
recommended?: boolean
|
||||
}
|
||||
>
|
||||
>) => ESLintUtils.RuleModule<
|
||||
MessageIds,
|
||||
Options,
|
||||
{
|
||||
/**
|
||||
* Indicates whether the rule is part of the recommended configuration.
|
||||
*
|
||||
* @default false
|
||||
*/
|
||||
recommended?: boolean
|
||||
},
|
||||
ESLintUtils.RuleListener
|
||||
> & {
|
||||
name: string
|
||||
}
|
||||
Reference in New Issue
Block a user