eslint-config-ryanzim
This is still a WIP. This config will probably get stricter as time goes on.
Rules
This is not a full listing of all the rules, just the more controversial parts of the config:
- Semicolons required
- 2-spaces indent
curly: multi
- Commas last
- Include a trailing comma in multiline object literals
- Use single-quotes, unless the string contains the
'
character (Template Literals allowed) - Use a separate
var
statement for each variable
This config will emit a warning when console
is used; if you are developing a command-line tool, turn this rule off.
This config uses the ES6 ESLint parser.
Licence
ISC