-
-
Notifications
You must be signed in to change notification settings - Fork 677
Feature/fix commitlint #592
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -35,6 +35,7 @@ | |
| "lint:codeOnly": "eslint \"{bin}/**/!(__testfixtures__)/*.js\" \"{bin}/**.js\"", | ||
| "lint": "eslint \"./bin/*.js\" \"./test/**/*.js\" \"packages/**/!(node_modules)/*.test.js\"", | ||
| "precommit": "lint-staged", | ||
| "commitmsg": "commitlint -E GIT_PARAMS", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we keep this simply as
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is the configuration I got from https://marionebl.github.io/commitlint/#/guides-local-setup?id=install-husky |
||
| "pretest": "npm run build && npm run lint && npm run tslint", | ||
| "reportCoverage": "nyc report --reporter=json && codecov -f coverage/coverage-final.json --disable=gcov", | ||
| "test": "nyc jest", | ||
|
|
@@ -47,6 +48,10 @@ | |
| "{packages,bin}/**/!(__testfixtures__)/**.js": [ | ||
| "eslint --fix", | ||
| "git add" | ||
| ], | ||
| "{packages,bin}/**/!(__testfixtures__)/**.ts": [ | ||
| "tslint --fix", | ||
| "git add" | ||
| ] | ||
| }, | ||
| "jest": { | ||
|
|
@@ -106,7 +111,6 @@ | |
| }, | ||
| "devDependencies": { | ||
| "@commitlint/cli": "^7.1.2", | ||
| "@commitlint/config-angular": "^7.1.2", | ||
| "@commitlint/config-lerna-scopes": "^7.1.2", | ||
| "@commitlint/prompt-cli": "^7.1.2", | ||
| "@commitlint/travis-cli": "^7.1.2", | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what do you mean with cli in it's own package?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The plungin commitlint for lerna forces to have a commit message where inside the parentheses you have to write down the name of the package. Please read what that package does.
It wasn't working before because the commitlint was half broken.
For now I turned off the rule meanwhile we decide what to do
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay thanks for info! 💙