Modify lint-staged - Run prettier and eslint only on changed files

This commit is contained in:
2019-08-10 13:46:21 +05:30
parent 6cd41bc4bd
commit 400757182f
2 changed files with 12 additions and 2 deletions
+2 -1
View File
@@ -24,7 +24,8 @@
"compile": "tsc -p tsconfig.base.json",
"docs": "npx typedoc ./src/",
"format": "prettier --write \"**/*.{js,ts,tsx}\"",
"lint": "eslint . --ext .js,.ts,.jsx,.tsx",
"_lint": "eslint --ext .js,.ts,.jsx,.tsx",
"lint": "npm run _lint -- .",
"postbundle": "del compiled && cp-cli ./index.js ./dist/index.js",
"postversion": "git push && git push --tags && npm publish",
"release": "npm version -m 'Release v%s'",