Update
This commit is contained in:
30
dist/index.d.ts
vendored
30
dist/index.d.ts
vendored
@ -1,4 +1,4 @@
|
||||
// Generated by dts-bundle-generator v9.3.1
|
||||
// Generated by dts-bundle-generator v9.4.0
|
||||
|
||||
import { ESLintUtils } from '@typescript-eslint/utils';
|
||||
import { Rule } from 'eslint';
|
||||
@ -26,32 +26,28 @@ export interface LocalRuleOptions {
|
||||
"rules/no-empty-object-literal": RuleEntry<unknown>;
|
||||
}
|
||||
export type RuleOptions = Rules & Partial<LocalRuleOptions>;
|
||||
export interface CustomRule {
|
||||
rule: () => Promise<{
|
||||
default: Rule.RuleModule | ESLintUtils.RuleModule<string, unknown[]>;
|
||||
}>;
|
||||
options?: RuleLevel;
|
||||
}
|
||||
/**
|
||||
* ESLint Configuration.
|
||||
* @see [ESLint Configuration](https://eslint.org/docs/latest/user-guide/configuring/)
|
||||
*/
|
||||
export type Config = Omit<ESLintConfig, "rules"> & {
|
||||
export type InputConfig = Omit<ESLintConfig, "rules"> & {
|
||||
/**
|
||||
* Rules.
|
||||
* @see [Rules](https://eslint.org/docs/latest/user-guide/configuring/rules)
|
||||
*/
|
||||
rules?: RuleOptions;
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
customRules?: {
|
||||
rule: () => Promise<{
|
||||
default: Rule.RuleModule | ESLintUtils.RuleModule<string, unknown[]>;
|
||||
}>;
|
||||
options?: RuleLevel;
|
||||
}[];
|
||||
};
|
||||
export declare function defineCustomRule<Options extends readonly unknown[]>(rule: () => Promise<{
|
||||
default: Rule.RuleModule | ESLintUtils.RuleModule<string, Options>;
|
||||
}>, options?: Options): {
|
||||
rule: () => Promise<{
|
||||
default: Rule.RuleModule | ESLintUtils.RuleModule<string, Options>;
|
||||
}>;
|
||||
options: Options | undefined;
|
||||
customRuleFiles?: string | string[];
|
||||
};
|
||||
/**
|
||||
* Returns a ESLint config object.
|
||||
@ -71,6 +67,6 @@ export declare function defineCustomRule<Options extends readonly unknown[]>(rul
|
||||
* Non bundled:
|
||||
* 1. [`graphql`](https://the-guild.dev/graphql/eslint/rules)
|
||||
*/
|
||||
export declare function extendConfig({ plugins, settings, rules, extends: _extends, overrides, customRules, ...rest }?: Config): ESLintConfig;
|
||||
export declare function extendConfig(of?: InputConfig): ESLintConfig;
|
||||
|
||||
export {};
|
||||
|
4
dist/package.json
vendored
4
dist/package.json
vendored
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@aet/eslint-rules",
|
||||
"version": "0.0.23",
|
||||
"version": "0.0.24-beta.1",
|
||||
"license": "UNLICENSED",
|
||||
"peerDependencies": {
|
||||
"eslint": "^8.57.0",
|
||||
@ -28,6 +28,8 @@
|
||||
"eslint-plugin-es-x": "^7.6.0",
|
||||
"eslint-plugin-jsdoc": "^48.2.3",
|
||||
"eslint-plugin-unicorn": "^52.0.0",
|
||||
"esprima": "^4.0.1",
|
||||
"esquery": "^1.5.0",
|
||||
"estraverse": "^5.3.0",
|
||||
"fast-glob": "^3.3.2",
|
||||
"get-tsconfig": "^4.7.3",
|
||||
|
2
dist/prettier.d.ts
vendored
2
dist/prettier.d.ts
vendored
@ -1,4 +1,4 @@
|
||||
// Generated by dts-bundle-generator v9.3.1
|
||||
// Generated by dts-bundle-generator v9.4.0
|
||||
|
||||
import { Config } from 'prettier';
|
||||
|
||||
|
18
dist/types.d.ts
vendored
18
dist/types.d.ts
vendored
@ -1,22 +1,16 @@
|
||||
// Generated by dts-bundle-generator v9.3.1
|
||||
// Generated by dts-bundle-generator v9.4.0
|
||||
|
||||
import { ESLintUtils } from '@typescript-eslint/utils';
|
||||
import { Rule } from 'eslint';
|
||||
|
||||
export declare function defineRules(rules: {
|
||||
[ruleName: string]: Rule.RuleModule | ESLintUtils.RuleModule<string, unknown[]>;
|
||||
[ruleName: string]: Rule.RuleModule | ESLintUtils.RuleModule<string, unknown[]>;
|
||||
}): {
|
||||
[ruleName: string]:
|
||||
| Rule.RuleModule
|
||||
| ESLintUtils.RuleModule<string, unknown[], ESLintUtils.RuleListener>;
|
||||
[ruleName: string]: Rule.RuleModule | ESLintUtils.RuleModule<string, unknown[], ESLintUtils.RuleListener>;
|
||||
};
|
||||
export declare function defineRule({
|
||||
name,
|
||||
create,
|
||||
...meta
|
||||
}: Rule.RuleMetaData & {
|
||||
name?: string;
|
||||
create: (context: Rule.RuleContext) => Rule.RuleListener;
|
||||
export declare function defineRule({ name, create, ...meta }: Rule.RuleMetaData & {
|
||||
name?: string;
|
||||
create: (context: Rule.RuleContext) => Rule.RuleListener;
|
||||
}): Rule.RuleModule;
|
||||
|
||||
export {};
|
||||
|
Reference in New Issue
Block a user