@eslinted/core 5.0.0-rc.5 → 5.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.ts +0 -20
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +1 -27
package/dist/index.d.ts
CHANGED
@@ -2,25 +2,5 @@ export type { Scope } from "./scopes.js";
|
|
2
2
|
import type { Input } from "./input/index.js";
|
3
3
|
import type { Output } from "./output.js";
|
4
4
|
export type { Input, Output };
|
5
|
-
import { scopes } from "./scopes.js";
|
6
5
|
export default function (input: Input): Output;
|
7
|
-
declare namespace Core {
|
8
|
-
type Scopes = typeof scopes[number];
|
9
|
-
namespace Input {
|
10
|
-
type Parsers = Input["parsers"];
|
11
|
-
type Plugins = Input["plugins"];
|
12
|
-
type Files = Input["files"];
|
13
|
-
namespace Files {
|
14
|
-
type Base = Files["files"];
|
15
|
-
type Includes = Files["includes"];
|
16
|
-
}
|
17
|
-
type Rules = Input["rules"];
|
18
|
-
namespace Rules {
|
19
|
-
type Base = Rules["rules"];
|
20
|
-
type Overrides = Rules["overrides"];
|
21
|
-
}
|
22
|
-
}
|
23
|
-
type Output = Output[];
|
24
|
-
}
|
25
|
-
export type { Core };
|
26
6
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEtC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC,YAAY,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEtC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC,YAAY,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC;AAS9B,MAAM,CAAC,OAAO,WAAW,KAAK,EAAE,KAAK,GAAG,MAAM,CAmE7C"}
|
package/dist/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EACL,KAAK,EACL,QAAQ,EACR,OAAO,GACR,MAAM,WAAW,CAAC;AAEnB,MAAM,CAAC,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EACL,KAAK,EACL,QAAQ,EACR,OAAO,GACR,MAAM,WAAW,CAAC;AAEnB,MAAM,CAAC,OAAO,WAAW,KAAY;IACnC,IAAI,CAAC;QACH,MAAM,KAAK,GAAG,IAAI,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,EACpC,QAAQ,GAAG,IAAI,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,EACpC,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,KAAK,EAC5B,OAAO,GAAiF;YACtF,EAAE,EAAE,IAAI,OAAO;iBACZ,EAAE,CACD,EAAE,YAAY,EAAE,OAAO,CAAC,YAAY,CAAC,EAAE,EACvC,EAAE,EACF,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,EACjB,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,CACvB,CAAC,OAAO;YACX,EAAE,EAAE,IAAI,OAAO;iBACZ,EAAE,CACD,EAAE,YAAY,EAAE,OAAO,CAAC,YAAY,CAAC,EAAE,oBAAoB,EAAE,OAAO,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ACnB,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,CACzB,CAAC,OAAO;YACX,KAAK,EAAE,IAAI,OAAO;iBACf,KAAK,CACJ,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,EACxB,CAAC,OAAO,CAAC,KAAK,CAAC,EACf,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,EACpB,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,CAC1B,CAAC,OAAO;YACX,GAAG,EAAE,IAAI,OAAO;iBACb,GAAG,CACF,EAAE,GAAG,EAAE,OAAO,CAAC,GAAG,EAAE,EACpB,CAAC,OAAO,CAAC,GAAG,CAAC,EACb,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,EAClB,QAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,CACxB,CAAC,OAAO;SACZ,CAAC;QAEF,OAAO,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;IACjD,CAAC;IACD,OAAO,CAAC,EAAE,CAAC;QAAC,MAAM,IAAI,KAAK,CAAC,aAAa,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;IAAC,CAAC;AAC7D,CAAC"}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
@@ -12,9 +12,7 @@ import {
|
|
12
12
|
Options,
|
13
13
|
} from "./factory";
|
14
14
|
|
15
|
-
export default function (
|
16
|
-
input: Input,
|
17
|
-
): Output {
|
15
|
+
export default function (input: Input): Output {
|
18
16
|
try {
|
19
17
|
const files = new Files(input.files),
|
20
18
|
rulesets = new Rulesets(input.rules),
|
@@ -82,27 +80,3 @@ export default function (
|
|
82
80
|
}
|
83
81
|
catch (e) { throw new Error(`linted-core`, { cause: e }); }
|
84
82
|
}
|
85
|
-
|
86
|
-
// #region DEPRECATED
|
87
|
-
namespace Core {
|
88
|
-
export type Scopes = typeof scopes[number];
|
89
|
-
export namespace Input {
|
90
|
-
export type Parsers = Input["parsers"];
|
91
|
-
export type Plugins = Input["plugins"];
|
92
|
-
export type Files = Input["files"];
|
93
|
-
export namespace Files {
|
94
|
-
export type Base = Files["files"];
|
95
|
-
export type Includes = Files["includes"];
|
96
|
-
}
|
97
|
-
export type Rules = Input["rules"];
|
98
|
-
export namespace Rules {
|
99
|
-
export type Base = Rules["rules"];
|
100
|
-
export type Overrides = Rules["overrides"];
|
101
|
-
}
|
102
|
-
}
|
103
|
-
export type Output = Output[];
|
104
|
-
}
|
105
|
-
|
106
|
-
export type { Core };
|
107
|
-
|
108
|
-
// #endregion
|