StandardJS with ES6 features, babel, jsx, react, import checking and special rules
StandardJS with ES6 features, babel, JSX, eslint-plugin-react, eslint-plugin-import and special rules (dangling commas for multiline statements and single argument arrow functions without parens enforced).
npm install --save-dev eslint-config-touchlay
Add to your .eslintrc
:
{
"extends": "touchlay"
}
You can additionally set environments, pick some!
{
"extends": "touchlay",
"env": {
"browser": true,
"meteor": true,
"mongo": true,
"node": true,
}
}
In the editor Atom, you can install a linter as follows:
apm install linter-eslint
Restart Atom afterwards to prevent issues.