linted 33.4.4 → 33.4.6
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/.mocharc.yml +2 -2
- package/dist/tests/index.d.ts +2 -0
- package/dist/tests/index.d.ts.map +1 -0
- package/dist/tests/index.js +8 -0
- package/dist/tests/index.js.map +1 -0
- package/dist/tests/index.spec.d.ts +2 -0
- package/dist/tests/index.spec.d.ts.map +1 -0
- package/dist/tests/index.spec.js +21 -0
- package/dist/tests/index.spec.js.map +1 -0
- package/dist/tests/scope/index.spec.d.ts +2 -0
- package/dist/tests/scope/index.spec.d.ts.map +1 -0
- package/dist/tests/scope/index.spec.js +86 -0
- package/dist/tests/scope/index.spec.js.map +1 -0
- package/dist/tests/scope/tree.spec.d.ts +2 -0
- package/dist/tests/scope/tree.spec.d.ts.map +1 -0
- package/dist/tests/scope/tree.spec.js +78 -0
- package/dist/tests/scope/tree.spec.js.map +1 -0
- package/package.json +7 -6
- package/src/tsconfig.json +7 -2
- package/tests/index.spec.ts +1 -1
- package/tests/scope/index.spec.ts +1 -1
- package/tests/scope/tree.spec.ts +1 -1
- package/tests/tsconfig.json +6 -5
- package/tsconfig-base.json +18 -2
- package/typings/tsconfig.json +5 -4
- package/tsconfig.json +0 -31
package/.mocharc.yml
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../tests/index.ts"],"names":[],"mappings":"AAAA,wBAAgB,gBAAgB,SAU/B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../tests/index.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,gBAAgB;IAC9B,IAAI,CAAC;IAEL,CAAC;IACD,OAAO,KAAK,EAAE,CAAC;QACb,MAAM,KAAK,CACT,yBAAyB,EACzB,EAAE,KAAK,EAAE,KAAK,EAAE,CACjB,CAAC;IACJ,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.spec.d.ts","sourceRoot":"","sources":["../../tests/index.spec.ts"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import "chai/register-should.js";
|
|
2
|
+
import linted from "../index.js";
|
|
3
|
+
const configs = linted();
|
|
4
|
+
describe("linted", function () {
|
|
5
|
+
describe("shape", function () {
|
|
6
|
+
it("is a function", function () {
|
|
7
|
+
linted
|
|
8
|
+
.should.be
|
|
9
|
+
.a("function");
|
|
10
|
+
});
|
|
11
|
+
});
|
|
12
|
+
describe("output", function () {
|
|
13
|
+
it("is a non-empty array", function () {
|
|
14
|
+
configs
|
|
15
|
+
.should.be
|
|
16
|
+
.an("array")
|
|
17
|
+
.not.empty;
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
//# sourceMappingURL=index.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.spec.js","sourceRoot":"","sources":["../../tests/index.spec.ts"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAC;AACjC,OAAO,MAAM,MAAM,IAAI,CAAC;AAExB,MAAM,OAAO,GAAG,MAAM,EAAE,CAAC;AAEzB,QAAQ,CACN,QAAQ,EACR;IACE,QAAQ,CACN,OAAO,EACP;QACE,EAAE,CACA,eAAe,EACf;YACE,MAAM;iBACH,MAAM,CAAC,EAAE;iBACT,CAAC,CAAC,UAAU,CAAC,CAAC;QACnB,CAAC,CACF,CAAC;IACJ,CAAC,CACF,CAAC;IACF,QAAQ,CACN,QAAQ,EACR;QACE,EAAE,CACA,sBAAsB,EACtB;YACE,OAAO;iBACJ,MAAM,CAAC,EAAE;iBACT,EAAE,CAAC,OAAO,CAAC;iBACX,GAAG,CAAC,KAAK,CAAC;QACf,CAAC,CACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.spec.d.ts","sourceRoot":"","sources":["../../../tests/scope/index.spec.ts"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import "chai/register-should.js";
|
|
2
|
+
import { scopes } from "../../scope/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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.spec.js","sourceRoot":"","sources":["../../../tests/scope/index.spec.ts"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,QAAQ,CACN,QAAQ,EACR;IACE,QAAQ,CACN,OAAO,EACP;QACE,EAAE,CACA,sBAAsB,EACtB;YACE,MAAM;iBACH,MAAM,CAAC,EAAE;iBACT,EAAE,CAAC,OAAO,CAAC;iBACX,GAAG,CAAC,KAAK,CAAC;QACf,CAAC,CACF,CAAC;IACJ,CAAC,CACF,CAAC;IACF,QAAQ,CACN,SAAS,EACT;QACE,EAAE,CACA,YAAY,EACZ;YACE,MAAM;iBACH,MAAM;iBACN,MAAM;iBACN,KAAK,CACJ,IAAI,GAAG,CAAC,MAAM,CAAC;iBACZ,IAAI,CACR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AC,EAAE;iBACT,WAAW,CACV,MAAM;iBACH,OAAO,CAAC,IAAI,CAAC,CACjB,CAAC;QACN,CAAC,CACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tree.spec.d.ts","sourceRoot":"","sources":["../../../tests/scope/tree.spec.ts"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import "chai/register-should.js";
|
|
2
|
+
import { tree } from "../../scope/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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tree.spec.js","sourceRoot":"","sources":["../../../tests/scope/tree.spec.ts"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAExC,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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ACN,OAAO;iBACP,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;YACnB,KAAK;iBACF,OAAO,CAAC,IAAI,CAAC;iBACb,MAAM;iBACN,KAAK,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QAC5B,CAAC,CACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC,CACF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$pkg": "2411.
|
|
2
|
+
"$pkg": "2411.5.0",
|
|
3
3
|
"$schema": "https://json.schemastore.org/package",
|
|
4
4
|
"$help": "https://docs.npmjs.com/cli/configuring-npm/package-json",
|
|
5
5
|
"name": "linted",
|
|
6
|
-
"version": "33.4.
|
|
6
|
+
"version": "33.4.6",
|
|
7
7
|
"repository": "github:jimmy-zhening-luo/linted",
|
|
8
8
|
"description": "ESLint mono-plugin bundler with strict, opinionated defaults for (Stylistic) JavaScript, TypeScript, Svelte, HTML, Tailwind/CSS, JSON, JSONC, YAML, and Mocha.",
|
|
9
9
|
"keywords": [
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"@eslint/css": "0.14.0",
|
|
57
57
|
"@eslint/json": "0.13.2",
|
|
58
|
-
"@eslinted/core": "29.4.
|
|
59
|
-
"@eslinted/defaults": "17.2.
|
|
58
|
+
"@eslinted/core": "29.4.3",
|
|
59
|
+
"@eslinted/defaults": "17.2.5",
|
|
60
60
|
"@html-eslint/eslint-plugin": "0.47.0",
|
|
61
61
|
"@stylistic/eslint-plugin": "5.5.0",
|
|
62
62
|
"eslint-plugin-chai-expect": "3.1.0",
|
|
@@ -82,9 +82,10 @@
|
|
|
82
82
|
"postbuild:ts": "npm run --if-present stage && ts-add-js-extension --showprogress=false --dir=dist",
|
|
83
83
|
"postbuild": "npm run lint || exit 0",
|
|
84
84
|
"lint": "eslint --cache --fix",
|
|
85
|
-
"pretest": "npm run build",
|
|
85
|
+
"pretest": "npm run --ignore-scripts build",
|
|
86
86
|
"test": "npm run --if-present test:suite",
|
|
87
|
-
"test:suite": "tsc -b tests && ts-add-js-extension --showprogress=false --dir=dist
|
|
87
|
+
"test:suite": "tsc -b tests && ts-add-js-extension --showprogress=false --dir=dist && mocha",
|
|
88
|
+
"posttest": "npm run postbuild",
|
|
88
89
|
"prestart": "npm run build",
|
|
89
90
|
"start": "npm run start:ts",
|
|
90
91
|
"start:ts": "node .",
|
package/src/tsconfig.json
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
{
|
|
2
|
-
"extends": "../tsconfig.json",
|
|
2
|
+
"extends": "../tsconfig-base.json",
|
|
3
3
|
"include": [
|
|
4
4
|
"../typings/**/*",
|
|
5
5
|
"**/*",
|
|
6
6
|
],
|
|
7
|
+
"references": [
|
|
8
|
+
{
|
|
9
|
+
"path": "../typings",
|
|
10
|
+
},
|
|
11
|
+
],
|
|
7
12
|
"compilerOptions": {
|
|
8
|
-
"rootDir": ".",
|
|
9
13
|
"outDir": "../dist",
|
|
14
|
+
"composite": true,
|
|
10
15
|
},
|
|
11
16
|
}
|
package/tests/index.spec.ts
CHANGED
package/tests/scope/tree.spec.ts
CHANGED
package/tests/tsconfig.json
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
{
|
|
2
|
-
"extends": "../tsconfig.json",
|
|
2
|
+
"extends": "../tsconfig-base.json",
|
|
3
3
|
"include": [
|
|
4
|
-
"../src/**/*",
|
|
5
4
|
"../typings/**/*",
|
|
6
5
|
"**/*",
|
|
7
6
|
],
|
|
8
7
|
"references": [
|
|
9
8
|
{
|
|
10
|
-
"path": "../src
|
|
9
|
+
"path": "../src",
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"path": "../typings",
|
|
11
13
|
},
|
|
12
14
|
],
|
|
13
15
|
"compilerOptions": {
|
|
14
|
-
"
|
|
15
|
-
"outDir": "../dist-tests",
|
|
16
|
+
"outDir": "../dist/tests",
|
|
16
17
|
},
|
|
17
18
|
}
|
package/tsconfig-base.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"display": "tsc@509.
|
|
2
|
+
"display": "tsc@509.5.0",
|
|
3
3
|
"$help": "https://aka.ms/tsconfig/#quick-nav-Top%20Level",
|
|
4
4
|
"compilerOptions": {
|
|
5
5
|
"allowUnreachableCode": false,
|
|
@@ -17,11 +17,27 @@
|
|
|
17
17
|
"module": "esnext",
|
|
18
18
|
"moduleResolution": "bundler",
|
|
19
19
|
"rewriteRelativeImportExtensions": true,
|
|
20
|
+
"rootDirs": [
|
|
21
|
+
"src",
|
|
22
|
+
"typings",
|
|
23
|
+
"./",
|
|
24
|
+
],
|
|
25
|
+
"types": [
|
|
26
|
+
"mocha",
|
|
27
|
+
"chai",
|
|
28
|
+
/* {CONFIGURE} */
|
|
29
|
+
],
|
|
30
|
+
"declaration": true,
|
|
20
31
|
"declarationMap": true,
|
|
21
32
|
"noEmitOnError": true,
|
|
22
33
|
"removeComments": true,
|
|
23
34
|
"sourceMap": true,
|
|
35
|
+
// "verbatimModuleSyntax": true,
|
|
36
|
+
"lib": [
|
|
37
|
+
"esnext",
|
|
38
|
+
/* {CONFIGURE} */
|
|
39
|
+
],
|
|
24
40
|
"target": "esnext",
|
|
25
|
-
"
|
|
41
|
+
// "skipLibCheck": true,
|
|
26
42
|
},
|
|
27
43
|
}
|
package/typings/tsconfig.json
CHANGED
package/tsconfig.json
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"files": [],
|
|
3
|
-
"extends": "./tsconfig-base.json",
|
|
4
|
-
"references": [
|
|
5
|
-
{
|
|
6
|
-
"path": "src/tsconfig.json",
|
|
7
|
-
},
|
|
8
|
-
{
|
|
9
|
-
"path": "tests/tsconfig.json",
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
"path": "typings/tsconfig.json",
|
|
13
|
-
},
|
|
14
|
-
],
|
|
15
|
-
"compilerOptions": {
|
|
16
|
-
"types": [
|
|
17
|
-
"mocha",
|
|
18
|
-
"chai",
|
|
19
|
-
/* {CONFIGURE} */
|
|
20
|
-
],
|
|
21
|
-
// "declaration": true,
|
|
22
|
-
// "sourceMap": false,
|
|
23
|
-
// "verbatimModuleSyntax": true,
|
|
24
|
-
"lib": [
|
|
25
|
-
"esnext",
|
|
26
|
-
/* {CONFIGURE} */
|
|
27
|
-
],
|
|
28
|
-
// "composite": false,
|
|
29
|
-
// "skipLibCheck": true,
|
|
30
|
-
},
|
|
31
|
-
}
|