webarkit / ARnft

A small javascript library for WebAR with NFT
GNU Lesser General Public License v3.0
219 stars 54 forks source link

Removing Grunt and installing prettier to format the code #219

Closed kalwalt closed 3 years ago

kalwalt commented 3 years ago

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