linted 33.7.0 → 33.7.2

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.
@@ -1,6 +1,6 @@
1
- {
2
- "extends": "../tsconfig-src.json",
3
- "include": [
4
- "*",
5
- ],
6
- }
1
+ {
2
+ "extends": "../tsconfig-src.json",
3
+ "include": [
4
+ "*",
5
+ ],
6
+ }
@@ -1,6 +1,6 @@
1
- // DOC: https://github.com/ota-meshi/yaml-eslint-parser?tab=readme-ov-file#advanced-configuration
2
- export default {
3
- languageOptions: {
4
- parser: "yml" as const,
5
- },
6
- };
1
+ // DOC: https://github.com/ota-meshi/yaml-eslint-parser?tab=readme-ov-file#advanced-configuration
2
+ export default {
3
+ languageOptions: {
4
+ parser: "yml" as const,
5
+ },
6
+ };
@@ -1,8 +1,8 @@
1
- {
2
- "extends": "../tsconfig-base.json",
3
- "compilerOptions": {
4
- "rootDir": ".",
5
- "outDir": "../dist",
6
- "composite": true,
7
- },
8
- }
1
+ {
2
+ "extends": "../tsconfig-base.json",
3
+ "compilerOptions": {
4
+ "rootDir": ".",
5
+ "outDir": "../dist",
6
+ "composite": true,
7
+ },
8
+ }
package/src/tsconfig.json CHANGED
@@ -1,20 +1,20 @@
1
- {
2
- "files": [
3
- "index.ts",
4
- ],
5
- "extends": "./tsconfig-src.json",
6
- "include": [
7
- "../typings/**/*",
8
- ],
9
- "references": [
10
- {
11
- "path": "scope",
12
- },
13
- {
14
- "path": "imports",
15
- },
16
- {
17
- "path": "settings",
18
- },
19
- ],
20
- }
1
+ {
2
+ "files": [
3
+ "index.ts",
4
+ ],
5
+ "extends": "./tsconfig-src.json",
6
+ "include": [
7
+ "../typings/**/*",
8
+ ],
9
+ "references": [
10
+ {
11
+ "path": "scope",
12
+ },
13
+ {
14
+ "path": "imports",
15
+ },
16
+ {
17
+ "path": "settings",
18
+ },
19
+ ],
20
+ }
@@ -1,37 +1,37 @@
1
- import "chai/register-should.js";
2
- import linted from "..";
3
-
4
- const configs = linted();
5
-
6
- describe(
7
- "linted",
8
- function () {
9
- describe(
10
- "shape",
11
- function () {
12
- it(
13
- "is a function",
14
- function () {
15
- linted
16
- .should.be
17
- .a("function");
18
- },
19
- );
20
- },
21
- );
22
- describe(
23
- "output",
24
- function () {
25
- it(
26
- "is a non-empty array",
27
- function () {
28
- configs
29
- .should.be
30
- .an("array")
31
- .not.empty;
32
- },
33
- );
34
- },
35
- );
36
- },
37
- );
1
+ import "chai/register-should.js";
2
+ import linted from "..";
3
+
4
+ const configs = linted();
5
+
6
+ describe(
7
+ "linted",
8
+ function () {
9
+ describe(
10
+ "shape",
11
+ function () {
12
+ it(
13
+ "is a function",
14
+ function () {
15
+ linted
16
+ .should.be
17
+ .a("function");
18
+ },
19
+ );
20
+ },
21
+ );
22
+ describe(
23
+ "output",
24
+ function () {
25
+ it(
26
+ "is a non-empty array",
27
+ function () {
28
+ configs
29
+ .should.be
30
+ .an("array")
31
+ .not.empty;
32
+ },
33
+ );
34
+ },
35
+ );
36
+ },
37
+ );
package/tests/index.ts CHANGED
@@ -1,11 +1,11 @@
1
- export function mochaGlobalSetup() {
2
- try {
3
- //
4
- }
5
- catch (error) {
6
- throw Error(
7
- "Failed to hook up Mocha",
8
- { cause: error },
9
- );
10
- }
11
- }
1
+ export function mochaGlobalSetup() {
2
+ try {
3
+ //
4
+ }
5
+ catch (error) {
6
+ throw Error(
7
+ "Failed to hook up Mocha",
8
+ { cause: error },
9
+ );
10
+ }
11
+ }
@@ -1,136 +1,136 @@
1
- import "chai/register-should.js";
2
- import { scopes } from "../../scope";
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
- );
1
+ import "chai/register-should.js";
2
+ import { scopes } from "../../scope";
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
+ );