@eslinted/core 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/parsers.d.ts +3 -8
- package/dist/parsers.d.ts.map +1 -1
- package/dist/plugins.d.ts +11 -11
- package/dist/plugins.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +1 -1
- package/src/parsers.ts +9 -8
- package/src/plugins.ts +12 -15
package/dist/index.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import type IConfig from "./interface/IConfig.js";
|
2
2
|
import type { Scope } from "./scopes.js";
|
3
3
|
import type Plugins from "./plugins.js";
|
4
|
-
import type Parsers from "./parsers.js";
|
4
|
+
import type { Parsers } from "./parsers.js";
|
5
5
|
import type Ruleset from "./ruleset/Ruleset.js";
|
6
6
|
export { default as Ruleset } from "./ruleset/Ruleset.js";
|
7
7
|
export { default as Rule } from "./ruleset/rule/Rule.js";
|
package/dist/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,OAAO,MAAM,wBAAwB,CAAC;AAClD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,OAAO,MAAM,wBAAwB,CAAC;AAClD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC;AACxC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAEhD,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,wBAAwB,CAAC;AACzD,YAAY,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACzC,YAAY,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjE,MAAM,CAAC,OAAO,WACZ,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC,EACjC,QAAQ,EAAE,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC,EACpC,QAAQ,EAAE;KAAG,CAAC,IAAI,KAAK,GAAG,OAAO,CAAC,CAAC,CAAC;CAAE,EACtC,SAAS,EAAE,SAAS,CAAC,KAAK,EAAE,KAAK,CAAC,GACjC,OAAO,EAAE,CA4FX"}
|
package/dist/parsers.d.ts
CHANGED
@@ -1,10 +1,5 @@
|
|
1
1
|
import type { Scope } from "./scopes.js";
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
html: unknown;
|
6
|
-
json: unknown;
|
7
|
-
jsonc: unknown;
|
8
|
-
yml: unknown;
|
9
|
-
}
|
2
|
+
type ParsedScopes = "ts" | "svelte" | "html" | "json" | "jsonc" | "yml";
|
3
|
+
export type Parsers = Particord<Scope, unknown> & Record<ParsedScopes, unknown>;
|
4
|
+
export {};
|
10
5
|
//# sourceMappingURL=parsers.d.ts.map
|
package/dist/parsers.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"parsers.d.ts","sourceRoot":"","sources":["../src/parsers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEzC,
|
1
|
+
{"version":3,"file":"parsers.d.ts","sourceRoot":"","sources":["../src/parsers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEzC,KAAK,YAAY,GACb,IAAI,GACJ,QAAQ,GACR,MAAM,GACN,MAAM,GACN,OAAO,GACP,KAAK,CAAC;AAEV,MAAM,MAAM,OAAO,GAAG,SAAS,CAAC,KAAK,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC"}
|
package/dist/plugins.d.ts
CHANGED
@@ -1,33 +1,33 @@
|
|
1
1
|
import type { Scope } from "./scopes.js";
|
2
|
-
type
|
2
|
+
type PluginImport = {
|
3
3
|
configs: unknown;
|
4
4
|
};
|
5
5
|
export default interface Plugins extends Record<Scope, Record<string, {
|
6
6
|
configs: unknown;
|
7
7
|
}>> {
|
8
8
|
js: {
|
9
|
-
"@stylistic":
|
9
|
+
"@stylistic": PluginImport;
|
10
10
|
};
|
11
11
|
ts: {
|
12
|
-
"@stylistic":
|
13
|
-
"@typescript-eslint":
|
12
|
+
"@stylistic": PluginImport;
|
13
|
+
"@typescript-eslint": PluginImport;
|
14
14
|
};
|
15
15
|
svelte: {
|
16
|
-
"@stylistic":
|
17
|
-
"@typescript-eslint":
|
18
|
-
svelte:
|
16
|
+
"@stylistic": PluginImport;
|
17
|
+
"@typescript-eslint": PluginImport;
|
18
|
+
svelte: PluginImport;
|
19
19
|
};
|
20
20
|
html: {
|
21
|
-
"@html-eslint":
|
21
|
+
"@html-eslint": PluginImport;
|
22
22
|
};
|
23
23
|
json: {
|
24
|
-
jsonc:
|
24
|
+
jsonc: PluginImport;
|
25
25
|
};
|
26
26
|
jsonc: {
|
27
|
-
jsonc:
|
27
|
+
jsonc: PluginImport;
|
28
28
|
};
|
29
29
|
yml: {
|
30
|
-
yml:
|
30
|
+
yml: PluginImport;
|
31
31
|
};
|
32
32
|
}
|
33
33
|
export {};
|
package/dist/plugins.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../src/plugins.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEzC,KAAK,
|
1
|
+
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../src/plugins.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEzC,KAAK,YAAY,GAAG;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC;AAEzC,MAAM,CAAC,OAAO,WAAW,OAAQ,SAAQ,MAAM,CAC7C,KAAK,EACL,MAAM,CAAC,MAAM,EAAE;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC,CACrC;IACC,EAAE,EAAE;QAAE,YAAY,EAAE,YAAY,CAAA;KAAE,CAAC;IACnC,EAAE,EAAE;QACF,YAAY,EAAE,YAAY,CAAC;QAC3B,oBAAoB,EAAE,YAAY,CAAC;KACpC,CAAC;IACF,MAAM,EAAE;QACN,YAAY,EAAE,YAAY,CAAC;QAC3B,oBAAoB,EAAE,YAAY,CAAC;QACnC,MAAM,EAAE,YAAY,CAAC;KACtB,CAAC;IACF,IAAI,EAAE;QAAE,cAAc,EAAE,YAAY,CAAA;KAAE,CAAC;IACvC,IAAI,EAAE;QAAE,KAAK,EAAE,YAAY,CAAA;KAAE,CAAC;IAC9B,KAAK,EAAE;QAAE,KAAK,EAAE,YAAY,CAAA;KAAE,CAAC;IAC/B,GAAG,EAAE;QAAE,GAAG,EAAE,YAAY,CAAA;KAAE,CAAC;CAC5B"}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
@@ -3,7 +3,7 @@ import options from "./options.js";
|
|
3
3
|
import type IConfig from "./interface/IConfig.js";
|
4
4
|
import type { Scope } from "./scopes.js";
|
5
5
|
import type Plugins from "./plugins.js";
|
6
|
-
import type Parsers from "./parsers.js";
|
6
|
+
import type { Parsers } from "./parsers.js";
|
7
7
|
import type Ruleset from "./ruleset/Ruleset.js";
|
8
8
|
|
9
9
|
export { default as Ruleset } from "./ruleset/Ruleset.js";
|
package/src/parsers.ts
CHANGED
@@ -1,10 +1,11 @@
|
|
1
1
|
import type { Scope } from "./scopes.js";
|
2
2
|
|
3
|
-
|
4
|
-
ts
|
5
|
-
svelte
|
6
|
-
html
|
7
|
-
json
|
8
|
-
jsonc
|
9
|
-
yml
|
10
|
-
|
3
|
+
type ParsedScopes =
|
4
|
+
| "ts"
|
5
|
+
| "svelte"
|
6
|
+
| "html"
|
7
|
+
| "json"
|
8
|
+
| "jsonc"
|
9
|
+
| "yml";
|
10
|
+
|
11
|
+
export type Parsers = Particord<Scope, unknown> & Record<ParsedScopes, unknown>;
|
package/src/plugins.ts
CHANGED
@@ -1,26 +1,23 @@
|
|
1
1
|
import type { Scope } from "./scopes.js";
|
2
2
|
|
3
|
-
type
|
3
|
+
type PluginImport = { configs: unknown };
|
4
4
|
|
5
5
|
export default interface Plugins extends Record<
|
6
6
|
Scope,
|
7
|
-
Record<
|
8
|
-
string,
|
9
|
-
{ configs: unknown }
|
10
|
-
>
|
7
|
+
Record<string, { configs: unknown }>
|
11
8
|
> {
|
12
|
-
js: { "@stylistic":
|
9
|
+
js: { "@stylistic": PluginImport };
|
13
10
|
ts: {
|
14
|
-
"@stylistic":
|
15
|
-
"@typescript-eslint":
|
11
|
+
"@stylistic": PluginImport;
|
12
|
+
"@typescript-eslint": PluginImport;
|
16
13
|
};
|
17
14
|
svelte: {
|
18
|
-
"@stylistic":
|
19
|
-
"@typescript-eslint":
|
20
|
-
svelte:
|
15
|
+
"@stylistic": PluginImport;
|
16
|
+
"@typescript-eslint": PluginImport;
|
17
|
+
svelte: PluginImport;
|
21
18
|
};
|
22
|
-
html: { "@html-eslint":
|
23
|
-
json: { jsonc:
|
24
|
-
jsonc: { jsonc:
|
25
|
-
yml: { yml:
|
19
|
+
html: { "@html-eslint": PluginImport };
|
20
|
+
json: { jsonc: PluginImport };
|
21
|
+
jsonc: { jsonc: PluginImport };
|
22
|
+
yml: { yml: PluginImport };
|
26
23
|
}
|