Skip to content

Commit 95df3a7

Browse files
author
Orta Therox
authored
Merge pull request #1382 from david-fong/tsconfig-reference
Add schema link, and fix #1380 and #1381
2 parents d826594 + cd19dab commit 95df3a7

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

packages/tsconfig-reference/scripts/tsconfigRules.ts

+12-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
import { CompilerOptionName } from "../data/_types";
22

3+
/**
4+
* Changes to these rules should be reflected in the following files:
5+
* https://github.com/SchemaStore/schemastore/blob/master/src/schemas/json/tsconfig.json
6+
* https://github.com/SchemaStore/schemastore/blob/master/src/schemas/json/jsconfig.json
7+
*/
8+
39
/** Options which should never show on the references, basically anything that's for the CLI not the TSConfig */
410
export const denyList: CompilerOptionName[] = [
511
"help",
@@ -237,12 +243,15 @@ export const allowedValues = {
237243
"useFsEventsOnParentDirectory",
238244
],
239245
fallbackPolling: [
246+
"fixedPollingInterval",
247+
"priorityPollingInterval",
248+
"dynamicPriorityPolling",
249+
],
250+
watchDirectory: [
240251
"fixedPollingInterval",
241252
"dynamicPriorityPolling",
242253
"useFsEvents",
243-
"synchronousWatchDirectory",
244254
],
245-
watchDirectory: ["fixedPollingInterval", "dynamicPriorityPolling", "useFsEvents"],
246255
};
247256

248257
export const releaseToConfigsMap: { [key: string]: AnOption[] } = {
@@ -258,7 +267,6 @@ export const releaseToConfigsMap: { [key: string]: AnOption[] } = {
258267
],
259268
"3.7": [
260269
"disableSourceOfProjectReferenceRedirect",
261-
"downlevelIteration",
262270
"generateCpuProfile",
263271
"useDefineForClassFields",
264272
],
@@ -271,7 +279,7 @@ export const releaseToConfigsMap: { [key: string]: AnOption[] } = {
271279
"2.7": ["strictPropertyInitialization", "esModuleInterop"],
272280
"2.6": ["strictFunctionTypes"],
273281
"2.4": ["noStrictGenericChecks"],
274-
"2.3": ["strict", "downlevelIteration", "init"],
282+
"2.3": ["strict", "downlevelIteration", "init", "checkJs"],
275283
"2.2": ["jsx"],
276284
"2.1": ["extends", "alwaysStrict"],
277285
"2.0": [

0 commit comments

Comments
 (0)