Skip to content

Commit

Permalink
Turn on some stricter compiler options.
Browse files Browse the repository at this point in the history
  • Loading branch information
iclanton committed May 29, 2024
1 parent 0dab699 commit 5a185aa
Show file tree
Hide file tree
Showing 24 changed files with 27 additions and 2 deletions.
1 change: 1 addition & 0 deletions apps/api-extractor/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"extends": "./node_modules/@rushstack/heft-node-rig/profiles/default/tsconfig-base.json",

"compilerOptions": {
"isolatedModules": true,
"types": ["heft-jest", "node"],
"resolveJsonModule": true
}
Expand Down
1 change: 1 addition & 0 deletions apps/heft/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"extends": "./node_modules/@rushstack/heft-node-rig/profiles/default/tsconfig-base.json",

"compilerOptions": {
"isolatedModules": true,
"types": ["heft-jest", "node"],
"lib": ["ES2020"],
"resolveJsonModule": true
Expand Down
1 change: 1 addition & 0 deletions build-tests-samples/heft-node-rig-tutorial/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "./node_modules/@rushstack/heft-node-rig/profiles/default/tsconfig-base.json",
"compilerOptions": {
"isolatedModules": true,
"types": ["heft-jest", "node"]
}
}
5 changes: 4 additions & 1 deletion build-tests/api-extractor-scenarios/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
"extends": "./node_modules/local-node-rig/profiles/default/tsconfig-base.json",
"compilerOptions": {
"strictPropertyInitialization": false,
"noImplicitAny": false
"noImplicitAny": false,
// Intentionally turn this off for this project to test a combination of `export` and `export type`
// with type-only exports
"isolatedModules": false
},
"include": ["src/**/*.ts", "typings/tsd.d.ts"]
}
1 change: 1 addition & 0 deletions eslint/eslint-patch/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "./node_modules/@rushstack/heft-node-rig/profiles/default/tsconfig-base.json",
"compilerOptions": {
"isolatedModules": true,
"types": ["node"],
"resolveJsonModule": true
}
Expand Down
1 change: 1 addition & 0 deletions eslint/eslint-plugin-packlets/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"extends": "./node_modules/@rushstack/heft-node-rig/profiles/default/tsconfig-base.json",

"compilerOptions": {
"isolatedModules": true,
"module": "Node16",
"types": ["heft-jest", "node"]
}
Expand Down
1 change: 1 addition & 0 deletions eslint/eslint-plugin-security/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"extends": "./node_modules/@rushstack/heft-node-rig/profiles/default/tsconfig-base.json",

"compilerOptions": {
"isolatedModules": true,
"module": "Node16",
"types": ["heft-jest", "node"]
}
Expand Down
1 change: 1 addition & 0 deletions eslint/eslint-plugin/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"extends": "./node_modules/@rushstack/heft-node-rig/profiles/default/tsconfig-base.json",

"compilerOptions": {
"isolatedModules": true,
"module": "Node16",
"types": ["heft-jest", "node"]
}
Expand Down
2 changes: 1 addition & 1 deletion eslint/local-eslint-config/profile/_common.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function buildRules(profile) {
radix: 'error',

// Rationale: Including the `type` annotation in the import statement for imports
// only used as types prevents the import from being omitted in the compiled output.
// only used as types prevents the import from being emitted in the compiled output.
'@typescript-eslint/consistent-type-imports': [
'warn',
{ prefer: 'type-imports', disallowTypeAnnotations: false, fixStyle: 'inline-type-imports' }
Expand Down
1 change: 1 addition & 0 deletions heft-plugins/heft-api-extractor-plugin/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"extends": "./node_modules/@rushstack/heft-node-rig/profiles/default/tsconfig-base.json",

"compilerOptions": {
"isolatedModules": true,
"types": ["node"],
"resolveJsonModule": true
}
Expand Down
1 change: 1 addition & 0 deletions heft-plugins/heft-jest-plugin/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"extends": "./node_modules/@rushstack/heft-node-rig/profiles/default/tsconfig-base.json",

"compilerOptions": {
"isolatedModules": true,
"types": ["node", "heft-jest"],
"resolveJsonModule": true
}
Expand Down
1 change: 1 addition & 0 deletions heft-plugins/heft-lint-plugin/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"extends": "./node_modules/@rushstack/heft-node-rig/profiles/default/tsconfig-base.json",

"compilerOptions": {
"isolatedModules": true,
"types": ["node"]
}
}
1 change: 1 addition & 0 deletions heft-plugins/heft-typescript-plugin/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"extends": "./node_modules/@rushstack/heft-node-rig/profiles/default/tsconfig-base.json",

"compilerOptions": {
"isolatedModules": true,
"types": ["node"],
"lib": ["ES2019"],
"resolveJsonModule": true
Expand Down
1 change: 1 addition & 0 deletions libraries/api-extractor-model/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"extends": "./node_modules/@rushstack/heft-node-rig/profiles/default/tsconfig-base.json",

"compilerOptions": {
"isolatedModules": true,
"types": ["heft-jest", "node"]
}
}
1 change: 1 addition & 0 deletions libraries/heft-config-file/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"extends": "./node_modules/@rushstack/heft-node-rig/profiles/default/tsconfig-base.json",

"compilerOptions": {
"isolatedModules": true,
"types": ["heft-jest", "node"]
}
}
1 change: 1 addition & 0 deletions libraries/node-core-library/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"extends": "./node_modules/@rushstack/heft-node-rig/profiles/default/tsconfig-base.json",

"compilerOptions": {
"isolatedModules": true,
"types": ["heft-jest", "node"]
}
}
1 change: 1 addition & 0 deletions libraries/operation-graph/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"extends": "./node_modules/@rushstack/heft-node-rig/profiles/default/tsconfig-base.json",

"compilerOptions": {
"isolatedModules": true,
"allowSyntheticDefaultImports": true,
"target": "ES2020",
"lib": ["ES2020"],
Expand Down
1 change: 1 addition & 0 deletions libraries/rig-package/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"extends": "./node_modules/@rushstack/heft-node-rig/profiles/default/tsconfig-base.json",

"compilerOptions": {
"isolatedModules": true,
"types": ["heft-jest", "node"]
}
}
1 change: 1 addition & 0 deletions libraries/terminal/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"extends": "./node_modules/@rushstack/heft-node-rig/profiles/default/tsconfig-base.json",

"compilerOptions": {
"isolatedModules": true,
"types": ["heft-jest", "node"]
}
}
1 change: 1 addition & 0 deletions libraries/tree-pattern/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"extends": "./node_modules/@rushstack/heft-node-rig/profiles/default/tsconfig-base.json",

"compilerOptions": {
"isolatedModules": true,
"types": ["heft-jest"]
}
}
1 change: 1 addition & 0 deletions libraries/ts-command-line/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"extends": "./node_modules/@rushstack/heft-node-rig/profiles/default/tsconfig-base.json",

"compilerOptions": {
"isolatedModules": true,
"types": ["heft-jest", "node"]
}
}
1 change: 1 addition & 0 deletions rigs/local-node-rig/profiles/default/tsconfig-base.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

"compilerOptions": {
"resolveJsonModule": true,
"isolatedModules": true,

"outDir": "../../../../lib",
"rootDir": "../../../../src",
Expand Down
1 change: 1 addition & 0 deletions rigs/local-web-rig/profiles/app/tsconfig-base.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

"compilerOptions": {
"resolveJsonModule": true,
"isolatedModules": true,

"target": "es2017",
"lib": ["es2017", "scripthost", "es2015.collection", "es2015.promise", "es2015.iterable", "dom"],
Expand Down
1 change: 1 addition & 0 deletions rigs/local-web-rig/profiles/library/tsconfig-base.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

"compilerOptions": {
"resolveJsonModule": true,
"isolatedModules": true,

"outDir": "../../../../lib",
"rootDir": "../../../../src",
Expand Down

0 comments on commit 5a185aa

Please sign in to comment.