Skip to content

Commit

Permalink
feat: pre-commit & lint-staged
Browse files Browse the repository at this point in the history
  • Loading branch information
richard1015 committed Jul 13, 2020
1 parent 7778859 commit dae4464
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,17 @@
"add": "nutui-cli add",
"test": "cross-env NODE_ENV=test nyc mocha-webpack --webpack-config node_modules/@nutui/cli/dist_cli/webpack/test.config.js --require node_modules/@nutui/cli/dist_cli/test/setup.js src/packages/*/__test__/**.spec.js",
"coveralls": "cat ./coverage/lcov.info | coveralls",
"test:watch": "npm run test --watch",
"prettier:fix": "prettier --write src/**/*.{ts,js,vue,scss}"
"test:watch": "npm run test --watch"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"lint-staged": {
"*.{ts,js,vue,scss}": "prettier --write"
},
"repository": {
"type": "git",
"url": "https://github.com/jdf2e/nutui.git"
Expand Down Expand Up @@ -61,14 +64,15 @@
"vue": "^2.6.10"
},
"devDependencies": {
"@nutui/cli": "^0.3.3",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-transform-object-assign": "^7.8.3",
"@nutui/cli": "^0.3.3",
"@typescript-eslint/eslint-plugin": "^2.16.0",
"@typescript-eslint/parser": "^2.16.0",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"eslint-plugin-import": "^2.20.0",
"eslint-plugin-vue": "^6.1.2",
"lint-staged": "^10.2.11",
"stylelint-config-standard": "^19.0.0"
},
"nyc": {
Expand Down

0 comments on commit dae4464

Please sign in to comment.