Skip to content

Commit 0e54561

Browse files
committed
Introduce a local eslint config.
1 parent 59d815d commit 0e54561

File tree

192 files changed

+648
-435
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

192 files changed

+648
-435
lines changed

apps/api-documenter/.eslintrc.js

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
// This is a workaround for https://github.com/eslint/eslint/issues/3458
2-
require('@rushstack/eslint-config/patch/modern-module-resolution');
2+
require('eslint-config-local/patch/modern-module-resolution');
33

44
module.exports = {
5-
extends: [
6-
'@rushstack/eslint-config/profile/node-trusted-tool',
7-
'@rushstack/eslint-config/mixins/friendly-locals'
8-
],
5+
extends: ['eslint-config-local/profile/node-trusted-tool', 'eslint-config-local/mixins/friendly-locals'],
96
parserOptions: { tsconfigRootDir: __dirname }
107
};

apps/api-documenter/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"resolve": "~1.22.1"
3030
},
3131
"devDependencies": {
32-
"@rushstack/eslint-config": "workspace:*",
32+
"eslint-config-local": "workspace:*",
3333
"@rushstack/heft": "workspace:*",
3434
"local-node-rig": "workspace:*",
3535
"@types/js-yaml": "3.12.1",

apps/api-extractor/.eslintrc.js

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
// This is a workaround for https://github.com/eslint/eslint/issues/3458
2-
require('@rushstack/eslint-config/patch/modern-module-resolution');
2+
require('eslint-config-local/patch/modern-module-resolution');
33

44
module.exports = {
5-
extends: [
6-
'@rushstack/eslint-config/profile/node-trusted-tool',
7-
'@rushstack/eslint-config/mixins/friendly-locals'
8-
],
5+
extends: ['eslint-config-local/profile/node-trusted-tool', 'eslint-config-local/mixins/friendly-locals'],
96
parserOptions: { tsconfigRootDir: __dirname }
107
};

apps/api-extractor/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"typescript": "~5.0.4"
5252
},
5353
"devDependencies": {
54-
"@rushstack/eslint-config": "workspace:*",
54+
"eslint-config-local": "workspace:*",
5555
"@rushstack/heft": "0.59.0",
5656
"@rushstack/heft-node-rig": "2.2.23",
5757
"@types/heft-jest": "1.0.1",

apps/heft/.eslintrc.js

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
// This is a workaround for https://github.com/eslint/eslint/issues/3458
2-
require('@rushstack/eslint-config/patch/modern-module-resolution');
2+
require('eslint-config-local/patch/modern-module-resolution');
33

44
module.exports = {
5-
extends: [
6-
'@rushstack/eslint-config/profile/node-trusted-tool',
7-
'@rushstack/eslint-config/mixins/friendly-locals'
8-
],
5+
extends: ['eslint-config-local/profile/node-trusted-tool', 'eslint-config-local/mixins/friendly-locals'],
96
parserOptions: { tsconfigRootDir: __dirname }
107
};

apps/heft/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
},
5252
"devDependencies": {
5353
"@microsoft/api-extractor": "workspace:*",
54-
"@rushstack/eslint-config": "workspace:*",
54+
"eslint-config-local": "workspace:*",
5555
"@rushstack/heft": "0.59.0",
5656
"@rushstack/heft-node-rig": "2.2.23",
5757
"@types/argparse": "1.0.38",
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// This is a workaround for https://github.com/eslint/eslint/issues/3458
2-
require('@rushstack/eslint-config/patch/modern-module-resolution');
2+
require('eslint-config-local/patch/modern-module-resolution');
33

44
module.exports = {
5-
extends: ['@rushstack/eslint-config/profile/web-app', '@rushstack/eslint-config/mixins/react'],
5+
extends: ['eslint-config-local/profile/web-app', 'eslint-config-local/mixins/react'],
66
parserOptions: { tsconfigRootDir: __dirname }
77
};

apps/lockfile-explorer-web/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"@rushstack/rush-themed-ui": "workspace:*"
2323
},
2424
"devDependencies": {
25-
"@rushstack/eslint-config": "workspace:*",
25+
"eslint-config-local": "workspace:*",
2626
"@rushstack/heft": "workspace:*",
2727
"@types/react-dom": "16.9.14",
2828
"@types/react": "16.14.23",

apps/lockfile-explorer/.eslintrc.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// This is a workaround for https://github.com/eslint/eslint/issues/3458
2-
require('@rushstack/eslint-config/patch/modern-module-resolution');
2+
require('eslint-config-local/patch/modern-module-resolution');
33

44
module.exports = {
5-
extends: ['@rushstack/eslint-config/profile/node'],
5+
extends: ['eslint-config-local/profile/node'],
66
parserOptions: { tsconfigRootDir: __dirname }
77
};

apps/lockfile-explorer/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
},
3939
"devDependencies": {
4040
"@microsoft/rush-lib": "workspace:*",
41-
"@rushstack/eslint-config": "workspace:*",
41+
"eslint-config-local": "workspace:*",
4242
"local-node-rig": "workspace:*",
4343
"@rushstack/heft": "workspace:*",
4444
"@rushstack/lockfile-explorer-web": "workspace:*",

apps/rundown/.eslintrc.js

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
// This is a workaround for https://github.com/eslint/eslint/issues/3458
2-
require('@rushstack/eslint-config/patch/modern-module-resolution');
2+
require('eslint-config-local/patch/modern-module-resolution');
33

44
module.exports = {
5-
extends: [
6-
'@rushstack/eslint-config/profile/node-trusted-tool',
7-
'@rushstack/eslint-config/mixins/friendly-locals'
8-
],
5+
extends: ['eslint-config-local/profile/node-trusted-tool', 'eslint-config-local/mixins/friendly-locals'],
96
parserOptions: { tsconfigRootDir: __dirname }
107
};

apps/rundown/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"string-argv": "~0.3.1"
2727
},
2828
"devDependencies": {
29-
"@rushstack/eslint-config": "workspace:*",
29+
"eslint-config-local": "workspace:*",
3030
"@rushstack/heft": "workspace:*",
3131
"local-node-rig": "workspace:*"
3232
}

apps/rush/.eslintrc.js

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
// This is a workaround for https://github.com/eslint/eslint/issues/3458
2-
require('@rushstack/eslint-config/patch/modern-module-resolution');
2+
require('eslint-config-local/patch/modern-module-resolution');
33

44
module.exports = {
5-
extends: [
6-
'@rushstack/eslint-config/profile/node-trusted-tool',
7-
'@rushstack/eslint-config/mixins/friendly-locals'
8-
],
5+
extends: ['eslint-config-local/profile/node-trusted-tool', 'eslint-config-local/mixins/friendly-locals'],
96
parserOptions: { tsconfigRootDir: __dirname }
107
};

apps/rush/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"semver": "~7.5.4"
4343
},
4444
"devDependencies": {
45-
"@rushstack/eslint-config": "workspace:*",
45+
"eslint-config-local": "workspace:*",
4646
"@rushstack/heft": "workspace:*",
4747
"local-node-rig": "workspace:*",
4848
"@rushstack/rush-amazon-s3-build-cache-plugin": "workspace:*",

apps/trace-import/.eslintrc.js

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
// This is a workaround for https://github.com/eslint/eslint/issues/3458
2-
require('@rushstack/eslint-config/patch/modern-module-resolution');
2+
require('eslint-config-local/patch/modern-module-resolution');
33

44
module.exports = {
5-
extends: [
6-
'@rushstack/eslint-config/profile/node-trusted-tool',
7-
'@rushstack/eslint-config/mixins/friendly-locals'
8-
],
5+
extends: ['eslint-config-local/profile/node-trusted-tool', 'eslint-config-local/mixins/friendly-locals'],
96
parserOptions: { tsconfigRootDir: __dirname }
107
};

apps/trace-import/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"typescript": "~5.0.4"
2727
},
2828
"devDependencies": {
29-
"@rushstack/eslint-config": "workspace:*",
29+
"eslint-config-local": "workspace:*",
3030
"@rushstack/heft": "workspace:*",
3131
"local-node-rig": "workspace:*",
3232
"@types/resolve": "1.20.2",
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// This is a workaround for https://github.com/eslint/eslint/issues/3458
2-
require('@rushstack/eslint-config/patch/modern-module-resolution');
2+
require('eslint-config-local/patch/modern-module-resolution');
33

44
module.exports = {
5-
extends: ['@rushstack/eslint-config/profile/node'],
5+
extends: ['eslint-config-local/profile/node'],
66
parserOptions: { tsconfigRootDir: __dirname }
77
};

build-tests-samples/heft-node-basic-tutorial/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"_phase:test": "heft run --only test -- --clean"
1212
},
1313
"devDependencies": {
14-
"@rushstack/eslint-config": "workspace:*",
14+
"eslint-config-local": "workspace:*",
1515
"@rushstack/heft": "workspace:*",
1616
"@rushstack/heft-jest-plugin": "workspace:*",
1717
"@rushstack/heft-lint-plugin": "workspace:*",
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// This is a workaround for https://github.com/eslint/eslint/issues/3458
2-
require('@rushstack/eslint-config/patch/modern-module-resolution');
2+
require('eslint-config-local/patch/modern-module-resolution');
33

44
module.exports = {
5-
extends: ['@rushstack/eslint-config/profile/node'],
5+
extends: ['eslint-config-local/profile/node'],
66
parserOptions: { tsconfigRootDir: __dirname }
77
};

build-tests-samples/heft-node-jest-tutorial/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"_phase:test": "heft run --only test -- --clean"
1111
},
1212
"devDependencies": {
13-
"@rushstack/eslint-config": "workspace:*",
13+
"eslint-config-local": "workspace:*",
1414
"@rushstack/heft": "workspace:*",
1515
"@rushstack/heft-jest-plugin": "workspace:*",
1616
"@rushstack/heft-lint-plugin": "workspace:*",
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// This is a workaround for https://github.com/eslint/eslint/issues/3458
2-
require('@rushstack/eslint-config/patch/modern-module-resolution');
2+
require('eslint-config-local/patch/modern-module-resolution');
33

44
module.exports = {
5-
extends: ['@rushstack/eslint-config/profile/node'],
5+
extends: ['eslint-config-local/profile/node'],
66
parserOptions: { tsconfigRootDir: __dirname }
77
};

build-tests-samples/heft-node-rig-tutorial/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"_phase:test": "heft run --only test -- --clean"
1212
},
1313
"devDependencies": {
14-
"@rushstack/eslint-config": "workspace:*",
14+
"eslint-config-local": "workspace:*",
1515
"@rushstack/heft": "workspace:*",
1616
"@rushstack/heft-node-rig": "workspace:*",
1717
"@types/heft-jest": "1.0.1",
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// This is a workaround for https://github.com/eslint/eslint/issues/3458
2-
require('@rushstack/eslint-config/patch/modern-module-resolution');
2+
require('eslint-config-local/patch/modern-module-resolution');
33

44
module.exports = {
5-
extends: ['@rushstack/eslint-config/profile/node'],
5+
extends: ['eslint-config-local/profile/node'],
66
parserOptions: { tsconfigRootDir: __dirname }
77
};

build-tests-samples/heft-serverless-stack-tutorial/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"_phase:test": "heft run --only test -- --clean"
1414
},
1515
"devDependencies": {
16-
"@rushstack/eslint-config": "workspace:*",
16+
"eslint-config-local": "workspace:*",
1717
"@rushstack/heft-jest-plugin": "workspace:*",
1818
"@rushstack/heft-lint-plugin": "workspace:*",
1919
"@rushstack/heft-serverless-stack-plugin": "workspace:*",
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// This is a workaround for https://github.com/eslint/eslint/issues/3458
2-
require('@rushstack/eslint-config/patch/modern-module-resolution');
2+
require('eslint-config-local/patch/modern-module-resolution');
33

44
module.exports = {
5-
extends: ['@rushstack/eslint-config/profile/web-app', '@rushstack/eslint-config/mixins/react'],
5+
extends: ['eslint-config-local/profile/web-app', 'eslint-config-local/mixins/react'],
66
parserOptions: { tsconfigRootDir: __dirname }
77
};

build-tests-samples/heft-storybook-react-tutorial/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
},
1919
"devDependencies": {
2020
"@babel/core": "~7.20.0",
21-
"@rushstack/eslint-config": "workspace:*",
21+
"eslint-config-local": "workspace:*",
2222
"@rushstack/heft-jest-plugin": "workspace:*",
2323
"@rushstack/heft-lint-plugin": "workspace:*",
2424
"@rushstack/heft-storybook-plugin": "workspace:*",
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// This is a workaround for https://github.com/eslint/eslint/issues/3458
2-
require('@rushstack/eslint-config/patch/modern-module-resolution');
2+
require('eslint-config-local/patch/modern-module-resolution');
33

44
module.exports = {
5-
extends: ['@rushstack/eslint-config/profile/web-app', '@rushstack/eslint-config/mixins/react'],
5+
extends: ['eslint-config-local/profile/web-app', 'eslint-config-local/mixins/react'],
66
parserOptions: { tsconfigRootDir: __dirname }
77
};

build-tests-samples/heft-web-rig-app-tutorial/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"tslib": "~2.3.1"
1717
},
1818
"devDependencies": {
19-
"@rushstack/eslint-config": "workspace:*",
19+
"eslint-config-local": "workspace:*",
2020
"@rushstack/heft-web-rig": "workspace:*",
2121
"@rushstack/heft": "workspace:*",
2222
"@types/react-dom": "16.9.14",
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// This is a workaround for https://github.com/eslint/eslint/issues/3458
2-
require('@rushstack/eslint-config/patch/modern-module-resolution');
2+
require('eslint-config-local/patch/modern-module-resolution');
33

44
module.exports = {
5-
extends: ['@rushstack/eslint-config/profile/web-app', '@rushstack/eslint-config/mixins/react'],
5+
extends: ['eslint-config-local/profile/web-app', 'eslint-config-local/mixins/react'],
66
parserOptions: { tsconfigRootDir: __dirname }
77
};

build-tests-samples/heft-web-rig-library-tutorial/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"tslib": "~2.3.1"
1919
},
2020
"devDependencies": {
21-
"@rushstack/eslint-config": "workspace:*",
21+
"eslint-config-local": "workspace:*",
2222
"@rushstack/heft-web-rig": "workspace:*",
2323
"@rushstack/heft": "workspace:*",
2424
"@types/react-dom": "16.9.14",
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// This is a workaround for https://github.com/eslint/eslint/issues/3458
2-
require('@rushstack/eslint-config/patch/modern-module-resolution');
2+
require('eslint-config-local/patch/modern-module-resolution');
33

44
module.exports = {
5-
extends: ['@rushstack/eslint-config/profile/web-app', '@rushstack/eslint-config/mixins/react'],
5+
extends: ['eslint-config-local/profile/web-app', 'eslint-config-local/mixins/react'],
66
parserOptions: { tsconfigRootDir: __dirname }
77
};

build-tests-samples/heft-webpack-basic-tutorial/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"tslib": "~2.3.1"
1616
},
1717
"devDependencies": {
18-
"@rushstack/eslint-config": "workspace:*",
18+
"eslint-config-local": "workspace:*",
1919
"@rushstack/heft-jest-plugin": "workspace:*",
2020
"@rushstack/heft-lint-plugin": "workspace:*",
2121
"@rushstack/heft-typescript-plugin": "workspace:*",
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// This is a workaround for https://github.com/eslint/eslint/issues/3458
2-
require('@rushstack/eslint-config/patch/modern-module-resolution');
2+
require('eslint-config-local/patch/modern-module-resolution');
33

44
module.exports = {
5-
extends: ['@rushstack/eslint-config/profile/node', '@rushstack/eslint-config/mixins/packlets'],
5+
extends: ['eslint-config-local/profile/node', 'eslint-config-local/mixins/packlets'],
66
parserOptions: { tsconfigRootDir: __dirname }
77
};

build-tests-samples/packlets-tutorial/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"_phase:build": "heft run --only build -- --clean"
1111
},
1212
"devDependencies": {
13-
"@rushstack/eslint-config": "workspace:*",
13+
"eslint-config-local": "workspace:*",
1414
"@rushstack/heft": "workspace:*",
1515
"@rushstack/heft-lint-plugin": "workspace:*",
1616
"@rushstack/heft-typescript-plugin": "workspace:*",

build-tests/eslint-7-test/.eslintrc.js

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
// This is a workaround for https://github.com/eslint/eslint/issues/3458
2-
require('@rushstack/eslint-config/patch/modern-module-resolution');
2+
require('eslint-config-local/patch/modern-module-resolution');
33

44
module.exports = {
5-
extends: [
6-
'@rushstack/eslint-config/profile/node-trusted-tool',
7-
'@rushstack/eslint-config/mixins/friendly-locals'
8-
],
5+
extends: ['eslint-config-local/profile/node-trusted-tool', 'eslint-config-local/mixins/friendly-locals'],
96
parserOptions: { tsconfigRootDir: __dirname },
107

118
overrides: [
129
/**
13-
* Override the parser from @rushstack/eslint-config. Since the config is coming
10+
* Override the parser from local-eslint-config. Since the config is coming
1411
* from the workspace instead of the external NPM package, the versions of ESLint
1512
* and TypeScript that the config consumes will be resolved from the devDependencies
1613
* of the config instead of from the eslint-7-test package. Overriding the parser

build-tests/eslint-7-test/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"_phase:build": "heft run --only build -- --clean"
1111
},
1212
"devDependencies": {
13-
"@rushstack/eslint-config": "workspace:*",
13+
"eslint-config-local": "workspace:*",
1414
"@rushstack/heft": "workspace:*",
1515
"local-node-rig": "workspace:*",
1616
"@types/node": "18.17.15",
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
// This is a workaround for https://github.com/eslint/eslint/issues/3458
2-
require('@rushstack/eslint-config/patch/modern-module-resolution');
2+
require('eslint-config-local/patch/modern-module-resolution');
33

44
module.exports = {
5-
extends: [
6-
'@rushstack/eslint-config/profile/node-trusted-tool',
7-
'@rushstack/eslint-config/mixins/friendly-locals'
8-
],
5+
extends: ['eslint-config-local/profile/node-trusted-tool', 'eslint-config-local/mixins/friendly-locals'],
96
parserOptions: { tsconfigRootDir: __dirname }
107
};

build-tests/heft-example-plugin-01/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"tapable": "1.1.3"
1515
},
1616
"devDependencies": {
17-
"@rushstack/eslint-config": "workspace:*",
17+
"eslint-config-local": "workspace:*",
1818
"@rushstack/heft": "workspace:*",
1919
"@rushstack/heft-lint-plugin": "workspace:*",
2020
"@rushstack/heft-typescript-plugin": "workspace:*",

0 commit comments

Comments
 (0)