meteor ESLint Adding eslint to your Meteor project

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

Example

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": {}
}


Got any meteor Question?