Skip to content

Commit

Permalink
Update local rigs to extend the local eslint config.
Browse files Browse the repository at this point in the history
  • Loading branch information
iclanton committed Sep 26, 2023
1 parent 67fc5f8 commit 3af4a02
Show file tree
Hide file tree
Showing 174 changed files with 545 additions and 288 deletions.
9 changes: 7 additions & 2 deletions apps/api-documenter/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
// This is a workaround for https://github.com/eslint/eslint/issues/3458
require('eslint-config-local/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: ['eslint-config-local/profile/node-trusted-tool', 'eslint-config-local/mixins/friendly-locals'],
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 },

overrides: [
Expand Down
1 change: 0 additions & 1 deletion apps/api-documenter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
"resolve": "~1.22.1"
},
"devDependencies": {
"eslint-config-local": "workspace:*",
"@rushstack/heft": "workspace:*",
"local-node-rig": "workspace:*",
"@types/js-yaml": "3.12.1",
Expand Down
2 changes: 2 additions & 0 deletions apps/api-extractor/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// This is a workaround for https://github.com/eslint/eslint/issues/3458
require('eslint-config-local/patch/modern-module-resolution');
// This is a workaround for https://github.com/microsoft/rushstack/issues/3021
require('eslint-config-local/patch/custom-config-package-names');

module.exports = {
extends: ['eslint-config-local/profile/node-trusted-tool', 'eslint-config-local/mixins/friendly-locals'],
Expand Down
2 changes: 2 additions & 0 deletions apps/heft/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// This is a workaround for https://github.com/eslint/eslint/issues/3458
require('eslint-config-local/patch/modern-module-resolution');
// This is a workaround for https://github.com/microsoft/rushstack/issues/3021
require('eslint-config-local/patch/custom-config-package-names');

module.exports = {
extends: ['eslint-config-local/profile/node-trusted-tool', 'eslint-config-local/mixins/friendly-locals'],
Expand Down
9 changes: 7 additions & 2 deletions apps/lockfile-explorer-web/.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('eslint-config-local/patch/modern-module-resolution');
require('local-web-rig/profiles/app/includes/eslint/patch/modern-module-resolution');
// This is a workaround for https://github.com/microsoft/rushstack/issues/3021
require('local-web-rig/profiles/app/includes/eslint/patch/custom-config-package-names');

module.exports = {
extends: ['eslint-config-local/profile/web-app', 'eslint-config-local/mixins/react'],
extends: [
'local-web-rig/profiles/app/includes/eslint/profile/web-app',
'local-web-rig/profiles/app/includes/eslint/mixins/react'
],
parserOptions: { tsconfigRootDir: __dirname }
};
1 change: 0 additions & 1 deletion apps/lockfile-explorer-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"@rushstack/rush-themed-ui": "workspace:*"
},
"devDependencies": {
"eslint-config-local": "workspace:*",
"@rushstack/heft": "workspace:*",
"@types/react-dom": "16.9.14",
"@types/react": "16.14.23",
Expand Down
6 changes: 4 additions & 2 deletions apps/lockfile-explorer/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
// This is a workaround for https://github.com/eslint/eslint/issues/3458
require('eslint-config-local/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: ['eslint-config-local/profile/node'],
extends: ['local-node-rig/profiles/default/includes/eslint/profile/node'],
parserOptions: { tsconfigRootDir: __dirname },

overrides: [
Expand Down
1 change: 0 additions & 1 deletion apps/lockfile-explorer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
},
"devDependencies": {
"@microsoft/rush-lib": "workspace:*",
"eslint-config-local": "workspace:*",
"local-node-rig": "workspace:*",
"@rushstack/heft": "workspace:*",
"@rushstack/lockfile-explorer-web": "workspace:*",
Expand Down
9 changes: 7 additions & 2 deletions apps/rundown/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
// This is a workaround for https://github.com/eslint/eslint/issues/3458
require('eslint-config-local/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: ['eslint-config-local/profile/node-trusted-tool', 'eslint-config-local/mixins/friendly-locals'],
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 },

overrides: [
Expand Down
1 change: 0 additions & 1 deletion apps/rundown/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
"string-argv": "~0.3.1"
},
"devDependencies": {
"eslint-config-local": "workspace:*",
"@rushstack/heft": "workspace:*",
"local-node-rig": "workspace:*"
}
Expand Down
9 changes: 7 additions & 2 deletions apps/rush/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
// This is a workaround for https://github.com/eslint/eslint/issues/3458
require('eslint-config-local/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: ['eslint-config-local/profile/node-trusted-tool', 'eslint-config-local/mixins/friendly-locals'],
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 },

overrides: [
Expand Down
1 change: 0 additions & 1 deletion apps/rush/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
"semver": "~7.5.4"
},
"devDependencies": {
"eslint-config-local": "workspace:*",
"@rushstack/heft": "workspace:*",
"local-node-rig": "workspace:*",
"@rushstack/rush-amazon-s3-build-cache-plugin": "workspace:*",
Expand Down
9 changes: 7 additions & 2 deletions apps/trace-import/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
// This is a workaround for https://github.com/eslint/eslint/issues/3458
require('eslint-config-local/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: ['eslint-config-local/profile/node-trusted-tool', 'eslint-config-local/mixins/friendly-locals'],
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 },

overrides: [
Expand Down
1 change: 0 additions & 1 deletion apps/trace-import/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
"typescript": "~5.0.4"
},
"devDependencies": {
"eslint-config-local": "workspace:*",
"@rushstack/heft": "workspace:*",
"local-node-rig": "workspace:*",
"@types/resolve": "1.20.2",
Expand Down
2 changes: 2 additions & 0 deletions build-tests-samples/heft-node-basic-tutorial/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// This is a workaround for https://github.com/eslint/eslint/issues/3458
require('eslint-config-local/patch/modern-module-resolution');
// This is a workaround for https://github.com/microsoft/rushstack/issues/3021
require('eslint-config-local/patch/custom-config-package-names');

module.exports = {
extends: ['eslint-config-local/profile/node'],
Expand Down
2 changes: 2 additions & 0 deletions build-tests-samples/heft-node-jest-tutorial/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// This is a workaround for https://github.com/eslint/eslint/issues/3458
require('eslint-config-local/patch/modern-module-resolution');
// This is a workaround for https://github.com/microsoft/rushstack/issues/3021
require('eslint-config-local/patch/custom-config-package-names');

module.exports = {
extends: ['eslint-config-local/profile/node'],
Expand Down
2 changes: 2 additions & 0 deletions build-tests-samples/heft-node-rig-tutorial/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// This is a workaround for https://github.com/eslint/eslint/issues/3458
require('eslint-config-local/patch/modern-module-resolution');
// This is a workaround for https://github.com/microsoft/rushstack/issues/3021
require('eslint-config-local/patch/custom-config-package-names');

module.exports = {
extends: ['eslint-config-local/profile/node'],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// This is a workaround for https://github.com/eslint/eslint/issues/3458
require('eslint-config-local/patch/modern-module-resolution');
// This is a workaround for https://github.com/microsoft/rushstack/issues/3021
require('eslint-config-local/patch/custom-config-package-names');

module.exports = {
extends: ['eslint-config-local/profile/node'],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// This is a workaround for https://github.com/eslint/eslint/issues/3458
require('eslint-config-local/patch/modern-module-resolution');
// This is a workaround for https://github.com/microsoft/rushstack/issues/3021
require('eslint-config-local/patch/custom-config-package-names');

module.exports = {
extends: ['eslint-config-local/profile/web-app', 'eslint-config-local/mixins/react'],
Expand Down
2 changes: 2 additions & 0 deletions build-tests-samples/heft-web-rig-app-tutorial/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// This is a workaround for https://github.com/eslint/eslint/issues/3458
require('eslint-config-local/patch/modern-module-resolution');
// This is a workaround for https://github.com/microsoft/rushstack/issues/3021
require('eslint-config-local/patch/custom-config-package-names');

module.exports = {
extends: ['eslint-config-local/profile/web-app', 'eslint-config-local/mixins/react'],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// This is a workaround for https://github.com/eslint/eslint/issues/3458
require('eslint-config-local/patch/modern-module-resolution');
// This is a workaround for https://github.com/microsoft/rushstack/issues/3021
require('eslint-config-local/patch/custom-config-package-names');

module.exports = {
extends: ['eslint-config-local/profile/web-app', 'eslint-config-local/mixins/react'],
Expand Down
2 changes: 2 additions & 0 deletions build-tests-samples/heft-webpack-basic-tutorial/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// This is a workaround for https://github.com/eslint/eslint/issues/3458
require('eslint-config-local/patch/modern-module-resolution');
// This is a workaround for https://github.com/microsoft/rushstack/issues/3021
require('eslint-config-local/patch/custom-config-package-names');

module.exports = {
extends: ['eslint-config-local/profile/web-app', 'eslint-config-local/mixins/react'],
Expand Down
9 changes: 7 additions & 2 deletions build-tests/eslint-7-test/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
// This is a workaround for https://github.com/eslint/eslint/issues/3458
require('eslint-config-local/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: ['eslint-config-local/profile/node-trusted-tool', 'eslint-config-local/mixins/friendly-locals'],
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 },

overrides: [
Expand Down
1 change: 0 additions & 1 deletion build-tests/eslint-7-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"_phase:build": "heft run --only build -- --clean"
},
"devDependencies": {
"eslint-config-local": "workspace:*",
"@rushstack/heft": "workspace:*",
"local-node-rig": "workspace:*",
"@types/node": "18.17.15",
Expand Down
2 changes: 2 additions & 0 deletions build-tests/heft-example-plugin-01/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// This is a workaround for https://github.com/eslint/eslint/issues/3458
require('eslint-config-local/patch/modern-module-resolution');
// This is a workaround for https://github.com/microsoft/rushstack/issues/3021
require('eslint-config-local/patch/custom-config-package-names');

module.exports = {
extends: ['eslint-config-local/profile/node-trusted-tool', 'eslint-config-local/mixins/friendly-locals'],
Expand Down
2 changes: 2 additions & 0 deletions build-tests/heft-example-plugin-02/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// This is a workaround for https://github.com/eslint/eslint/issues/3458
require('eslint-config-local/patch/modern-module-resolution');
// This is a workaround for https://github.com/microsoft/rushstack/issues/3021
require('eslint-config-local/patch/custom-config-package-names');

module.exports = {
extends: ['eslint-config-local/profile/node-trusted-tool', 'eslint-config-local/mixins/friendly-locals'],
Expand Down
2 changes: 2 additions & 0 deletions build-tests/heft-fastify-test/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// This is a workaround for https://github.com/eslint/eslint/issues/3458
require('eslint-config-local/patch/modern-module-resolution');
// This is a workaround for https://github.com/microsoft/rushstack/issues/3021
require('eslint-config-local/patch/custom-config-package-names');

module.exports = {
extends: ['eslint-config-local/profile/node'],
Expand Down
2 changes: 2 additions & 0 deletions build-tests/heft-jest-preset-test/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// This is a workaround for https://github.com/eslint/eslint/issues/3458
require('eslint-config-local/patch/modern-module-resolution');
// This is a workaround for https://github.com/microsoft/rushstack/issues/3021
require('eslint-config-local/patch/custom-config-package-names');

module.exports = {
extends: ['eslint-config-local/profile/node'],
Expand Down
2 changes: 2 additions & 0 deletions build-tests/heft-jest-reporters-test/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// This is a workaround for https://github.com/eslint/eslint/issues/3458
require('eslint-config-local/patch/modern-module-resolution');
// This is a workaround for https://github.com/microsoft/rushstack/issues/3021
require('eslint-config-local/patch/custom-config-package-names');

module.exports = {
extends: ['eslint-config-local/profile/node'],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// This is a workaround for https://github.com/eslint/eslint/issues/3458
require('eslint-config-local/patch/modern-module-resolution');
// This is a workaround for https://github.com/microsoft/rushstack/issues/3021
require('eslint-config-local/patch/custom-config-package-names');

module.exports = {
extends: ['eslint-config-local/profile/node'],
Expand Down
2 changes: 2 additions & 0 deletions build-tests/heft-node-everything-test/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// This is a workaround for https://github.com/eslint/eslint/issues/3458
require('eslint-config-local/patch/modern-module-resolution');
// This is a workaround for https://github.com/microsoft/rushstack/issues/3021
require('eslint-config-local/patch/custom-config-package-names');

module.exports = {
extends: ['eslint-config-local/profile/node'],
Expand Down
2 changes: 2 additions & 0 deletions build-tests/heft-parameter-plugin/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// This is a workaround for https://github.com/eslint/eslint/issues/3458
require('eslint-config-local/patch/modern-module-resolution');
// This is a workaround for https://github.com/microsoft/rushstack/issues/3021
require('eslint-config-local/patch/custom-config-package-names');

module.exports = {
extends: ['eslint-config-local/profile/node-trusted-tool', 'eslint-config-local/mixins/friendly-locals'],
Expand Down
2 changes: 2 additions & 0 deletions build-tests/heft-sass-test/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// This is a workaround for https://github.com/eslint/eslint/issues/3458
require('eslint-config-local/patch/modern-module-resolution');
// This is a workaround for https://github.com/microsoft/rushstack/issues/3021
require('eslint-config-local/patch/custom-config-package-names');

module.exports = {
extends: ['eslint-config-local/profile/web-app', 'eslint-config-local/mixins/react'],
Expand Down
2 changes: 2 additions & 0 deletions build-tests/heft-typescript-composite-test/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// This is a workaround for https://github.com/eslint/eslint/issues/3458
require('eslint-config-local/patch/modern-module-resolution');
// This is a workaround for https://github.com/microsoft/rushstack/issues/3021
require('eslint-config-local/patch/custom-config-package-names');

module.exports = {
extends: ['eslint-config-local/profile/web-app'],
Expand Down
2 changes: 2 additions & 0 deletions build-tests/heft-typescript-v4-test/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// This is a workaround for https://github.com/eslint/eslint/issues/3458
require('eslint-config-local/patch/modern-module-resolution');
// This is a workaround for https://github.com/microsoft/rushstack/issues/3021
require('eslint-config-local/patch/custom-config-package-names');

module.exports = {
extends: ['eslint-config-local/profile/node'],
Expand Down
2 changes: 2 additions & 0 deletions build-tests/heft-webpack4-everything-test/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// This is a workaround for https://github.com/eslint/eslint/issues/3458
require('eslint-config-local/patch/modern-module-resolution');
// This is a workaround for https://github.com/microsoft/rushstack/issues/3021
require('eslint-config-local/patch/custom-config-package-names');

module.exports = {
extends: ['eslint-config-local/profile/web-app'],
Expand Down
2 changes: 2 additions & 0 deletions build-tests/heft-webpack5-everything-test/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// This is a workaround for https://github.com/eslint/eslint/issues/3458
require('eslint-config-local/patch/modern-module-resolution');
// This is a workaround for https://github.com/microsoft/rushstack/issues/3021
require('eslint-config-local/patch/custom-config-package-names');

module.exports = {
extends: ['eslint-config-local/profile/web-app'],
Expand Down
Loading

0 comments on commit 3af4a02

Please sign in to comment.