Skip to content

Commit

Permalink
chore: add commitlint config
Browse files Browse the repository at this point in the history
  • Loading branch information
adamyeats committed Nov 27, 2024
1 parent 107b3da commit c2c28ac
Show file tree
Hide file tree
Showing 6 changed files with 700 additions and 15 deletions.
1 change: 1 addition & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx --no-install commitlint --edit "$1"
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx lint-staged
3 changes: 3 additions & 0 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"*.{ts,tsx,js}": "prettier --write"
}
1 change: 1 addition & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = { extends: ['@commitlint/config-conventional'] };
21 changes: 13 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"e2e": "playwright test",
"lint:fix": "yarn run lint --fix",
"lint": "eslint --cache --ignore-path ./.gitignore --ext .js,.jsx,.ts,.tsx .",
"prepare": "husky",
"server": "docker compose up --build",
"sign": "npx --yes @grafana/sign-plugin@latest",
"test:ci": "jest --passWithNoTests --maxWorkers 4",
Expand All @@ -20,6 +21,8 @@
"license": "Apache-2.0",
"devDependencies": {
"@babel/core": "^7.26.0",
"@commitlint/cli": "^19.6.0",
"@commitlint/config-conventional": "^19.6.0",
"@grafana/eslint-config": "^7.0.0",
"@grafana/plugin-e2e": "^1.11.0",
"@grafana/tsconfig": "^2.0.0",
Expand All @@ -33,33 +36,35 @@
"@types/lodash": "^4.17.13",
"@types/node": "^22.10.0",
"@types/react-router-dom": "^5.3.3",
"@types/testing-library__jest-dom": "5.14.8",
"copy-webpack-plugin": "^12.0.2",
"css-loader": "^7.1.2",
"eslint-plugin-deprecation": "^3.0.0",
"eslint-webpack-plugin": "^4.2.0",
"fork-ts-checker-webpack-plugin": "^9.0.2",
"glob": "^11.0.0",
"husky": "^9.1.7",
"identity-obj-proxy": "3.0.0",
"imports-loader": "^5.0.0",
"jest-environment-jsdom": "^29.7.0",
"jest": "^29.7.0",
"lint-staged": "^15.2.10",
"prettier": "^3.4.1",
"replace-in-file-webpack-plugin": "^1.0.6",
"sass-loader": "16.0.3",
"sass": "1.81.0",
"semver": "^7.6.3",
"style-loader": "4.0.0",
"swc-loader": "^0.2.6",
"terser-webpack-plugin": "^5.3.10",
"ts-node": "^10.9.2",
"tsconfig-paths": "^4.2.0",
"typescript": "5.7.2",
"webpack-cli": "^5.1.4",
"webpack-livereload-plugin": "^3.0.2",
"webpack": "^5.96.1",
"@types/testing-library__jest-dom": "5.14.8",
"imports-loader": "^5.0.0",
"terser-webpack-plugin": "^5.3.10",
"webpack-virtual-modules": "^0.6.2",
"webpack-subresource-integrity": "^5.1.0",
"semver": "^7.6.3"
"webpack-virtual-modules": "^0.6.2",
"webpack": "^5.96.1"
},
"engines": {
"node": ">=20"
Expand All @@ -71,16 +76,16 @@
"@grafana/runtime": "^11.3.0",
"@grafana/schema": "^11.3.0",
"@grafana/ui": "^11.3.0",
"react-dom": "18.3.1",
"react": "18.3.1",
"react-dom": "18.3.1",
"tslib": "2.8.1"
},
"resolutions": {
"jackspeak": "2.1.1"
},
"packageManager": "[email protected]",
"volta": {
"node": "20.18.0",
"node": "20.18.1",
"yarn": "1.22.22"
}
}
Loading

0 comments on commit c2c28ac

Please sign in to comment.