Before the next part, you must have installed the dependencies with npm install
and composer install
at the project root.
If you want to see all your issues on the Javascript code without fixing it, you can run the following command:
npm run eslint-check
If you want to fix the issues automatically, you can run the following command:
npm run eslint-fix
Note : The command npm run eslint-fix
may not fix all the issues and print them on the screen.
You'll need to fix them manually.
If you want to see all your issues on the CSS code without fixing it, you can run the following command:
npm run stylelint-check
If you want to fix the issues automatically, you can run the following command:
npm run stylelint-fix
Note : The command npm run stylelint-fix
may not fix all the issues and print them on the screen.
You'll need to fix them manually.
If you add a new CSS file that you won't modify (egg. bootstrap css file), you need to add it in the stylelint.config.mjs
configuration file in ignoreFiles[...]
.
ignoreFiles: [
"mapBuilder/www/css/fontawesome-free-web/**/*.css",
"mapBuilder/www/css/bootstrap.min.css",
"...",
],
If you want to see all your issues on the PHP code without fixing it, you can run the following command:
composer cs-check
If you want to fix the issues automatically, you can run the following command:
composer cs-fix
If you want to see all your issues on the PHP code through PHPStan, you can run the following command:
composer phpstan