- npm install
- eslint --init (using popular style -> choose airbnb style -> yes)
{
"eslint.autoFixOnSave": true,
"eslint.nodePath": "/usr/local/bin/node",
"eslint.workingDirectories": ["/app/project"]
}
module.exports = {
"parser": "babel-eslint",
"extends": "airbnb",
"rules": {
"react/jsx-filename-extension": ["error", {"extensions": [".js", ".jsx"]}],
"class-methods-use-this": 0,
"global-require": 0,
"react/prop-types": 0,
"max-len": ["error", {"code": 130, "tabWidth": 2}],
"semi": ["error", "never"],
"react/prefer-stateless-function": [0, { "ignorePureComponents": false }],
"react/destructuring-assignment": [0, 'always'],
"react/no-multi-comp": [0, { "ignoreStateless": false }],
"import/prefer-default-export": "off"
}
};