Tutorial by Examples

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-impor...
Edit your package.json to add the following script : { "scripts": { "lint": "eslint .;exit 0" } } Then run it using npm run lint We use exit 0 as a trick to gracefully terminate the script when linting fails, otherwise npm will use eslint return code an...

Page 1 of 1