amosproj / amos2022ws03-software-oscilloscope

MIT License
7 stars 2 forks source link

Feature/71 setup front end linter #97

Closed leandertolksdorf closed 1 year ago

leandertolksdorf commented 1 year ago

Done:

Please install the Prettier extension in your IDE and configure it to auto-format on every save. This will ensure a consistent formatting.

You can run the lint script manually with npm run lint

cypress[bot] commented 1 year ago



Test summary

3 0 0 0


Run details

Project sosci-frontend
Status Passed
Commit c12f13a4d0
Started Nov 24, 2022 6:25 PM
Ended Nov 24, 2022 6:26 PM
Duration 00:27 💡
OS Linux Ubuntu - 20.04
Browser Chrome 107

View run in Cypress Dashboard ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

leandertolksdorf commented 1 year ago

@motschel123 @PhlppKrmr @jandegen I updated the scripts. Now to run eslint: npm run lint || lint:fix, for prettier: npm run prettier || prettier:fix and to run everything: npm run format. The prettier-scripts also run on .svelte files. To configure VSCode to auto-format .svelte files on save, you have to add this to your settings.json:

"[svelte]": {"editor.defaultFormatter": "svelte.svelte-vscode"}