webarkit / ARnft

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

Upgrading Grunt eslint and dependencies, and developing a prettier script #217

Closed kalwalt closed 2 years ago

kalwalt commented 2 years ago

The Gruntfile.js is outdated, it list yet the old js files. Need to upgrade the file list and some dependencies. I t would also fine to add a script to prettify the code.

kalwalt commented 2 years ago

Grunt has only a grunt-tslint plugin, and tslint is depreacted so i removed from the project. Instead of implement eslint or tslint equivalent, i preferred Prettifier to format the files. You have to run the script but we can automate the process. There is a git hooks as described in this Prettifier chapter, maybe itis worth trying @albjeremias ?

kalwalt commented 2 years ago

grunt plugins has no development and has some issues, i removed it and used instead prettifier. see #219 for more infos.