Add script to package.json for eslint + take ts files into account with new baseline

This commit is contained in:
2024-12-11 14:24:53 +01:00
parent 22ce16ef49
commit 4cc254a3e5
5 changed files with 441 additions and 27 deletions

View File

@@ -7,8 +7,12 @@ Commands
--------
To run ESLint, you can simply use the ``eslint`` command within the chill-bundles directory.
This runs eslint **not** taking the baseline into account, thus showing all existing errors in the project.
Interesting options are:
A script was also added to package.json allowing you to execute ``yarn run eslint``.
This will run eslint, but **taking the baseline into account**, thus only alerting to newly created errors.
Interesting options that can be used in combination with eslint are:
- ``--quiet`` to only get errors and silence the warnings
- ``--fix`` to have ESLint fix what it can, automatically. This will not fix everything.