Skip to content

Commit

Permalink
reconfigure sematic-release, husky and commitlint
Browse files Browse the repository at this point in the history
  • Loading branch information
xobotyi committed Nov 25, 2024
1 parent 5b4a65a commit c93e8f6
Show file tree
Hide file tree
Showing 4 changed files with 91 additions and 764 deletions.
2 changes: 1 addition & 1 deletion commitlint.config.cjs → .commitlintrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
export default {
extends: ['@commitlint/config-conventional'],
rules: {
'footer-max-line-length': [1, 'always', 72],
Expand Down
4 changes: 4 additions & 0 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"*.c?js": "yarn lint:fix",
"*.mdx?": "yarn lint:fix"
}
141 changes: 58 additions & 83 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,85 +1,60 @@
{
"name": "@react-hookz/eslint-config",
"version": "2.1.5",
"description": "eslint configuration files used in @react-hookz projects",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/react-hookz/eslint-config.git"
},
"bugs": {
"url": "https://github.com/react-hookz/eslint-config/issues"
},
"publishConfig": {
"access": "public"
},
"type": "module",
"main": "./base.cjs",
"peerDependencies": {
"eslint": "^8.57.1",
"eslint-plugin-prettier": "^5.2.1",
"prettier": "^3.3.3"
},
"dependencies": {
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"eslint-config-prettier": "^9.1.0",
"eslint-config-xo": "^0.45.0",
"eslint-config-xo-react": "^0.27.0",
"eslint-config-xo-typescript": "^5.0.0",
"eslint-import-resolver-typescript": "^3.6.3",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-jest": "^28.9.0",
"eslint-plugin-mdx": "^3.1.5",
"eslint-plugin-n": "^17.14.0",
"eslint-plugin-no-use-extend-native": "^0.5.0",
"eslint-plugin-promise": "^7.1.0",
"eslint-plugin-react": "^7.37.2",
"eslint-plugin-react-hooks": "^5.0.0",
"eslint-plugin-unicorn": "^56.0.1"
},
"devDependencies": {
"@commitlint/cli": "^19.6.0",
"@commitlint/config-conventional": "^19.6.0",
"@commitlint/cz-commitlint": "^19.5.0",
"@react-hookz/eslint-formatter-gha": "^2.0.1",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@semantic-release/github": "^11.0.1",
"commitizen": "^4.3.1",
"commitlint": "^19.6.0",
"eslint": "^8.57.1",
"eslint-plugin-prettier": "^5.2.1",
"husky": "^9.1.7",
"lint-staged": "^15.2.10",
"prettier": "^3.3.3",
"semantic-release": "^24.2.0"
},
"scripts": {
"prepare": "husky",
"commit": "git-cz",
"lint": "eslint",
"lint:fix": "yarn lint --fix"
},
"config": {
"commitizen": {
"path": "@commitlint/cz-commitlint"
}
},
"lint-staged": {
"*.c?js": "yarn lint:fix",
"*.mdx?": "yarn lint:fix"
},
"release": {
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
"@semantic-release/npm",
"@semantic-release/git",
"@semantic-release/github"
]
},
"packageManager": "yarn@4.5.3"
"name": "@react-hookz/eslint-config",
"version": "2.1.5",
"description": "eslint configuration files used in @react-hookz projects",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/react-hookz/eslint-config.git"
},
"bugs": {
"url": "https://github.com/react-hookz/eslint-config/issues"
},
"publishConfig": {
"access": "public"
},
"type": "module",
"main": "./base.cjs",
"peerDependencies": {
"eslint": "^8.57.1",
"eslint-plugin-prettier": "^5.2.1",
"prettier": "^3.3.3"
},
"dependencies": {
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"eslint-config-prettier": "^9.1.0",
"eslint-config-xo": "^0.45.0",
"eslint-config-xo-react": "^0.27.0",
"eslint-config-xo-typescript": "^5.0.0",
"eslint-import-resolver-typescript": "^3.6.3",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-jest": "^28.9.0",
"eslint-plugin-mdx": "^3.1.5",
"eslint-plugin-n": "^17.14.0",
"eslint-plugin-no-use-extend-native": "^0.5.0",
"eslint-plugin-promise": "^7.1.0",
"eslint-plugin-react": "^7.37.2",
"eslint-plugin-react-hooks": "^5.0.0",
"eslint-plugin-unicorn": "^56.0.1"
},
"devDependencies": {
"@commitlint/cli": "^19.6.0",
"@commitlint/config-conventional": "^19.6.0",
"@react-hookz/eslint-formatter-gha": "^2.0.1",
"eslint": "^8.57.1",
"eslint-plugin-prettier": "^5.2.1",
"husky": "^9.1.7",
"lint-staged": "^15.2.10",
"prettier": "^3.3.3",
"semantic-release": "^24.2.0"
},
"scripts": {
"prepare": "husky",
"commit": "git-cz",
"lint": "eslint",
"lint:fix": "yarn lint --fix"
},
"packageManager": "yarn@4.5.3"
}
Loading

0 comments on commit c93e8f6

Please sign in to comment.