@eslinted/core 29.4.2 → 29.4.3

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 CHANGED
@@ -7,5 +7,5 @@
7
7
  # https://mochajs.org/#command-line-usage
8
8
 
9
9
  extension: [js]
10
- require: dist-tests/index.js
11
- spec: [dist-tests/**/*.spec.js]
10
+ require: dist/tests/index.js
11
+ spec: [dist/tests/**/*.spec.js]
@@ -0,0 +1,2 @@
1
+ export declare function mochaGlobalSetup(): void;
2
+ //# sourceMappingURL=index.d.ts.map
@@ -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,173 @@
1
+ declare const enum State {
2
+ OFF = 0,
3
+ WARN = 1,
4
+ ERROR = 2
5
+ }
6
+ export declare const scopes: readonly ["js", "ts", "mocha", "svelte", "html", "json", "jsonc", "jsoncc"], optional: readonly ["svelte"], tree: (readonly ["jsoncc", readonly ["jsonc"]] | readonly ["jsonc", readonly ["json"]] | readonly ["mocha", readonly ["ts"]] | readonly ["svelte", readonly ["ts"]] | readonly ["ts", readonly ["js"]])[], imports: {
7
+ plugins: {
8
+ "@stylistic": string;
9
+ "@typescript-eslint": string;
10
+ mocha: string;
11
+ "chai-friendly": string;
12
+ "chai-expect": string;
13
+ html: string;
14
+ json: string;
15
+ jsonc: string;
16
+ };
17
+ parsers: {
18
+ ts: string;
19
+ html: string;
20
+ };
21
+ }, settings: {
22
+ ts: {
23
+ languageOptions: {
24
+ parser: "ts";
25
+ };
26
+ };
27
+ svelte: {
28
+ languageOptions: {
29
+ parser: "svelte";
30
+ };
31
+ parserOptions: {
32
+ parser: "ts";
33
+ extraFileExtensions: string[];
34
+ };
35
+ processor: string;
36
+ };
37
+ html: {
38
+ languageOptions: {
39
+ parser: "html";
40
+ };
41
+ parserOptions: {
42
+ frontmatter: boolean;
43
+ };
44
+ language: string;
45
+ };
46
+ json: {
47
+ languageOptions: {
48
+ allowTrailingCommas: boolean;
49
+ };
50
+ language: string;
51
+ };
52
+ }, configuration: {
53
+ defaults: {
54
+ files: {
55
+ js: string[];
56
+ ts: string[];
57
+ mocha: string[];
58
+ svelte: string[];
59
+ html: string[];
60
+ json: string[];
61
+ jsonc: string[];
62
+ jsoncc: string[];
63
+ };
64
+ ignores: {
65
+ "*": string[];
66
+ js: string[];
67
+ json: string[];
68
+ jsoncc: string[];
69
+ };
70
+ rules: {
71
+ js: ({
72
+ name: string;
73
+ rules: {
74
+ vanilla: State;
75
+ vanilla0: State;
76
+ vanilla1: State;
77
+ vanilla2: State;
78
+ "@stylistic/style-rule"?: never;
79
+ };
80
+ } | {
81
+ name: string;
82
+ rules: {
83
+ "@stylistic/style-rule": State;
84
+ vanilla?: never;
85
+ vanilla0?: never;
86
+ vanilla1?: never;
87
+ vanilla2?: never;
88
+ };
89
+ })[];
90
+ ts: ({
91
+ name: string;
92
+ rules: {
93
+ vanilla0: State;
94
+ "@typescript-eslint/enums"?: never;
95
+ "@typescript-eslint/destructure-expression"?: never;
96
+ "@typescript-eslint/global"?: never;
97
+ };
98
+ } | {
99
+ name: string;
100
+ rules: {
101
+ "@typescript-eslint/enums": State;
102
+ "@typescript-eslint/destructure-expression": State;
103
+ "@typescript-eslint/global": State;
104
+ vanilla0?: never;
105
+ };
106
+ })[];
107
+ mocha: ({
108
+ name: string;
109
+ rules: {
110
+ vanilla2: State;
111
+ "@typescript-eslint/global"?: never;
112
+ "mocha/test-expression"?: never;
113
+ };
114
+ } | {
115
+ name: string;
116
+ rules: {
117
+ "@typescript-eslint/global": State;
118
+ vanilla2?: never;
119
+ "mocha/test-expression"?: never;
120
+ };
121
+ } | {
122
+ name: string;
123
+ rules: {
124
+ "mocha/test-expression": State;
125
+ vanilla2?: never;
126
+ "@typescript-eslint/global"?: never;
127
+ };
128
+ })[];
129
+ svelte: ({
130
+ name: string;
131
+ rules: {
132
+ vanilla1: State;
133
+ "svelte/tags"?: never;
134
+ };
135
+ } | {
136
+ name: string;
137
+ rules: {
138
+ "svelte/tags": State;
139
+ vanilla1?: never;
140
+ };
141
+ })[];
142
+ html: {
143
+ name: string;
144
+ rules: {
145
+ "html/attribute": State;
146
+ };
147
+ }[];
148
+ json: {
149
+ name: string;
150
+ rules: {
151
+ "jsonc/property-check": State;
152
+ "jsonc/comment": readonly [State.ERROR, "never"];
153
+ "jsonc/trailing-comma": readonly [State.ERROR, "never"];
154
+ };
155
+ }[];
156
+ jsonc: {
157
+ name: string;
158
+ rules: {
159
+ "jsonc/comment": readonly [State.ERROR, "allow"];
160
+ };
161
+ }[];
162
+ jsoncc: {
163
+ name: string;
164
+ rules: {
165
+ "jsonc/trailing-comma": readonly [State.ERROR, "allow"];
166
+ };
167
+ }[];
168
+ };
169
+ };
170
+ extensions: {};
171
+ };
172
+ export {};
173
+ //# sourceMappingURL=index.input.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.input.spec.d.ts","sourceRoot":"","sources":["../../tests/index.input.spec.ts"],"names":[],"mappings":"AAAA,mBAAW,KAAK;IACd,GAAG,IAAI;IACP,IAAI,IAAI;IACR,KAAK,IAAI;CACV;AAID,eAAO,MAAM,MAAM,6EAST,EACV,QAAQ,qBAAsB,EAC9B,IAAI,qMAqBH,EACD,OAAO;;;;;;;;;;;;;;;CAeN,EACD,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+BP,EACD,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuIZ,CAAC"}
@@ -0,0 +1,214 @@
1
+ const Plugin = "MOCK_PLUGIN", Parser = (scope) => `MOCK_PARSER:${scope}`;
2
+ export const scopes = [
3
+ "js",
4
+ "ts",
5
+ "mocha",
6
+ "svelte",
7
+ "html",
8
+ "json",
9
+ "jsonc",
10
+ "jsoncc",
11
+ ], optional = ["svelte"], tree = [
12
+ [
13
+ "jsoncc",
14
+ ["jsonc"],
15
+ ],
16
+ [
17
+ "jsonc",
18
+ ["json"],
19
+ ],
20
+ [
21
+ "mocha",
22
+ ["ts"],
23
+ ],
24
+ [
25
+ "svelte",
26
+ ["ts"],
27
+ ],
28
+ [
29
+ "ts",
30
+ ["js"],
31
+ ],
32
+ ], imports = {
33
+ plugins: {
34
+ "@stylistic": Plugin,
35
+ "@typescript-eslint": Plugin,
36
+ mocha: Plugin,
37
+ "chai-friendly": Plugin,
38
+ "chai-expect": Plugin,
39
+ html: Plugin,
40
+ json: Plugin,
41
+ jsonc: Plugin,
42
+ },
43
+ parsers: {
44
+ ts: Parser("TS"),
45
+ html: Parser("HTML"),
46
+ },
47
+ }, settings = {
48
+ ts: {
49
+ languageOptions: {
50
+ parser: "ts",
51
+ },
52
+ },
53
+ svelte: {
54
+ languageOptions: {
55
+ parser: "svelte",
56
+ },
57
+ parserOptions: {
58
+ parser: "ts",
59
+ extraFileExtensions: [".svelte"],
60
+ },
61
+ processor: "svelte/svelte",
62
+ },
63
+ html: {
64
+ languageOptions: {
65
+ parser: "html",
66
+ },
67
+ parserOptions: {
68
+ frontmatter: true,
69
+ },
70
+ language: "html/html",
71
+ },
72
+ json: {
73
+ languageOptions: {
74
+ allowTrailingCommas: true,
75
+ },
76
+ language: "json/jsonc",
77
+ },
78
+ }, configuration = {
79
+ defaults: {
80
+ files: {
81
+ js: ["default.js"],
82
+ ts: ["default.ts"],
83
+ mocha: ["default.mocha"],
84
+ svelte: ["default.svelte"],
85
+ html: ["default.html"],
86
+ json: ["default.json"],
87
+ jsonc: ["default.jsonc"],
88
+ jsoncc: ["default-comma.jsonc"],
89
+ },
90
+ ignores: {
91
+ "*": ["ignore/default.*"],
92
+ js: ["ignore/default.js"],
93
+ json: ["ignore/default.json"],
94
+ jsoncc: ["ignore/default-comma.jsonc"],
95
+ },
96
+ rules: {
97
+ js: [
98
+ {
99
+ name: "enable",
100
+ rules: {
101
+ vanilla: 2,
102
+ vanilla0: 2,
103
+ vanilla1: 2,
104
+ vanilla2: 2,
105
+ },
106
+ },
107
+ {
108
+ name: "enable/stylistic",
109
+ rules: {
110
+ "@stylistic/style-rule": 2,
111
+ },
112
+ },
113
+ ],
114
+ ts: [
115
+ {
116
+ name: "disable",
117
+ rules: {
118
+ vanilla0: 0,
119
+ },
120
+ },
121
+ {
122
+ name: "enable/extension",
123
+ rules: {
124
+ "@typescript-eslint/enums": 2,
125
+ "@typescript-eslint/destructure-expression": 2,
126
+ "@typescript-eslint/global": 2,
127
+ },
128
+ },
129
+ ],
130
+ mocha: [
131
+ {
132
+ name: "disable",
133
+ rules: {
134
+ vanilla2: 0,
135
+ },
136
+ },
137
+ {
138
+ name: "disable/ts",
139
+ rules: {
140
+ "@typescript-eslint/global": 2,
141
+ },
142
+ },
143
+ {
144
+ name: "enable",
145
+ rules: {
146
+ "mocha/test-expression": 2,
147
+ },
148
+ },
149
+ ],
150
+ svelte: [
151
+ {
152
+ name: "disable",
153
+ rules: {
154
+ vanilla1: 0,
155
+ },
156
+ },
157
+ {
158
+ name: "enable-extension",
159
+ rules: {
160
+ "svelte/tags": 2,
161
+ },
162
+ },
163
+ ],
164
+ html: [
165
+ {
166
+ name: "enable",
167
+ rules: {
168
+ "html/attribute": 2,
169
+ },
170
+ },
171
+ ],
172
+ json: [
173
+ {
174
+ name: "enable",
175
+ rules: {
176
+ "jsonc/property-check": 2,
177
+ "jsonc/comment": [
178
+ 2,
179
+ "never",
180
+ ],
181
+ "jsonc/trailing-comma": [
182
+ 2,
183
+ "never",
184
+ ],
185
+ },
186
+ },
187
+ ],
188
+ jsonc: [
189
+ {
190
+ name: "override-comment",
191
+ rules: {
192
+ "jsonc/comment": [
193
+ 2,
194
+ "allow",
195
+ ],
196
+ },
197
+ },
198
+ ],
199
+ jsoncc: [
200
+ {
201
+ name: "override-comma",
202
+ rules: {
203
+ "jsonc/trailing-comma": [
204
+ 2,
205
+ "allow",
206
+ ],
207
+ },
208
+ },
209
+ ],
210
+ },
211
+ },
212
+ extensions: {},
213
+ };
214
+ //# sourceMappingURL=index.input.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.input.spec.js","sourceRoot":"","sources":["../../tests/index.input.spec.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,GAAG,aAAa,EAC5B,MAAM,GAAG,CAAC,KAAa,EAAE,EAAE,CAAC,eAAe,KAAK,EAAE,CAAC;AAEnD,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,IAAI;IACJ,IAAI;IACJ,OAAO;IACP,QAAQ;IACR,MAAM;IACN,MAAM;IACN,OAAO;IACP,QAAQ;CACA,EACV,QAAQ,GAAG,CAAC,QAAQ,CAAU,EAC9B,IAAI,GAAG;IACL;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,EACD,OAAO,GAAG;IACR,OAAO,EAAE;QACP,YAAY,EAAE,MAAM;QACpB,oBAAoB,EAAE,MAAM;QAC5B,KAAK,EAAE,MAAM;QACb,eAAe,EAAE,MAAM;QACvB,aAAa,EAAE,MAAM;QACrB,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE,MAAM;KACd;IACD,OAAO,EAAE;QACP,EAAE,EAAE,MAAM,CAAC,IAAI,CAAC;QAChB,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC;KACrB;CACF,EACD,QAAQ,GAAG;IACT,EAAE,EAAE;QACF,eAAe,EAAE;YACf,MAAM,EAAE,IAAa;SACtB;KACF;IACD,MAAM,EAAE;QACN,eAAe,EAAE;YACf,MAAM,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@
1
+ export function mochaGlobalSetup() {
2
+ try {
3
+ }
4
+ catch (error) {
5
+ throw Error("Failed to hook up Mocha", { cause: error });
6
+ }
7
+ }
8
+ //# sourceMappingURL=index.js.map
@@ -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,2 @@
1
+ import "chai/register-should.js";
2
+ //# sourceMappingURL=index.spec.d.ts.map
@@ -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,90 @@
1
+ import "chai/register-should.js";
2
+ import Core from "../index.js";
3
+ import { scopes, optional, tree, imports, settings, configuration, } from "./index.input.spec.js";
4
+ const configs = Core(scopes, optional, tree, imports, settings, configuration);
5
+ describe("Core", function () {
6
+ describe("module", function () {
7
+ it("is a function", function () {
8
+ Core
9
+ .should.be
10
+ .a("function");
11
+ });
12
+ });
13
+ describe("output", function () {
14
+ it("is a non-empty array", function () {
15
+ configs
16
+ .should.be
17
+ .an("array")
18
+ .not.empty;
19
+ });
20
+ it(`length >= (global/ignores + ${scopes.length} scopes = ${scopes.length + 1}) [Actual: ${configs.length}]`, function () {
21
+ configs
22
+ .should.have
23
+ .lengthOf.above(scopes.length + 1);
24
+ });
25
+ it("of config objects", function () {
26
+ for (const config of configs)
27
+ config
28
+ .should.be
29
+ .an("object")
30
+ .includes
31
+ .any
32
+ .keys("plugins", "files", "ignores", "rules");
33
+ });
34
+ it("with valid plugins", function () {
35
+ for (const config of configs)
36
+ if ("plugins" in config)
37
+ config.plugins
38
+ .should.be
39
+ .an("object");
40
+ });
41
+ it("or valid files", function () {
42
+ for (const config of configs)
43
+ if ("files" in config)
44
+ config
45
+ .files
46
+ .should.be
47
+ .an("array")
48
+ .not.empty;
49
+ });
50
+ it("or valid ignores", function () {
51
+ for (const config of configs)
52
+ if ("ignores" in config) {
53
+ config
54
+ .ignores
55
+ .should.be
56
+ .an("array");
57
+ for (const pattern of config.ignores)
58
+ pattern
59
+ .should.be
60
+ .a("string")
61
+ .not.empty;
62
+ }
63
+ });
64
+ it("or valid rules", function () {
65
+ for (const config of configs)
66
+ if ("rules" in config) {
67
+ config
68
+ .rules
69
+ .should.be
70
+ .an("object")
71
+ .not.empty;
72
+ for (const rule of Object.keys(config.rules)) {
73
+ rule
74
+ .should
75
+ .be
76
+ .a("string");
77
+ if (typeof config.rules[rule] !== "number")
78
+ config.rules[rule]
79
+ .should
80
+ .be
81
+ .an("array")
82
+ .with
83
+ .property("0")
84
+ .a("number");
85
+ }
86
+ }
87
+ });
88
+ });
89
+ });
90
+ //# 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,IAAI,MAAM,IAAI,CAAC;AACtB,OAAO,EACL,MAAM,EACN,QAAQ,EACR,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,aAAa,GACd,MAAM,oBAAoB,CAAC;AAE5B,MAAM,OAAO,GAAG,IAAI,CAClB,MAAM,EACN,QAAQ,EACR,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,aAAa,CACd,CAAC;AAEF,QAAQ,CACN,MAAM,EACN;IACE,QAAQ,CACN,QAAQ,EACR;QACE,EAAE,CACA,eAAe,EACf;YACE,IAAI;iBACD,MAAM,CAAC,EAAE;iBACT,CAAC,CAAC,UAAU,CAAC,CAAC;QACnB,CAAC,CACF,CAAC;IACJ,CAAC,CACF,CAAC;IACF,QAA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OAAO;yBACP,MAAM,CAAC,EAAE;yBACT,EAAE,CAAC,OAAO,CAAC,CAAC;oBAEf,KAAK,MAAM,OAAO,IAAI,MAAM,CAAC,OAAO;wBAClC,OAAO;6BACJ,MAAM,CAAC,EAAE;6BACT,CAAC,CAAC,QAAQ,CAAC;6BACX,GAAG,CAAC,KAAK,CAAC;gBACjB,CAAC;QACL,CAAC,CACF,CAAC;QACF,EAAE,CACA,gBAAgB,EAChB;YACE,KAAK,MAAM,MAAM,IAAI,OAAO;gBAC1B,IAAI,OAAO,IAAI,MAAM,EAAE,CAAC;oBACtB,MAAM;yBACH,KAAK;yBACL,MAAM,CAAC,EAAE;yBACT,EAAE,CAAC,QAAQ,CAAC;yBACZ,GAAG,CAAC,KAAK,CAAC;oBAEb,KAAK,MAAM,IAAI,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC;wBAC7C,IAAI;6BACD,MAAM;6BACN,EAAE;6BACF,CAAC,CAAC,QAAQ,CAAC,CAAC;wBAEf,IAAI,OAAO,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,QAAQ;4BACxC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAE;iCAChB,MAAM;iCACN,EAAE;iCACF,EAAE,CAAC,OAAO,CAAC;iCACX,IAAI;iCACJ,QAAQ,CAAC,GAAG,CAAC;iCACb,CAAC,CAAC,QAAQ,CAAC,CAAC;oBACnB,CAAC;gBACH,CAAC;QACL,CAAC,CACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC,CACF,CAAC"}
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
- "$pkg": "2411.4.1",
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": "@eslinted/core",
6
- "version": "29.4.2",
6
+ "version": "29.4.3",
7
7
  "repository": "github:jimmy-zhening-luo/linted-core",
8
8
  "description": "Internal core for npm package `linted`, responsible for producing an array of fully-formed ESLint configurations according to `linted` spec.",
9
9
  "keywords": [],
@@ -36,9 +36,10 @@
36
36
  "postbuild:ts": "npm run --if-present stage && ts-add-js-extension --showprogress=false --dir=dist",
37
37
  "postbuild": "npm run lint || exit 0",
38
38
  "lint": "eslint --cache --fix",
39
- "pretest": "npm run build",
39
+ "pretest": "npm run --ignore-scripts build",
40
40
  "test": "npm run --if-present test:suite",
41
- "test:suite": "tsc -b tests && ts-add-js-extension --showprogress=false --dir=dist-tests --include=dist && mocha",
41
+ "test:suite": "tsc -b tests && ts-add-js-extension --showprogress=false --dir=dist && mocha",
42
+ "posttest": "npm run postbuild",
42
43
  "prestart": "npm run build",
43
44
  "start": "npm run start:ts",
44
45
  "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
  }
@@ -1,5 +1,5 @@
1
1
  import "chai/register-should.js";
2
- import Core from "../dist";
2
+ import Core from "..";
3
3
  import {
4
4
  scopes,
5
5
  optional,
@@ -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/tsconfig.json",
9
+ "path": "../src",
10
+ },
11
+ {
12
+ "path": "../typings",
11
13
  },
12
14
  ],
13
15
  "compilerOptions": {
14
- "rootDir": ".",
15
- "outDir": "../dist-tests",
16
+ "outDir": "../dist/tests",
16
17
  },
17
18
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "display": "tsc@509.4.0",
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
- "composite": true,
41
+ // "skipLibCheck": true,
26
42
  },
27
43
  }
@@ -1,6 +1,7 @@
1
1
  {
2
- "extends": "../tsconfig.json",
3
- "include": [
4
- "**/*",
5
- ],
2
+ "extends": "../tsconfig-base.json",
3
+ "compilerOptions": {
4
+ "composite": true,
5
+ "tsBuildInfoFile": "../dist/types.tsbuildinfo",
6
+ },
6
7
  }
package/tsconfig.json DELETED
@@ -1,34 +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
- // "module": "esnext",
17
- // "moduleResolution": "bundler",
18
- "types": [
19
- "mocha",
20
- "chai",
21
- /* {CONFIGURE} */
22
- ],
23
- // "declaration": true,
24
- // "sourceMap": false,
25
- // "verbatimModuleSyntax": true,
26
- "lib": [
27
- "esnext",
28
- /* {CONFIGURE} */
29
- ],
30
- // "target": "esnext",
31
- // "composite": false,
32
- // "skipLibCheck": true,
33
- },
34
- }