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
We will configure ESlint to [disallow explicit any]( https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-explicit-any.md). Write the following rules to *eslint.config.mjs*:
899
901
900
902
```js
903
+
importeslintfrom'@eslint/js';
901
904
importtseslintfrom'typescript-eslint';
902
905
903
906
exportdefaulttseslint.config({
@@ -939,12 +942,18 @@ Now lint will complain if we try to define a variable of type *any*:
939
942
940
943
[@typescript-eslint](https://github.com/typescript-eslint/typescript-eslint) has a lot of TypeScript-specific ESlint rules, but you can also use all basic ESlint rules in TypeScript projects. For now, we should probably go with the recommended settings, and we will modify the rules as we go along whenever we find something we want to change the behavior of.
941
944
942
-
On top of the recommended settings, we should try to get familiar with the coding style required in this part and <i>set the semicolon at the end of each line of code to be required</i>.
945
+
On top of the recommended settings, we should try to get familiar with the coding style required in this part and <i>set the semicolon at the end of each line of code to be required</i>. For that, we should install and configure [@stylistic/eslint-plugin](https://eslint.style/packages/default):
0 commit comments