Skip to content

Commit

Permalink
Enable friendly-locals for Rush Stack projects
Browse files Browse the repository at this point in the history
  • Loading branch information
octogonz committed Sep 22, 2020
1 parent aeb3518 commit 307a496
Show file tree
Hide file tree
Showing 50 changed files with 191 additions and 50 deletions.
5 changes: 4 additions & 1 deletion apps/api-documenter/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
require('@rushstack/eslint-config/patch/modern-module-resolution');

module.exports = {
extends: ['@rushstack/eslint-config/profile/node-trusted-tool'],
extends: [
'@rushstack/eslint-config/profile/node-trusted-tool',
'@rushstack/eslint-config/mixins/friendly-locals'
],
parserOptions: { tsconfigRootDir: __dirname }
};
2 changes: 1 addition & 1 deletion apps/api-extractor-model/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
require('@rushstack/eslint-config/patch/modern-module-resolution');

module.exports = {
extends: ['@rushstack/eslint-config/profile/node'],
extends: ['@rushstack/eslint-config/profile/node', '@rushstack/eslint-config/mixins/friendly-locals'],
parserOptions: { tsconfigRootDir: __dirname },

rules: {
Expand Down
5 changes: 4 additions & 1 deletion apps/api-extractor/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
require('@rushstack/eslint-config/patch/modern-module-resolution');

module.exports = {
extends: ['@rushstack/eslint-config/profile/node-trusted-tool'],
extends: [
'@rushstack/eslint-config/profile/node-trusted-tool',
'@rushstack/eslint-config/mixins/friendly-locals'
],
parserOptions: { tsconfigRootDir: __dirname }
};
5 changes: 4 additions & 1 deletion apps/heft/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
require('@rushstack/eslint-config/patch/modern-module-resolution');

module.exports = {
extends: ['@rushstack/eslint-config/profile/node-trusted-tool'],
extends: [
'@rushstack/eslint-config/profile/node-trusted-tool',
'@rushstack/eslint-config/mixins/friendly-locals'
],
parserOptions: { tsconfigRootDir: __dirname }
};
5 changes: 4 additions & 1 deletion apps/rush-lib/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
require('@rushstack/eslint-config/patch/modern-module-resolution');

module.exports = {
extends: ['@rushstack/eslint-config/profile/node-trusted-tool'],
extends: [
'@rushstack/eslint-config/profile/node-trusted-tool',
'@rushstack/eslint-config/mixins/friendly-locals'
],
parserOptions: { tsconfigRootDir: __dirname }
};
5 changes: 4 additions & 1 deletion apps/rush/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
require('@rushstack/eslint-config/patch/modern-module-resolution');

module.exports = {
extends: ['@rushstack/eslint-config/profile/node-trusted-tool'],
extends: [
'@rushstack/eslint-config/profile/node-trusted-tool',
'@rushstack/eslint-config/mixins/friendly-locals'
],
parserOptions: { tsconfigRootDir: __dirname }
};
5 changes: 4 additions & 1 deletion build-tests/heft-action-plugin/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
require('@rushstack/eslint-config/patch/modern-module-resolution');

module.exports = {
extends: ['@rushstack/eslint-config/profile/node-trusted-tool'],
extends: [
'@rushstack/eslint-config/profile/node-trusted-tool',
'@rushstack/eslint-config/mixins/friendly-locals'
],
parserOptions: { tsconfigRootDir: __dirname }
};
5 changes: 4 additions & 1 deletion build-tests/heft-example-plugin-01/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
require('@rushstack/eslint-config/patch/modern-module-resolution');

module.exports = {
extends: ['@rushstack/eslint-config/profile/node-trusted-tool'],
extends: [
'@rushstack/eslint-config/profile/node-trusted-tool',
'@rushstack/eslint-config/mixins/friendly-locals'
],
parserOptions: { tsconfigRootDir: __dirname }
};
5 changes: 4 additions & 1 deletion build-tests/heft-example-plugin-02/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
require('@rushstack/eslint-config/patch/modern-module-resolution');

module.exports = {
extends: ['@rushstack/eslint-config/profile/node-trusted-tool'],
extends: [
'@rushstack/eslint-config/profile/node-trusted-tool',
'@rushstack/eslint-config/mixins/friendly-locals'
],
parserOptions: { tsconfigRootDir: __dirname }
};
2 changes: 1 addition & 1 deletion build-tests/node-library-build-eslint-test/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
require('@rushstack/eslint-config/patch/modern-module-resolution');

module.exports = {
extends: ['@rushstack/eslint-config/profile/node'],
extends: ['@rushstack/eslint-config/profile/node', '@rushstack/eslint-config/mixins/friendly-locals'],
parserOptions: { tsconfigRootDir: __dirname }
};
5 changes: 4 additions & 1 deletion core-build/gulp-core-build-mocha/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
require('@rushstack/eslint-config/patch/modern-module-resolution');

module.exports = {
extends: ['@rushstack/eslint-config/profile/node-trusted-tool'],
extends: [
'@rushstack/eslint-config/profile/node-trusted-tool',
'@rushstack/eslint-config/mixins/friendly-locals'
],
parserOptions: { tsconfigRootDir: __dirname }
};
5 changes: 4 additions & 1 deletion core-build/gulp-core-build-sass/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
require('@rushstack/eslint-config/patch/modern-module-resolution');

module.exports = {
extends: ['@rushstack/eslint-config/profile/node-trusted-tool'],
extends: [
'@rushstack/eslint-config/profile/node-trusted-tool',
'@rushstack/eslint-config/mixins/friendly-locals'
],
parserOptions: { tsconfigRootDir: __dirname }
};
5 changes: 4 additions & 1 deletion core-build/gulp-core-build-serve/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
require('@rushstack/eslint-config/patch/modern-module-resolution');

module.exports = {
extends: ['@rushstack/eslint-config/profile/node-trusted-tool'],
extends: [
'@rushstack/eslint-config/profile/node-trusted-tool',
'@rushstack/eslint-config/mixins/friendly-locals'
],
parserOptions: { tsconfigRootDir: __dirname }
};
5 changes: 4 additions & 1 deletion core-build/gulp-core-build-typescript/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
require('@rushstack/eslint-config/patch/modern-module-resolution');

module.exports = {
extends: ['@rushstack/eslint-config/profile/node-trusted-tool'],
extends: [
'@rushstack/eslint-config/profile/node-trusted-tool',
'@rushstack/eslint-config/mixins/friendly-locals'
],
parserOptions: { tsconfigRootDir: __dirname }
};
5 changes: 4 additions & 1 deletion core-build/gulp-core-build-webpack/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
require('@rushstack/eslint-config/patch/modern-module-resolution');

module.exports = {
extends: ['@rushstack/eslint-config/profile/node-trusted-tool'],
extends: [
'@rushstack/eslint-config/profile/node-trusted-tool',
'@rushstack/eslint-config/mixins/friendly-locals'
],
parserOptions: { tsconfigRootDir: __dirname }
};
5 changes: 4 additions & 1 deletion core-build/gulp-core-build/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
require('@rushstack/eslint-config/patch/modern-module-resolution');

module.exports = {
extends: ['@rushstack/eslint-config/profile/node-trusted-tool'],
extends: [
'@rushstack/eslint-config/profile/node-trusted-tool',
'@rushstack/eslint-config/mixins/friendly-locals'
],
parserOptions: { tsconfigRootDir: __dirname },
rules: {
// This predates the new ESLint ruleset; not worth fixing
Expand Down
5 changes: 4 additions & 1 deletion core-build/node-library-build/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
require('@rushstack/eslint-config/patch/modern-module-resolution');

module.exports = {
extends: ['@rushstack/eslint-config/profile/node-trusted-tool'],
extends: [
'@rushstack/eslint-config/profile/node-trusted-tool',
'@rushstack/eslint-config/mixins/friendly-locals'
],
parserOptions: { tsconfigRootDir: __dirname }
};
5 changes: 4 additions & 1 deletion core-build/web-library-build/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
require('@rushstack/eslint-config/patch/modern-module-resolution');

module.exports = {
extends: ['@rushstack/eslint-config/profile/node-trusted-tool'],
extends: [
'@rushstack/eslint-config/profile/node-trusted-tool',
'@rushstack/eslint-config/mixins/friendly-locals'
],
parserOptions: { tsconfigRootDir: __dirname }
};
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
require('@rushstack/eslint-config/patch/modern-module-resolution');

module.exports = {
extends: ['@rushstack/eslint-config/profile/node-trusted-tool', '@rushstack/eslint-config/mixins/tsdoc'],
extends: [
'@rushstack/eslint-config/profile/node-trusted-tool',
'@rushstack/eslint-config/mixins/friendly-locals',
'@rushstack/eslint-config/mixins/tsdoc'
],
parserOptions: { tsconfigRootDir: __dirname }
};
5 changes: 4 additions & 1 deletion libraries/debug-certificate-manager/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
require('@rushstack/eslint-config/patch/modern-module-resolution');

module.exports = {
extends: ['@rushstack/eslint-config/profile/node-trusted-tool'],
extends: [
'@rushstack/eslint-config/profile/node-trusted-tool',
'@rushstack/eslint-config/mixins/friendly-locals'
],
parserOptions: { tsconfigRootDir: __dirname }
};
5 changes: 4 additions & 1 deletion libraries/heft-config-file/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
require('@rushstack/eslint-config/patch/modern-module-resolution');

module.exports = {
extends: ['@rushstack/eslint-config/profile/node-trusted-tool'],
extends: [
'@rushstack/eslint-config/profile/node-trusted-tool',
'@rushstack/eslint-config/mixins/friendly-locals'
],
parserOptions: { tsconfigRootDir: __dirname }
};
2 changes: 1 addition & 1 deletion libraries/load-themed-styles/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
require('@rushstack/eslint-config/patch/modern-module-resolution');

module.exports = {
extends: ['@rushstack/eslint-config/profile/web-app'],
extends: ['@rushstack/eslint-config/profile/web-app', '@rushstack/eslint-config/mixins/friendly-locals'],
parserOptions: { tsconfigRootDir: __dirname }
};
6 changes: 5 additions & 1 deletion libraries/node-core-library/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
require('@rushstack/eslint-config/patch/modern-module-resolution');

module.exports = {
extends: ['@rushstack/eslint-config/profile/node', '@rushstack/eslint-config/mixins/tsdoc'],
extends: [
'@rushstack/eslint-config/profile/node',
'@rushstack/eslint-config/mixins/friendly-locals',
'@rushstack/eslint-config/mixins/tsdoc'
],
parserOptions: { tsconfigRootDir: __dirname }
};
5 changes: 4 additions & 1 deletion libraries/package-deps-hash/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
require('@rushstack/eslint-config/patch/modern-module-resolution');

module.exports = {
extends: ['@rushstack/eslint-config/profile/node-trusted-tool'],
extends: [
'@rushstack/eslint-config/profile/node-trusted-tool',
'@rushstack/eslint-config/mixins/friendly-locals'
],
parserOptions: { tsconfigRootDir: __dirname }
};
5 changes: 4 additions & 1 deletion libraries/rushell/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
require('@rushstack/eslint-config/patch/modern-module-resolution');

module.exports = {
extends: ['@rushstack/eslint-config/profile/node-trusted-tool'],
extends: [
'@rushstack/eslint-config/profile/node-trusted-tool',
'@rushstack/eslint-config/mixins/friendly-locals'
],
parserOptions: { tsconfigRootDir: __dirname }
};
2 changes: 1 addition & 1 deletion libraries/stream-collator/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
require('@rushstack/eslint-config/patch/modern-module-resolution');

module.exports = {
extends: ['@rushstack/eslint-config/profile/node'],
extends: ['@rushstack/eslint-config/profile/node', '@rushstack/eslint-config/mixins/friendly-locals'],
parserOptions: { tsconfigRootDir: __dirname }
};
6 changes: 5 additions & 1 deletion libraries/terminal/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
require('@rushstack/eslint-config/patch/modern-module-resolution');

module.exports = {
extends: ['@rushstack/eslint-config/profile/node', '@rushstack/eslint-config/mixins/tsdoc'],
extends: [
'@rushstack/eslint-config/profile/node',
'@rushstack/eslint-config/mixins/friendly-locals',
'@rushstack/eslint-config/mixins/tsdoc'
],
parserOptions: { tsconfigRootDir: __dirname }
};
5 changes: 4 additions & 1 deletion libraries/ts-command-line/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
require('@rushstack/eslint-config/patch/modern-module-resolution');

module.exports = {
extends: ['@rushstack/eslint-config/profile/node-trusted-tool'],
extends: [
'@rushstack/eslint-config/profile/node-trusted-tool',
'@rushstack/eslint-config/mixins/friendly-locals'
],
parserOptions: { tsconfigRootDir: __dirname }
};
5 changes: 4 additions & 1 deletion libraries/typings-generator/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
require('@rushstack/eslint-config/patch/modern-module-resolution');

module.exports = {
extends: ['@rushstack/eslint-config/profile/node-trusted-tool'],
extends: [
'@rushstack/eslint-config/profile/node-trusted-tool',
'@rushstack/eslint-config/mixins/friendly-locals'
],
parserOptions: { tsconfigRootDir: __dirname }
};
5 changes: 4 additions & 1 deletion repo-scripts/doc-plugin-rush-stack/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
require('@rushstack/eslint-config/patch/modern-module-resolution');

module.exports = {
extends: ['@rushstack/eslint-config/profile/node-trusted-tool'],
extends: [
'@rushstack/eslint-config/profile/node-trusted-tool',
'@rushstack/eslint-config/mixins/friendly-locals'
],
parserOptions: { tsconfigRootDir: __dirname }
};
5 changes: 4 additions & 1 deletion repo-scripts/repo-toolbox/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
require('@rushstack/eslint-config/patch/modern-module-resolution');

module.exports = {
extends: ['@rushstack/eslint-config/profile/node-trusted-tool'],
extends: [
'@rushstack/eslint-config/profile/node-trusted-tool',
'@rushstack/eslint-config/mixins/friendly-locals'
],
parserOptions: { tsconfigRootDir: __dirname }
};
5 changes: 4 additions & 1 deletion stack/rush-stack-compiler-2.4/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
require('@rushstack/eslint-config/patch/modern-module-resolution');

module.exports = {
extends: ['@rushstack/eslint-config/profile/node-trusted-tool'],
extends: [
'@rushstack/eslint-config/profile/node-trusted-tool',
'@rushstack/eslint-config/mixins/friendly-locals'
],
parserOptions: { tsconfigRootDir: __dirname }
};
5 changes: 4 additions & 1 deletion stack/rush-stack-compiler-2.7/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
require('@rushstack/eslint-config/patch/modern-module-resolution');

module.exports = {
extends: ['@rushstack/eslint-config/profile/node-trusted-tool'],
extends: [
'@rushstack/eslint-config/profile/node-trusted-tool',
'@rushstack/eslint-config/mixins/friendly-locals'
],
parserOptions: { tsconfigRootDir: __dirname }
};
5 changes: 4 additions & 1 deletion stack/rush-stack-compiler-2.8/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
require('@rushstack/eslint-config/patch/modern-module-resolution');

module.exports = {
extends: ['@rushstack/eslint-config/profile/node-trusted-tool'],
extends: [
'@rushstack/eslint-config/profile/node-trusted-tool',
'@rushstack/eslint-config/mixins/friendly-locals'
],
parserOptions: { tsconfigRootDir: __dirname }
};
5 changes: 4 additions & 1 deletion stack/rush-stack-compiler-2.9/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
require('@rushstack/eslint-config/patch/modern-module-resolution');

module.exports = {
extends: ['@rushstack/eslint-config/profile/node-trusted-tool'],
extends: [
'@rushstack/eslint-config/profile/node-trusted-tool',
'@rushstack/eslint-config/mixins/friendly-locals'
],
parserOptions: { tsconfigRootDir: __dirname }
};
5 changes: 4 additions & 1 deletion stack/rush-stack-compiler-3.0/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
require('@rushstack/eslint-config/patch/modern-module-resolution');

module.exports = {
extends: ['@rushstack/eslint-config/profile/node-trusted-tool'],
extends: [
'@rushstack/eslint-config/profile/node-trusted-tool',
'@rushstack/eslint-config/mixins/friendly-locals'
],
parserOptions: { tsconfigRootDir: __dirname }
};
5 changes: 4 additions & 1 deletion stack/rush-stack-compiler-3.1/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
require('@rushstack/eslint-config/patch/modern-module-resolution');

module.exports = {
extends: ['@rushstack/eslint-config/profile/node-trusted-tool'],
extends: [
'@rushstack/eslint-config/profile/node-trusted-tool',
'@rushstack/eslint-config/mixins/friendly-locals'
],
parserOptions: { tsconfigRootDir: __dirname }
};
Loading

0 comments on commit 307a496

Please sign in to comment.