@diplodoc/yfmlint 1.1.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,20 +3,17 @@ import type { LogLevels } from './utils';
3
3
  export type RawLintConfig = {
4
4
  default?: boolean;
5
5
  } & {
6
- [x: string]: LogLevels | boolean | ({
7
- level?: LogLevels;
8
- } & {
9
- [x: string]: unknown;
10
- });
6
+ [x: string]: LogLevels | boolean | Partial<RuleConfig>;
7
+ };
8
+ export type RuleConfig = {
9
+ loglevel: LogLevels;
10
+ } & {
11
+ [x: string]: unknown;
11
12
  };
12
13
  export type LintConfig = {
13
14
  default?: boolean;
14
15
  } & {
15
- [x: string]: false | ({
16
- level: LogLevels;
17
- } & {
18
- [x: string]: unknown;
19
- });
16
+ [x: string]: false | RuleConfig;
20
17
  };
21
18
  export interface Options {
22
19
  plugins?: Function[];
package/build/utils.d.ts CHANGED
@@ -5,6 +5,6 @@ export declare enum LogLevels {
5
5
  ERROR = "error",
6
6
  DISABLED = "disabled"
7
7
  }
8
- export declare function normalizeConfig(...parts: RawLintConfig[]): any;
9
- export declare function getLogLevel(logLevels: LintConfig, ruleNames: string[]): any;
8
+ export declare function normalizeConfig(...parts: RawLintConfig[]): LintConfig;
9
+ export declare function getLogLevel(logLevels: LintConfig, ruleNames: string[]): LogLevels;
10
10
  export declare function log(errors: LintError[], logger: Logger): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diplodoc/yfmlint",
3
- "version": "1.1.0",
3
+ "version": "1.2.1",
4
4
  "description": "A simple transformer of text in YFM (Yandex Flavored Markdown) to HTML",
5
5
  "keywords": [
6
6
  "docs",