ra-data-feathers icon indicating copy to clipboard operation
ra-data-feathers copied to clipboard

Add Lint-staged and lint action on package.json

Open josx opened this issue 5 years ago • 0 comments

Now we already have eslint with airbnb style on code.

To improve I think would be great to include lint-staged, a lint action in script, and add on test action first the linting process.

Sample:

"scripts": {
"lint": "eslint ..."
},
"devDependencies": {
"lint-staged": "^7.2.2",
},
"gitHooks": {
    "pre-commit": "lint-staged"
  },
  "lint-staged": {
    "*.js": [
      "npm run lint",
      "git add"
    ]
  }

josx avatar Nov 14 '18 12:11 josx