songick-eslint-config
A base configuration for ESLinting our JavaScript projects.
Base Rules:
use strict
is not allowed, because when the app is wrapped with Babel it will have this added.debugger;
statements are errors.indent
must be 4 spaces, and indentation is enforced within switch
statements.quotes
must be single quotes, and template literals are also allowed.max-len
must be no more than 120 characterslinebreak-style
is set to unix
.
Environments
browser
and node
environments are enabled
Plugins:
Extends
We also extend from some other configurations:
plugin:jasmine/recommended
plugin:import/errors
plugin:import/warnings
Parser
babel-eslint is used as the parser.