Pulse7
9/6/2017 - 1:13 PM

EsLint setup

/* eslint-disable no-console */ //disable eslint for a file //eslint-disable-line no-console //disable eslint for line packages: "eslint": "3.8.1", "eslint-plugin-import": "2.0.1", "eslint-watch": "2.1.14",

"scripts": {
   "lint":"esw webpack.config.* src buildScripts --color"
}
{
  "root": true,
  "extends": [
    "eslint:recommended",
    "plugin:import/errors",
    "plugin:import/warnings"
  ],
  "parserOptions": {
    "ecmaVersion": 7,
    "sourceType": "module"
  },
  "env": {
    "browser": true,
    "node": true,
    "mocha": true
  },
  "rules": {
    "no-console":1,
    "no-debugger":0
  }
}