The HoundCI configuration repository for Vylpes' JS projects.
This repository contains configuration files for HoundCI. The aim is to help enforce a specific styling across all of my repos. When you create a Pull Request for one of my projects Hound will check your code changes and check to see if your code abides by these styling rules.
Think a styling rule should be changed or added? Create the pull request here with the changes and I will review them!
ESLint Documentation for the rules can be found here.
Last Updated: 22nd October 2020
- Added "prefer-template"
- Added "comma-style" to be "last"
Variable names should use camelCase
, rather than under_scores
.
Braces should abide to "the one true brace style" (1tbs). Braces should be on the same line.
Commas should never dangle. There should not be a comma after the last item in a list.
There should not be a space before a comma but a space after it.
If a list goes across multiple lines, the comma should be the last character on the first line rather than the first character on the next line.
The bodies of arrow functions should only use braces {}
when required.
The parameters of arrow functions should only use brackets ()
when required.
There should be spacing either side of the arrow in the arrow functions.
var
shouldn't be used. Use let
or const
instead.
Strings should use templaye literals instead of String Concatenation.