Skip to content
This repository has been archived by the owner on Oct 9, 2018. It is now read-only.

RyanZim/eslint-config-ryanzim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eslint-config-ryanzim

npm npm

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