c-frame / aframe-gltf-model-plus

gltf-model-plus component to load glb file with hubs extensions
https://c-frame.github.io/aframe-gltf-model-plus/
Mozilla Public License 2.0
10 stars 4 forks source link

Add husky/lint-staged with prettier #38

Closed vincentfretin closed 1 month ago

vincentfretin commented 1 month ago

Add husky/lint-staged with prettier in the repo to format files on commit.

vincentfretin commented 1 month ago

And also eslint, it currently doesn't detect undefined variables like in my project, I was bit by it.

vincentfretin commented 1 month ago

I didn't add husky/lint-staged to make things simple. I just added the npm run prettier command and npm run lint command.

vincentfretin commented 1 month ago

@uhunkler be sure to have eslint and prettier addons installed in vscode.