Skip to content

Commit

Permalink
chore(deps): upgrade oudated deps, fixed deps version, add commitlint
Browse files Browse the repository at this point in the history
  • Loading branch information
phatpham9 committed Jun 7, 2021
1 parent 881e4dd commit 9cd5fa9
Show file tree
Hide file tree
Showing 9 changed files with 902 additions and 616 deletions.
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn commitlint --edit $1
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn lint-staged
5 changes: 0 additions & 5 deletions .huskyrc

This file was deleted.

4 changes: 0 additions & 4 deletions .lintstagedrc

This file was deleted.

1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
- [x] Standard config
- [x] TypeScript config
- [x] React config
- [x] Prettier config (Standard, TypeScript & React conflicts removed)

## Installation

Expand Down
5 changes: 1 addition & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ module.exports = {
// https://github.com/standard/eslint-config-standard-with-typescript
'standard-with-typescript',

// https://github.com/prettier/eslint-config-prettier#example-configuration
// https://github.com/prettier/eslint-config-prettier#installation
'prettier',
'prettier/@typescript-eslint',
'prettier/react',
'prettier/standard',
],
};
72 changes: 43 additions & 29 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,40 +16,54 @@
"release": "standard-version",
"release:major": "yarn release --release-as major",
"release:minor": "yarn release --release-as minor",
"release:patch": "yarn release --release-as patch"
"release:patch": "yarn release --release-as patch",
"husky": "husky",
"lint-staged": "lint-staged",
"commitlint": "commitlint"
},
"devDependencies": {
"@boringcodes/eslint-config": "^1.2.1",
"@boringcodes/prettier-config": "^1.3.1",
"@typescript-eslint/eslint-plugin": "^4.14.0",
"@typescript-eslint/parser": "^4.14.0",
"eslint": "^7.18.0",
"eslint-config-prettier": "^7.2.0",
"eslint-config-standard": "^16.0.2",
"eslint-config-standard-with-typescript": "^19.0.1",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-react": "^7.22.0",
"eslint-plugin-standard": "^5.0.0",
"husky": "^4.3.8",
"lint-staged": "^10.5.3",
"prettier": "^2.2.1",
"rimraf": "^3.0.2",
"standard-version": "^9.1.0",
"typescript": "^4.1.3"
"@boringcodes/eslint-config": "1.2.6",
"@boringcodes/prettier-config": "1.3.2",
"@commitlint/cli": "12.1.4",
"@commitlint/config-conventional": "12.1.4",
"@typescript-eslint/eslint-plugin": "4.26.0",
"@typescript-eslint/parser": "4.26.0",
"eslint": "7.28.0",
"eslint-config-prettier": "8.3.0",
"eslint-config-standard": "16.0.3",
"eslint-config-standard-with-typescript": "20.0.0",
"eslint-plugin-import": "2.23.4",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-promise": "5.1.0",
"eslint-plugin-react": "7.24.0",
"eslint-plugin-standard": "5.0.0",
"husky": "6.0.0",
"lint-staged": "11.0.0",
"prettier": "2.3.1",
"rimraf": "3.0.2",
"standard-version": "9.3.0",
"typescript": "4.3.2"
},
"peerDependencies": {
"@typescript-eslint/eslint-plugin": "^4.12.0",
"@typescript-eslint/parser": "^4.12.0",
"eslint": "^7.17.0",
"eslint-config-prettier": "^7.1.0",
"eslint-config-standard-with-typescript": "^19.0.1",
"eslint-plugin-import": "^2.22.1",
"@typescript-eslint/eslint-plugin": "^4.26.0",
"@typescript-eslint/parser": "^4.26.0",
"eslint": "^7.28.0",
"eslint-config-prettier": "^8.3.0",
"eslint-config-standard-with-typescript": "^20.0.0",
"eslint-plugin-import": "^2.23.4",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-react": "^7.22.0",
"eslint-plugin-promise": "^5.1.0",
"eslint-plugin-react": "^7.24.0",
"eslint-plugin-standard": "^5.0.0",
"typescript": "^4.1.3"
"typescript": "^4.3.2"
},
"lint-staged": {
"*.{js,json,md,yml}": "yarn format",
"*.js": "yarn lint"
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
}
}
Loading

0 comments on commit 9cd5fa9

Please sign in to comment.