@eslinted/core 26.1.4 → 27.0.0-rc.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.
- package/dist/factory/index.d.ts +5 -5
- package/dist/factory/index.d.ts.map +1 -1
- package/dist/factory/index.js +1 -1
- package/dist/factory/index.js.map +1 -1
- package/dist/index.d.ts +8 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.input.spec.d.ts +169 -204
- package/dist/index.input.spec.d.ts.map +1 -1
- package/dist/index.input.spec.js +198 -207
- package/dist/index.input.spec.js.map +1 -1
- package/dist/index.js +2 -3
- package/dist/index.js.map +1 -1
- package/dist/index.spec.js +2 -3
- package/dist/index.spec.js.map +1 -1
- package/dist/interface/{configuration/defaults → defaults}/index.d.ts +1 -1
- package/dist/interface/defaults/index.d.ts.map +1 -0
- package/dist/{scope/dependencies → interface/defaults}/index.js.map +1 -1
- package/dist/interface/defaults/settings/index.d.ts.map +1 -0
- package/dist/interface/defaults/settings/index.js.map +1 -0
- package/dist/interface/defaults/settings/manifest.d.ts.map +1 -0
- package/dist/interface/defaults/settings/manifest.js.map +1 -0
- package/dist/interface/extensions/global.d.ts.map +1 -0
- package/dist/interface/extensions/global.js.map +1 -0
- package/dist/interface/extensions/index.d.ts.map +1 -0
- package/dist/interface/extensions/index.js.map +1 -0
- package/dist/interface/{configuration/extensions → extensions}/scopes.d.ts +1 -1
- package/dist/interface/extensions/scopes.d.ts.map +1 -0
- package/dist/interface/extensions/scopes.js.map +1 -0
- package/dist/interface/index.d.ts +5 -5
- package/dist/interface/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/factory/index.ts +13 -16
- package/src/index.input.spec.ts +202 -207
- package/src/index.spec.ts +14 -3
- package/src/index.ts +24 -23
- package/src/interface/{configuration/defaults → defaults}/index.ts +1 -1
- package/src/interface/{configuration/defaults → defaults}/settings/index.ts +4 -1
- package/src/interface/{configuration/extensions → extensions}/scopes.ts +1 -1
- package/src/interface/index.ts +10 -13
- package/dist/interface/configuration/defaults/index.d.ts.map +0 -1
- package/dist/interface/configuration/defaults/index.js.map +0 -1
- package/dist/interface/configuration/defaults/settings/index.d.ts.map +0 -1
- package/dist/interface/configuration/defaults/settings/index.js.map +0 -1
- package/dist/interface/configuration/defaults/settings/manifest.d.ts.map +0 -1
- package/dist/interface/configuration/defaults/settings/manifest.js.map +0 -1
- package/dist/interface/configuration/extensions/global.d.ts.map +0 -1
- package/dist/interface/configuration/extensions/global.js.map +0 -1
- package/dist/interface/configuration/extensions/index.d.ts.map +0 -1
- package/dist/interface/configuration/extensions/index.js.map +0 -1
- package/dist/interface/configuration/extensions/scopes.d.ts.map +0 -1
- package/dist/interface/configuration/extensions/scopes.js.map +0 -1
- package/dist/interface/configuration/index.d.ts +0 -7
- package/dist/interface/configuration/index.d.ts.map +0 -1
- package/dist/interface/configuration/index.js +0 -2
- package/dist/interface/configuration/index.js.map +0 -1
- package/dist/interface/imports.d.ts +0 -5
- package/dist/interface/imports.d.ts.map +0 -1
- package/dist/interface/imports.js +0 -2
- package/dist/interface/imports.js.map +0 -1
- package/dist/scope/dependencies/index.d.ts +0 -3
- package/dist/scope/dependencies/index.d.ts.map +0 -1
- package/dist/scope/dependencies/index.js +0 -2
- package/dist/scope/dependencies/parsers.d.ts +0 -2
- package/dist/scope/dependencies/parsers.d.ts.map +0 -1
- package/dist/scope/dependencies/parsers.js +0 -2
- package/dist/scope/dependencies/parsers.js.map +0 -1
- package/dist/scope/dependencies/plugins.d.ts +0 -2
- package/dist/scope/dependencies/plugins.d.ts.map +0 -1
- package/dist/scope/dependencies/plugins.js +0 -2
- package/dist/scope/dependencies/plugins.js.map +0 -1
- package/dist/scope/index.d.ts +0 -18
- package/dist/scope/index.d.ts.map +0 -1
- package/dist/scope/index.js +0 -15
- package/dist/scope/index.js.map +0 -1
- package/dist/scope/index.spec.d.ts +0 -2
- package/dist/scope/index.spec.d.ts.map +0 -1
- package/dist/scope/index.spec.js +0 -86
- package/dist/scope/index.spec.js.map +0 -1
- package/dist/scope/tree.d.ts +0 -2
- package/dist/scope/tree.d.ts.map +0 -1
- package/dist/scope/tree.js +0 -23
- package/dist/scope/tree.js.map +0 -1
- package/dist/scope/tree.spec.d.ts +0 -2
- package/dist/scope/tree.spec.d.ts.map +0 -1
- package/dist/scope/tree.spec.js +0 -78
- package/dist/scope/tree.spec.js.map +0 -1
- package/src/interface/configuration/index.ts +0 -19
- package/src/interface/imports.ts +0 -13
- package/src/scope/dependencies/index.ts +0 -2
- package/src/scope/dependencies/parsers.ts +0 -4
- package/src/scope/dependencies/plugins.ts +0 -11
- package/src/scope/index.spec.ts +0 -136
- package/src/scope/index.ts +0 -18
- package/src/scope/tree.spec.ts +0 -124
- package/src/scope/tree.ts +0 -22
- /package/dist/interface/{configuration/defaults → defaults}/index.js +0 -0
- /package/dist/interface/{configuration/defaults → defaults}/settings/index.d.ts +0 -0
- /package/dist/interface/{configuration/defaults → defaults}/settings/index.js +0 -0
- /package/dist/interface/{configuration/defaults → defaults}/settings/manifest.d.ts +0 -0
- /package/dist/interface/{configuration/defaults → defaults}/settings/manifest.js +0 -0
- /package/dist/interface/{configuration/extensions → extensions}/global.d.ts +0 -0
- /package/dist/interface/{configuration/extensions → extensions}/global.js +0 -0
- /package/dist/interface/{configuration/extensions → extensions}/index.d.ts +0 -0
- /package/dist/interface/{configuration/extensions → extensions}/index.js +0 -0
- /package/dist/interface/{configuration/extensions → extensions}/scopes.js +0 -0
- /package/src/interface/{configuration/defaults → defaults}/settings/manifest.ts +0 -0
- /package/src/interface/{configuration/extensions → extensions}/global.ts +0 -0
- /package/src/interface/{configuration/extensions → extensions}/index.ts +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/interface/configuration/extensions/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAEhD,MAAM,MAAM,UAAU,CACpB,KAAK,SAAS,MAAM,EACpB,QAAQ,SAAS,KAAK,IAEpB,eAAe,GACf,eAAe,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/interface/configuration/extensions/index.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"scopes.d.ts","sourceRoot":"","sources":["../../../../src/interface/configuration/extensions/scopes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEzC,MAAM,MAAM,eAAe,CACzB,KAAK,SAAS,MAAM,EACpB,QAAQ,SAAS,KAAK,IAEpB,MAAM,CACR,KAAK,EACL;IACE,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC;CACf,CACF,GACC,MAAM,CACN,QAAQ,EACR;IACE,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,OAAO,CAAC;CACjB,CACF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"scopes.js","sourceRoot":"","sources":["../../../../src/interface/configuration/extensions/scopes.ts"],"names":[],"mappings":""}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { Defaults } from "./defaults/index.js";
|
|
2
|
-
import type { Extensions } from "./extensions/index.js";
|
|
3
|
-
export interface Configuration<Scope extends string, Optional extends Scope, Parser extends Scope> {
|
|
4
|
-
defaults: Defaults<Scope, Parser>;
|
|
5
|
-
extensions: Partial<Extensions<Scope, Optional>>;
|
|
6
|
-
}
|
|
7
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/interface/configuration/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,MAAM,WAAW,aAAa,CAC5B,KAAK,SAAS,MAAM,EACpB,QAAQ,SAAS,KAAK,EACtB,MAAM,SAAS,KAAK;IAEpB,QAAQ,EAAE,QAAQ,CAChB,KAAK,EACL,MAAM,CACP,CAAC;IACF,UAAU,EAAE,OAAO,CACjB,UAAU,CACR,KAAK,EACL,QAAQ,CACT,CACF,CAAC;CACH"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/interface/configuration/index.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"imports.d.ts","sourceRoot":"","sources":["../../src/interface/imports.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,OAAO,CACtB,MAAM,SAAS,MAAM,EACrB,MAAM,SAAS,MAAM;IAErB,OAAO,EAAE,MAAM,CACb,MAAM,EACN,OAAO,CACR,CAAC;IACF,OAAO,EAAE,MAAM,CACb,MAAM,EACN,OAAO,CACR,CAAC;CACH"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"imports.js","sourceRoot":"","sources":["../../src/interface/imports.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/scope/dependencies/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACxC,YAAY,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parsers.d.ts","sourceRoot":"","sources":["../../../src/scope/dependencies/parsers.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,MAAM,GACd,IAAI,GACJ,MAAM,GACN,KAAK,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parsers.js","sourceRoot":"","sources":["../../../src/scope/dependencies/parsers.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../src/scope/dependencies/plugins.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,MAAM,GACd,YAAY,GACZ,oBAAoB,GACpB,OAAO,GACP,eAAe,GACf,aAAa,GACb,MAAM,GACN,KAAK,GACL,MAAM,GACN,OAAO,GACP,KAAK,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plugins.js","sourceRoot":"","sources":["../../../src/scope/dependencies/plugins.ts"],"names":[],"mappings":""}
|
package/dist/scope/index.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export declare const scopes: readonly [
|
|
2
|
-
"js",
|
|
3
|
-
"ts",
|
|
4
|
-
"mocha",
|
|
5
|
-
"svelte",
|
|
6
|
-
"html",
|
|
7
|
-
"css",
|
|
8
|
-
"json",
|
|
9
|
-
"jsonc",
|
|
10
|
-
"jsoncc",
|
|
11
|
-
"yml"
|
|
12
|
-
];
|
|
13
|
-
export declare const optional: readonly [
|
|
14
|
-
"svelte"
|
|
15
|
-
];
|
|
16
|
-
export { tree } from "./tree.js";
|
|
17
|
-
export type { Plugin, Parser, } from "./dependencies/index.js";
|
|
18
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/scope/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM,2FAWT,CAAC;AACX,eAAO,MAAM,QAAQ,qBAAsB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,YAAY,EACV,MAAM,EACN,MAAM,GACP,MAAM,gBAAgB,CAAC"}
|
package/dist/scope/index.js
DELETED
package/dist/scope/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/scope/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,IAAI;IACJ,IAAI;IACJ,OAAO;IACP,QAAQ;IACR,MAAM;IACN,KAAK;IACL,MAAM;IACN,OAAO;IACP,QAAQ;IACR,KAAK;CACG,CAAC;AACX,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,QAAQ,CAAU,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.spec.d.ts","sourceRoot":"","sources":["../../src/scope/index.spec.ts"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAC"}
|
package/dist/scope/index.spec.js
DELETED
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import "chai/register-should.js";
|
|
2
|
-
import { scopes } from "./index.js";
|
|
3
|
-
describe("Scopes", function () {
|
|
4
|
-
describe("shape", function () {
|
|
5
|
-
it("is a non-empty array", function () {
|
|
6
|
-
scopes
|
|
7
|
-
.should.be
|
|
8
|
-
.an("array")
|
|
9
|
-
.not.empty;
|
|
10
|
-
});
|
|
11
|
-
});
|
|
12
|
-
describe("members", function () {
|
|
13
|
-
it("are unique", function () {
|
|
14
|
-
scopes
|
|
15
|
-
.length
|
|
16
|
-
.should
|
|
17
|
-
.equal(new Set(scopes)
|
|
18
|
-
.size);
|
|
19
|
-
});
|
|
20
|
-
});
|
|
21
|
-
describe("order", function () {
|
|
22
|
-
it("`jsoncc` > `jsonc` > `json`", function () {
|
|
23
|
-
scopes
|
|
24
|
-
.should
|
|
25
|
-
.include
|
|
26
|
-
.members([
|
|
27
|
-
"jsoncc",
|
|
28
|
-
"jsonc",
|
|
29
|
-
"json",
|
|
30
|
-
]);
|
|
31
|
-
scopes
|
|
32
|
-
.indexOf("jsoncc")
|
|
33
|
-
.should.be
|
|
34
|
-
.greaterThan(scopes
|
|
35
|
-
.indexOf("jsonc"));
|
|
36
|
-
scopes
|
|
37
|
-
.indexOf("jsonc")
|
|
38
|
-
.should.be
|
|
39
|
-
.greaterThan(scopes
|
|
40
|
-
.indexOf("json"));
|
|
41
|
-
});
|
|
42
|
-
it("`mocha` > `ts`", function () {
|
|
43
|
-
scopes
|
|
44
|
-
.should
|
|
45
|
-
.include
|
|
46
|
-
.members([
|
|
47
|
-
"mocha",
|
|
48
|
-
"ts",
|
|
49
|
-
]);
|
|
50
|
-
scopes
|
|
51
|
-
.indexOf("mocha")
|
|
52
|
-
.should.be
|
|
53
|
-
.greaterThan(scopes
|
|
54
|
-
.indexOf("ts"));
|
|
55
|
-
});
|
|
56
|
-
it("`svelte` > `ts`", function () {
|
|
57
|
-
scopes
|
|
58
|
-
.should
|
|
59
|
-
.include
|
|
60
|
-
.members([
|
|
61
|
-
"svelte",
|
|
62
|
-
"ts",
|
|
63
|
-
]);
|
|
64
|
-
scopes
|
|
65
|
-
.indexOf("svelte")
|
|
66
|
-
.should.be
|
|
67
|
-
.greaterThan(scopes
|
|
68
|
-
.indexOf("ts"));
|
|
69
|
-
});
|
|
70
|
-
it("`ts` > `js`", function () {
|
|
71
|
-
scopes
|
|
72
|
-
.should
|
|
73
|
-
.include
|
|
74
|
-
.members([
|
|
75
|
-
"ts",
|
|
76
|
-
"js",
|
|
77
|
-
]);
|
|
78
|
-
scopes
|
|
79
|
-
.indexOf("ts")
|
|
80
|
-
.should.be
|
|
81
|
-
.greaterThan(scopes
|
|
82
|
-
.indexOf("js"));
|
|
83
|
-
});
|
|
84
|
-
});
|
|
85
|
-
});
|
|
86
|
-
//# sourceMappingURL=index.spec.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.spec.js","sourceRoot":"","sources":["../../src/scope/index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CAAC;QACN,CAAC,CACF,CAAC;QACF,EAAE,CACA,iBAAiB,EACjB;YACE,MAAM;iBACH,MAAM;iBACN,OAAO;iBACP,OAAO,CACN;gBACE,QAAQ;gBACR,IAAI;aACL,CACF,CAAC;YACJ,MAAM;iBACH,OAAO,CAAC,QAAQ,CAAC;iBACjB,MAAM,CAAC,EAAE;iBACT,WAAW,CACV,MAAM;iBACH,OAAO,CAAC,IAAI,CAAC,CACjB,CAAC;QACN,CAAC,CACF,CAAC;QACF,EAAE,CACA,aAAa,EACb;YACE,MAAM;iBACH,MAAM;iBACN,OAAO;iBACP,OAAO,CACN;gBACE,IAAI;gBACJ,IAAI;aACL,CACF,CAAC;YACJ,MAAM;iBACH,OAAO,CAAC,IAAI,CAAC;iBACb,MAAM,CAAC,EAAE;iBACT,WAAW,CACV,MAAM;iBACH,OAAO,CAAC,IAAI,CAAC,CACjB,CAAC;QACN,CAAC,CACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC,CACF,CAAC"}
|
package/dist/scope/tree.d.ts
DELETED
package/dist/scope/tree.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tree.d.ts","sourceRoot":"","sources":["../../src/scope/tree.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI,qMAqBhB,CAAC"}
|
package/dist/scope/tree.js
DELETED
package/dist/scope/tree.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tree.js","sourceRoot":"","sources":["../../src/scope/tree.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB;QACE,QAAQ;QACR,CAAC,OAAO,CAAC;KACD;IACV;QACE,OAAO;QACP,CAAC,MAAM,CAAC;KACA;IACV;QACE,OAAO;QACP,CAAC,IAAI,CAAC;KACE;IACV;QACE,QAAQ;QACR,CAAC,IAAI,CAAC;KACE;IACV;QACE,IAAI;QACJ,CAAC,IAAI,CAAC;KACE;CACX,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tree.spec.d.ts","sourceRoot":"","sources":["../../src/scope/tree.spec.ts"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAC"}
|
package/dist/scope/tree.spec.js
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import "chai/register-should.js";
|
|
2
|
-
import { tree } from "./tree.js";
|
|
3
|
-
const nodes = tree.map(([scope]) => scope);
|
|
4
|
-
describe("Tree", function () {
|
|
5
|
-
describe("shape", function () {
|
|
6
|
-
it("is an array", function () {
|
|
7
|
-
tree
|
|
8
|
-
.should.be
|
|
9
|
-
.an("array");
|
|
10
|
-
});
|
|
11
|
-
});
|
|
12
|
-
describe("members", function () {
|
|
13
|
-
it("are unique", function () {
|
|
14
|
-
tree
|
|
15
|
-
.length
|
|
16
|
-
.should
|
|
17
|
-
.equal(new Set(nodes)
|
|
18
|
-
.size);
|
|
19
|
-
});
|
|
20
|
-
it("omit `js`", function () {
|
|
21
|
-
nodes
|
|
22
|
-
.should
|
|
23
|
-
.not.include
|
|
24
|
-
.members(["js"]);
|
|
25
|
-
});
|
|
26
|
-
});
|
|
27
|
-
describe("order", function () {
|
|
28
|
-
it("`jsoncc` < [`jsonc`]?", function () {
|
|
29
|
-
nodes
|
|
30
|
-
.should
|
|
31
|
-
.include
|
|
32
|
-
.members(["jsoncc"]);
|
|
33
|
-
nodes
|
|
34
|
-
.indexOf("jsoncc")
|
|
35
|
-
.should.be
|
|
36
|
-
.lessThan(nodes.indexOf("jsonc") * tree.length);
|
|
37
|
-
});
|
|
38
|
-
it("`mocha` < `ts`", function () {
|
|
39
|
-
nodes
|
|
40
|
-
.should
|
|
41
|
-
.include
|
|
42
|
-
.members([
|
|
43
|
-
"mocha",
|
|
44
|
-
"ts",
|
|
45
|
-
]);
|
|
46
|
-
nodes
|
|
47
|
-
.indexOf("mocha")
|
|
48
|
-
.should.be
|
|
49
|
-
.lessThan(nodes
|
|
50
|
-
.indexOf("ts"));
|
|
51
|
-
});
|
|
52
|
-
it("`svelte` < `ts`", function () {
|
|
53
|
-
nodes
|
|
54
|
-
.should
|
|
55
|
-
.include
|
|
56
|
-
.members([
|
|
57
|
-
"svelte",
|
|
58
|
-
"ts",
|
|
59
|
-
]);
|
|
60
|
-
nodes
|
|
61
|
-
.indexOf("svelte")
|
|
62
|
-
.should.be
|
|
63
|
-
.lessThan(nodes
|
|
64
|
-
.indexOf("ts"));
|
|
65
|
-
});
|
|
66
|
-
it("`ts` is last", function () {
|
|
67
|
-
nodes
|
|
68
|
-
.should
|
|
69
|
-
.include
|
|
70
|
-
.members(["ts"]);
|
|
71
|
-
nodes
|
|
72
|
-
.indexOf("ts")
|
|
73
|
-
.should
|
|
74
|
-
.equal(tree.length - 1);
|
|
75
|
-
});
|
|
76
|
-
});
|
|
77
|
-
});
|
|
78
|
-
//# sourceMappingURL=tree.spec.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tree.spec.js","sourceRoot":"","sources":["../../src/scope/tree.spec.ts"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC;AAE3C,QAAQ,CACN,MAAM,EACN;IACE,QAAQ,CACN,OAAO,EACP;QACE,EAAE,CACA,aAAa,EACb;YACE,IAAI;iBACD,MAAM,CAAC,EAAE;iBACT,EAAE,CAAC,OAAO,CAAC,CAAC;QACjB,CAAC,CACF,CAAC;IACJ,CAAC,CACF,CAAC;IACF,QAAQ,CACN,SAAS,EACT;QACE,EAAE,CACA,YAAY,EACZ;YACE,IAAI;iBACD,MAAM;iBACN,MAAM;iBACN,KAAK,CACJ,IAAI,GAAG,CAAC,KAAK,CAAC;iBACX,IAAI,CACR,CAAC;QACN,CA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AK,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QAC5B,CAAC,CACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { Defaults } from "./defaults";
|
|
2
|
-
import type { Extensions } from "./extensions";
|
|
3
|
-
|
|
4
|
-
export interface Configuration<
|
|
5
|
-
Scope extends string,
|
|
6
|
-
Optional extends Scope,
|
|
7
|
-
Parser extends Scope,
|
|
8
|
-
> {
|
|
9
|
-
defaults: Defaults<
|
|
10
|
-
Scope,
|
|
11
|
-
Parser
|
|
12
|
-
>;
|
|
13
|
-
extensions: Partial<
|
|
14
|
-
Extensions<
|
|
15
|
-
Scope,
|
|
16
|
-
Optional
|
|
17
|
-
>
|
|
18
|
-
>;
|
|
19
|
-
}
|
package/src/interface/imports.ts
DELETED
package/src/scope/index.spec.ts
DELETED
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
import "chai/register-should.js";
|
|
2
|
-
import { scopes } from ".";
|
|
3
|
-
|
|
4
|
-
describe(
|
|
5
|
-
"Scopes",
|
|
6
|
-
function () {
|
|
7
|
-
describe(
|
|
8
|
-
"shape",
|
|
9
|
-
function () {
|
|
10
|
-
it(
|
|
11
|
-
"is a non-empty array",
|
|
12
|
-
function () {
|
|
13
|
-
scopes
|
|
14
|
-
.should.be
|
|
15
|
-
.an("array")
|
|
16
|
-
.not.empty;
|
|
17
|
-
},
|
|
18
|
-
);
|
|
19
|
-
},
|
|
20
|
-
);
|
|
21
|
-
describe(
|
|
22
|
-
"members",
|
|
23
|
-
function () {
|
|
24
|
-
it(
|
|
25
|
-
"are unique",
|
|
26
|
-
function () {
|
|
27
|
-
scopes
|
|
28
|
-
.length
|
|
29
|
-
.should
|
|
30
|
-
.equal(
|
|
31
|
-
new Set(scopes)
|
|
32
|
-
.size,
|
|
33
|
-
);
|
|
34
|
-
},
|
|
35
|
-
);
|
|
36
|
-
},
|
|
37
|
-
);
|
|
38
|
-
describe(
|
|
39
|
-
"order",
|
|
40
|
-
function () {
|
|
41
|
-
it(
|
|
42
|
-
"`jsoncc` > `jsonc` > `json`",
|
|
43
|
-
function () {
|
|
44
|
-
scopes
|
|
45
|
-
.should
|
|
46
|
-
.include
|
|
47
|
-
.members(
|
|
48
|
-
[
|
|
49
|
-
"jsoncc",
|
|
50
|
-
"jsonc",
|
|
51
|
-
"json",
|
|
52
|
-
],
|
|
53
|
-
);
|
|
54
|
-
scopes
|
|
55
|
-
.indexOf("jsoncc")
|
|
56
|
-
.should.be
|
|
57
|
-
.greaterThan(
|
|
58
|
-
scopes
|
|
59
|
-
.indexOf("jsonc"),
|
|
60
|
-
);
|
|
61
|
-
scopes
|
|
62
|
-
.indexOf("jsonc")
|
|
63
|
-
.should.be
|
|
64
|
-
.greaterThan(
|
|
65
|
-
scopes
|
|
66
|
-
.indexOf("json"),
|
|
67
|
-
);
|
|
68
|
-
},
|
|
69
|
-
);
|
|
70
|
-
it(
|
|
71
|
-
"`mocha` > `ts`",
|
|
72
|
-
function () {
|
|
73
|
-
scopes
|
|
74
|
-
.should
|
|
75
|
-
.include
|
|
76
|
-
.members(
|
|
77
|
-
[
|
|
78
|
-
"mocha",
|
|
79
|
-
"ts",
|
|
80
|
-
],
|
|
81
|
-
);
|
|
82
|
-
scopes
|
|
83
|
-
.indexOf("mocha")
|
|
84
|
-
.should.be
|
|
85
|
-
.greaterThan(
|
|
86
|
-
scopes
|
|
87
|
-
.indexOf("ts"),
|
|
88
|
-
);
|
|
89
|
-
},
|
|
90
|
-
);
|
|
91
|
-
it(
|
|
92
|
-
"`svelte` > `ts`",
|
|
93
|
-
function () {
|
|
94
|
-
scopes
|
|
95
|
-
.should
|
|
96
|
-
.include
|
|
97
|
-
.members(
|
|
98
|
-
[
|
|
99
|
-
"svelte",
|
|
100
|
-
"ts",
|
|
101
|
-
],
|
|
102
|
-
);
|
|
103
|
-
scopes
|
|
104
|
-
.indexOf("svelte")
|
|
105
|
-
.should.be
|
|
106
|
-
.greaterThan(
|
|
107
|
-
scopes
|
|
108
|
-
.indexOf("ts"),
|
|
109
|
-
);
|
|
110
|
-
},
|
|
111
|
-
);
|
|
112
|
-
it(
|
|
113
|
-
"`ts` > `js`",
|
|
114
|
-
function () {
|
|
115
|
-
scopes
|
|
116
|
-
.should
|
|
117
|
-
.include
|
|
118
|
-
.members(
|
|
119
|
-
[
|
|
120
|
-
"ts",
|
|
121
|
-
"js",
|
|
122
|
-
],
|
|
123
|
-
);
|
|
124
|
-
scopes
|
|
125
|
-
.indexOf("ts")
|
|
126
|
-
.should.be
|
|
127
|
-
.greaterThan(
|
|
128
|
-
scopes
|
|
129
|
-
.indexOf("js"),
|
|
130
|
-
);
|
|
131
|
-
},
|
|
132
|
-
);
|
|
133
|
-
},
|
|
134
|
-
);
|
|
135
|
-
},
|
|
136
|
-
);
|
package/src/scope/index.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export const scopes = [
|
|
2
|
-
"js",
|
|
3
|
-
"ts",
|
|
4
|
-
"mocha",
|
|
5
|
-
"svelte",
|
|
6
|
-
"html",
|
|
7
|
-
"css",
|
|
8
|
-
"json",
|
|
9
|
-
"jsonc",
|
|
10
|
-
"jsoncc",
|
|
11
|
-
"yml",
|
|
12
|
-
] as const;
|
|
13
|
-
export const optional = ["svelte"] as const;
|
|
14
|
-
export { tree } from "./tree";
|
|
15
|
-
export type {
|
|
16
|
-
Plugin,
|
|
17
|
-
Parser,
|
|
18
|
-
} from "./dependencies";
|