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
12 stars 5 forks source link

Add husky/lint-staged with prettier #38

Closed vincentfretin closed 7 months ago

vincentfretin commented 7 months ago

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

vincentfretin commented 7 months ago

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

vincentfretin commented 7 months 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 7 months ago

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