Skip to content

Commit

Permalink
docs: fix tools lint
Browse files Browse the repository at this point in the history
  • Loading branch information
tmair committed Jan 3, 2024
1 parent 0743521 commit 8c05623
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion apps/rxjs.dev/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module.exports = {
{
files: ['*.ts'],
parserOptions: {
project: ['./tsconfig.json', './tests/e2e/tsconfig.json'],
project: ['./tsconfig.json', './tests/e2e/tsconfig.e2e.json'],
createDefaultProgram: true,
tsconfigRootDir: __dirname,
},
Expand Down
2 changes: 1 addition & 1 deletion apps/rxjs.dev/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"docs-test": "npx ts-node -P tsconfig.docs.json tools/transforms/test.js",
"docs-decision-tree": "ts-node -P tools/decision-tree-generator/tsconfig.json tools/decision-tree-generator/main.ts",
"firebase-utils-test": "jasmine-ts tools/firebase-test-utils/*.spec.ts",
"tools-lint": "tslint -c \"tools/tslint.json\" \"tools/firebase-test-utils/**/*.ts\"",
"tools-lint": "eslint tools/firebase-test-utils",
"tools-test": "./scripts/deploy-to-firebase.test.sh && yarn docs-test && yarn firebase-utils-test",
"preserve-and-sync": "yarn docs",
"serve-and-sync": "concurrently --kill-others \"yarn docs-watch --watch-only\" \"yarn start\"",
Expand Down
4 changes: 2 additions & 2 deletions apps/rxjs.dev/tools/firebase-test-utils/FirebaseRedirector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ export class FirebaseRedirector {
throw new Error('infinite redirect loop');
}
private doRedirect(url: string) {
for (let i = 0; i < this.redirects.length; i++) {
const newUrl = this.redirects[i].replace(url);
for (const redirect of this.redirects) {
const newUrl = redirect.replace(url);
if (newUrl !== undefined) {
return newUrl;
}
Expand Down
3 changes: 1 addition & 2 deletions apps/rxjs.dev/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@
"dist",
"node_modules",
"out-tsc",
"scripts",
"tools"
"scripts"
],
"angularCompilerOptions": {
"enableI18nLegacyMessageIdFormat": false,
Expand Down

0 comments on commit 8c05623

Please sign in to comment.