-
-
Save MarioRinaldi/a59d25c7762b0c00df5ca3d7da4b6b8d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// package.json | |
{ | |
"devDependencies": { | |
"eslint": "4.9.0", | |
"eslint-config-airbnb-base": "9.0.0", | |
"eslint-plugin-import": "2.0.1", | |
"git-validate": "2.2.4", | |
"lint-staged": "^8.1.7", | |
"prettier-eslint-cli": "^4.7.1" | |
}, | |
"scripts": { | |
"test:unit": "mocha app/**/*.js", | |
"lint-staged": "lint-staged" // se fosse o husky não precisaria disso, dava pra chamar o cli direto | |
}, | |
"pre-commit": [ | |
"lint-staged" | |
], | |
"pre-push": [ | |
"test:unit" | |
] | |
} | |
// .lintstagedrc | |
{ | |
"*.js": [ | |
"eslint --fix", | |
"prettier-eslint --write", | |
"git add" | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment