I used Grunt in the first version of ARnft but when i switched to webpack as bundler, i haven't updated and checked that part of the code. Because the project is based on the Typescript language i found difficult to set-up a linter and formatter with Grunt.
We will use instead Prettier without eslint or other type of linters.
Commands
To format the files run:
yarn format
this script will run prettier and will format the files.
Instead if you want only to check if is well formed run:
yarn format-check
Note that not only files will be formatted, see .prettignore file for the exclusions.
Linke issues
see #217
Other infos
Inlcude .prettierc.json file with some formatting customizations.
Check list
[x] adding instructions to the README file. (updated instructions for the build and other minor fixes)
Why removing Grunt
I used Grunt in the first version of ARnft but when i switched to webpack as bundler, i haven't updated and checked that part of the code. Because the project is based on the Typescript language i found difficult to set-up a linter and formatter with Grunt. We will use instead Prettier without eslint or other type of linters.
Commands
To format the files run:
yarn format
this script will run prettier and will format the files. Instead if you want only to check if is well formed run:yarn format-check
Note that not only files will be formatted, see .prettignore file for the exclusions.Linke issues
see #217
Other infos
Inlcude .prettierc.json file with some formatting customizations.
Check list