You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-13Lines changed: 13 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -190,10 +190,12 @@ Each [Tool](#tools) can have its own setup requirements. Please see each tool's
190
190
|`yarn start:<dev>`| Serve dev mode build with dev's personal config |
191
191
|`yarn build`| Build dev mode build with the default config and outputs static files in /builds |
192
192
|`yarn build:prod`| Build prod mode build with the prod config and outputs static files in /builds |
193
-
|`yarn lint`| Run tslint against ts/x files and outputs report |
194
-
|`yarn lint:fix`| Run tslint against ts/x files, fixes auto-fixable issues, and outputs report |
195
-
|`yarn eslint`| Run eslint against js/x files and outputs report |
196
-
|`yarn eslint:fix`| Run eslint against js/x files, fixes auto-fixable issues, and outputs report |
193
+
|`yarn lint:ts`| Run eslint against ts/x files and outputs report |
194
+
|`yarn lint:ts:fix`| Run eslint against ts/x files, fixes auto-fixable issues, and outputs report |
195
+
|`yarn lint:js`| Run eslint against js/x files and outputs report |
196
+
|`yarn lint:js:fix`| Run eslint against js/x files, fixes auto-fixable issues, and outputs report |
197
+
|`yarn lint`| Run eslint against js/x and ts/x files and outputs report |
198
+
|`yarn lint:fix`| Run eslint against js/x and ts/x files, fixes auto-fixable issues, and outputs report |
197
199
|`yarn test`| Run unit tests, watching for changes and re-running per your specifications |
198
200
|`yarn test:no-watch`| Run unit tests once, without watching for changes or re-running |
199
201
|`yarn cy:run`| Run e2e tests once in local command with the site is running |
@@ -370,11 +372,11 @@ The PlatformRoute model has several useful options:
370
372
## Linting
371
373
372
374
### Rules
373
-
While [TSLint](https://palantir.github.io/tslint/) is technically deprecated in favor of [Typescript ESLint](https://typescript-eslint.io/), TSLint is still far better at linting Typescript files than ESLint. So, for the time being, TSLint will be the primary linter, but ESLint remains configured for JS/X files.
374
375
375
-
The following command will install TSLint globally:
@@ -386,9 +388,7 @@ The following command will install TSLint globally:
386
388
387
389
>% yarn lint:fix
388
390
389
-
OR
390
-
391
-
>% yarn eslint:fix
391
+
See the [yarn commmands](#yarn-commands) for further options.
392
392
393
393
### VS Code
394
394
@@ -411,16 +411,16 @@ The most useful feature is to automatically apply all lint rules any time you sa
411
411
...
412
412
"editor.formatOnSave": true,
413
413
"editor.codeActionsOnSave": {
414
-
"source.fixAll.tslint": true,
414
+
"source.fixAll.eslint": true,
415
415
},
416
416
}
417
417
```
418
418
419
-
#### TSLint Plugin
419
+
#### ESLint Plugin
420
420
421
421
Created by Microsoft, this plugin will allow you to see lint errors in the Problems panel.
422
422
423
-
>**WARNING:** Other lint plugins can interfere with TSLint, so it is recommended that you uninstall/disable all other lint plugins (e.g. ESLint, Prettier, etc).
423
+
>**WARNING:** Other lint plugins can interfere with ESLint, so it is recommended that you uninstall/disable all other lint plugins (e.g. TSLint, Prettier, etc).
0 commit comments