Skip to content

Add eslint#28

Merged
SamCarlberg merged 8 commits intowpilibsuite:mainfrom
SamCarlberg:eslint
Sep 24, 2024
Merged

Add eslint#28
SamCarlberg merged 8 commits intowpilibsuite:mainfrom
SamCarlberg:eslint

Conversation

@SamCarlberg
Copy link
Member

This project was in sore need of consistent styling

  • No semicolons
  • All strings must be double quoted, except for string templates and strings that would need to escape a double quote char
  • Consistent indentation levels
  • Whitespace within braces (imports, templates, object literals, etc)
  • EOL at EOF

Require double quotes, except for templates or string literals that contain a double quote char (in which case single quotes or backticks are permitted, to avoid needing to escape)

Only allow quoted property names if any property name in the object needs to be quoted (and then all properties must be quoted)
@SamCarlberg SamCarlberg merged commit b558026 into wpilibsuite:main Sep 24, 2024
@SamCarlberg SamCarlberg deleted the eslint branch September 24, 2024 03:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant