Last active
September 9, 2017 11:45
-
-
Save Arfey/989e4a239460cbf95ba61ec32f14314f to your computer and use it in GitHub Desktop.
example.json
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
{ | |
"lint-staged": { | |
"*.{js,jsx}": [ | |
"eslint --fix", | |
"git add" | |
], | |
"*.{json,graphql}": [ | |
"prettier --write", | |
"git add" | |
], | |
"*.{css,less,scss,sss}": [ | |
"stylelint --fix", | |
"git add" | |
], | |
"*": [ | |
"cat" | |
] | |
}, | |
"scripts": { | |
"precommit": "lint-staged", | |
"lint-js": "eslint --ignore-path .gitignore --ignore-pattern \"!**/.*\" .", | |
"lint-css": "stylelint \"src/**/*.{css,less,scss,sss}\"", | |
"lint": "yarn run lint-js && yarn run lint-css", | |
"fix-js": "yarn run lint-js -- --fix", | |
"fix-css": "yarn run lint-css -- --fix", | |
"fix": "yarn run fix-js && yarn run fix-css", | |
"test": "jest", | |
"test-watch": "yarn run test -- --watch --notify", | |
"test-cover": "yarn run test -- --coverage", | |
"coverage": "yarn run test-cover && opn coverage/lcov-report/index.html" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment