DEVxNetwork / devx.network

7 stars 4 forks source link

Switch from Tabs to Spaces #17

Open samholmes opened 2 months ago

samholmes commented 2 months ago

Tabs are goat, but unfortunately, most of the time Tabs are displayed as 4 characters in most GUIs (🤮). For this reason, I'd like to propose changing our formatting rules to 2 spaces for indentation. Ideally we can align closer if not completely with StandardJS rules: https://standardjs.com/rules

tomatrow commented 2 months ago

@samholmes Standards are goat. This we should we use prettier to enforce said rules?

samholmes commented 2 months ago

@tomatrow Yes and ESLint should enforce the rules in addition to prettier. There is eslint-config-standard-kit which needs upgrading, but it uses dependencies that configure eslint to follow Standard.js rules