cuttle-cards/cuttle

[DevEx]: Configure eslint array-bracket-spacing and object-curly-spacing to enforce whitespace

Closed this issue · 0 comments

Improvement Summary

In order to standardize whitespace in brackets and curly braces, we should configure two eslint rules: object-curly-spacing and array-bracket-spacing to require whitespace around the contents of brackets and braces.

Detailed Description

To do this, we should set both rules to 'always'. This will require that code look like [ hasSpace ] instead of [noSpace] and { hasSpace } instead of {noSpace}. We should then format the project with npm run lint:fix to autofix this issue across the entire project.