We'll use the popular eslint-config-airbnb
as a starter as well as Meteor specific rules using eslint-import-resolver-meteor
.
We also need to install babel-parser
to lint Meteor enabled ES7 features such as async/await.
cd my-project
npm install --save-dev eslint-config-airbnb eslint-plugin-import eslint-plugin-react eslint-plugin-jsx-a11y eslint babel-eslint eslint-import-resolver-meteor
touch .eslintrc.json
Then simply use this boilerplate .eslintrc.json
to get started, you can override the rules as you wish.
{
"parser": "babel-eslint",
"settings": {
"import/resolver": "meteor"
},
"extends": "airbnb",
"rules": {}
}