Skip to content

Commit

Permalink
Merge pull request #4553 from iclanton/4530-followups
Browse files Browse the repository at this point in the history
Some follow-ups to #4530.
  • Loading branch information
iclanton committed Feb 28, 2024
2 parents a00c6fa + 1ad5b9b commit 136c0e1
Show file tree
Hide file tree
Showing 18 changed files with 89 additions and 267 deletions.
9 changes: 7 additions & 2 deletions build-tests-subspace/rush-lib-test/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
// This is a workaround for https://github.com/eslint/eslint/issues/3458
require('@rushstack/eslint-config/patch/modern-module-resolution');
require('local-node-rig/profiles/default/includes/eslint/patch/modern-module-resolution');
// This is a workaround for https://github.com/microsoft/rushstack/issues/3021
require('local-node-rig/profiles/default/includes/eslint/patch/custom-config-package-names');

module.exports = {
extends: ['@rushstack/eslint-config/profile/node'],
extends: [
'local-node-rig/profiles/default/includes/eslint/profile/node-trusted-tool',
'local-node-rig/profiles/default/includes/eslint/mixins/friendly-locals'
],
parserOptions: { tsconfigRootDir: __dirname }
};
25 changes: 0 additions & 25 deletions build-tests-subspace/rush-lib-test/config/heft.json

This file was deleted.

10 changes: 2 additions & 8 deletions build-tests-subspace/rush-lib-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,10 @@
"@rushstack/terminal": "workspace:*"
},
"devDependencies": {
"local-node-rig": "workspace:*",
"@rushstack/eslint-config": "workspace:*",
"@rushstack/heft": "workspace:*",
"@rushstack/heft-lint-plugin": "workspace:*",
"@rushstack/heft-typescript-plugin": "workspace:*",
"@types/node": "18.17.15",
"typescript": "~5.3.3"
"local-node-rig": "workspace:*"
},
"dependenciesMeta": {
"@microsoft/rush-lib": {
Expand All @@ -32,10 +29,7 @@
"@rushstack/heft": {
"injected": true
},
"@rushstack/heft-lint-plugin": {
"injected": true
},
"@rushstack/heft-typescript-plugin": {
"local-node-rig": {
"injected": true
}
}
Expand Down
2 changes: 2 additions & 0 deletions build-tests-subspace/rush-lib-test/src/start.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
// See LICENSE in the project root for license information.

/* eslint-disable no-console */

console.log('rush-lib-test loading Rush configuration...');

// Important: Since we're calling an internal API, we need to use the unbundled .d.ts files
Expand Down
17 changes: 10 additions & 7 deletions build-tests-subspace/rush-lib-test/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,23 @@

"compilerOptions": {
"outDir": "lib",
"rootDir": "src",

"module": "commonjs",
"target": "es2017",
"lib": ["es2017"],

"forceConsistentCasingInFileNames": true,
"jsx": "react",
"declaration": true,
"sourceMap": true,
"declarationMap": true,
"inlineSources": true,
"experimentalDecorators": true,
"strictNullChecks": true,
"types": ["node"],

"module": "commonjs",
"target": "es6",
"lib": ["es5", "es2015.collection", "es2015.iterable", "es2015.promise"]
"noUnusedLocals": true,
"types": ["node"]
},
"include": ["**/*.ts"],
"exclude": ["node_modules", "lib"]

"include": ["src/**/*.ts", "src/**/*.tsx"]
}
9 changes: 7 additions & 2 deletions build-tests-subspace/rush-sdk-test/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
// This is a workaround for https://github.com/eslint/eslint/issues/3458
require('@rushstack/eslint-config/patch/modern-module-resolution');
require('local-node-rig/profiles/default/includes/eslint/patch/modern-module-resolution');
// This is a workaround for https://github.com/microsoft/rushstack/issues/3021
require('local-node-rig/profiles/default/includes/eslint/patch/custom-config-package-names');

module.exports = {
extends: ['@rushstack/eslint-config/profile/node'],
extends: [
'local-node-rig/profiles/default/includes/eslint/profile/node-trusted-tool',
'local-node-rig/profiles/default/includes/eslint/mixins/friendly-locals'
],
parserOptions: { tsconfigRootDir: __dirname }
};
25 changes: 0 additions & 25 deletions build-tests-subspace/rush-sdk-test/config/heft.json

This file was deleted.

12 changes: 3 additions & 9 deletions build-tests-subspace/rush-sdk-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,11 @@
"@rushstack/rush-sdk": "workspace:*"
},
"devDependencies": {
"local-node-rig": "workspace:*",
"@microsoft/rush-lib": "workspace:*",
"@rushstack/eslint-config": "workspace:*",
"@rushstack/heft": "workspace:*",
"@rushstack/heft-lint-plugin": "workspace:*",
"@rushstack/heft-typescript-plugin": "workspace:*",
"@microsoft/rush-lib": "workspace:*",
"@types/node": "18.17.15",
"typescript": "~5.3.3"
"local-node-rig": "workspace:*"
},
"dependenciesMeta": {
"@microsoft/rush-lib": {
Expand All @@ -32,10 +29,7 @@
"@rushstack/heft": {
"injected": true
},
"@rushstack/heft-lint-plugin": {
"injected": true
},
"@rushstack/heft-typescript-plugin": {
"local-node-rig": {
"injected": true
}
}
Expand Down
2 changes: 2 additions & 0 deletions build-tests-subspace/rush-sdk-test/src/start.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
// See LICENSE in the project root for license information.

/* eslint-disable no-console */

console.log('rush-sdk-test loading Rush configuration...');

// Important: Since we're calling an internal API, we need to use the unbundled .d.ts files
Expand Down
17 changes: 10 additions & 7 deletions build-tests-subspace/rush-sdk-test/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,24 @@

"compilerOptions": {
"outDir": "lib",
"rootDir": "src",

"module": "commonjs",
"target": "es2017",
"lib": ["es2017"],

"forceConsistentCasingInFileNames": true,
"jsx": "react",
"declaration": true,
"sourceMap": true,
"declarationMap": true,
"inlineSources": true,
"experimentalDecorators": true,
"strictNullChecks": true,
"noUnusedLocals": true,
"types": ["node"],

"module": "commonjs",
"target": "es6",
"lib": ["es5", "es2015.collection", "es2015.iterable", "es2015.promise"],
"rootDir": "src",
"skipLibCheck": true
"skipLibCheck": true // There are issues with importing rush-sdk as an injected dependency
},
"include": ["src/**/*.ts"]

"include": ["src/**/*.ts", "src/**/*.tsx"]
}
9 changes: 7 additions & 2 deletions build-tests-subspace/typescript-newest-test/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
// This is a workaround for https://github.com/eslint/eslint/issues/3458
require('@rushstack/eslint-config/patch/modern-module-resolution');
require('local-node-rig/profiles/default/includes/eslint/patch/modern-module-resolution');
// This is a workaround for https://github.com/microsoft/rushstack/issues/3021
require('local-node-rig/profiles/default/includes/eslint/patch/custom-config-package-names');

module.exports = {
extends: ['@rushstack/eslint-config/profile/node'],
extends: [
'local-node-rig/profiles/default/includes/eslint/profile/node-trusted-tool',
'local-node-rig/profiles/default/includes/eslint/mixins/friendly-locals'
],
parserOptions: { tsconfigRootDir: __dirname }
};
25 changes: 0 additions & 25 deletions build-tests-subspace/typescript-newest-test/config/heft.json

This file was deleted.

14 changes: 4 additions & 10 deletions build-tests-subspace/typescript-newest-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,11 @@
"_phase:build": "heft run --only build -- --clean"
},
"devDependencies": {
"local-node-rig": "workspace:*",
"@rushstack/eslint-config": "workspace:*",
"@rushstack/heft": "workspace:*",
"@rushstack/heft-lint-plugin": "workspace:*",
"@rushstack/heft-typescript-plugin": "workspace:*",
"typescript": "~5.3.3",
"tslint": "~5.20.1",
"eslint": "~8.7.0"
"eslint": "~8.7.0",
"local-node-rig": "workspace:*",
"typescript": "~5.3.3"
},
"dependenciesMeta": {
"@rushstack/eslint-config": {
Expand All @@ -26,10 +23,7 @@
"@rushstack/heft": {
"injected": true
},
"@rushstack/heft-lint-plugin": {
"injected": true
},
"@rushstack/heft-typescript-plugin": {
"local-node-rig": {
"injected": true
}
}
Expand Down
5 changes: 3 additions & 2 deletions build-tests-subspace/typescript-newest-test/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"$schema": "http://json.schemastore.org/tsconfig",

"compilerOptions": {
"outDir": "lib",
"rootDir": "src",
Expand All @@ -19,6 +21,5 @@
"types": []
},

"include": ["src/**/*.ts", "src/**/*.tsx"],
"exclude": ["node_modules", "lib"]
"include": ["src/**/*.ts", "src/**/*.tsx"]
}
94 changes: 0 additions & 94 deletions build-tests-subspace/typescript-newest-test/tslint.json

This file was deleted.

Loading

0 comments on commit 136c0e1

Please sign in to comment.