1
0
mirror of https://github.com/nostalgic-css/NES.css.git synced 2025-08-29 16:59:58 +02:00

ci: add commitlint

Add `commitlint` to enforce proper formatting for all commit messages

#13
This commit is contained in:
Trezy
2018-12-02 00:39:52 -06:00
committed by BcRikko
parent 0f988b3f54
commit 3ec9ab1976
3 changed files with 2915 additions and 388 deletions

View File

@@ -94,6 +94,21 @@ jobs:
paths:
- css
lint:
<<: *defaults
steps:
- attach_workspace:
at: .
- run:
name: Lint styles
command: npx stylelint -- --fix
- run:
name: Lint commit messages
command: npx semantic-commitlint -- --ci
# test:
# <<: *defaults
@@ -157,6 +172,9 @@ workflows:
# - coverage:
# requires:
# - install-dependencies
- lint:
requires:
- install-dependencies
- build:
requires:
- install-dependencies
@@ -169,6 +187,7 @@ workflows:
requires:
# - test
- build
- lint
filters:
branches:
only: master

3268
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -14,7 +14,11 @@
"storybook": "start-storybook -p 6006",
"build:storybook": "build-storybook",
"deploy": "npm run build",
"semantic-release": "semantic-release"
"semantic-commitlint": "semantic-commitlint",
"semantic-release": "semantic-release",
"commit": "git-cz",
"commit:retry": "git-cz --retry",
"commitmsg": "commitlint -e"
},
"repository": {
"type": "git",
@@ -48,6 +52,7 @@
"postcss-cli": "^6.0.0",
"prettier": "^1.15.2",
"rimraf": "^2.6.2",
"semantic-commitlint": "^1.3.2",
"semantic-release": "^15.12.3",
"stylelint": "^9.5.0",
"stylelint-config-prettier": "^4.0.0",
@@ -61,7 +66,9 @@
],
"husky": {
"hooks": {
"pre-commit": "lint-staged"
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
"pre-commit": "lint-staged",
"prepare-commit-msg": "npm run semantic-commitlint -- -h"
}
},
"lint-staged": {
@@ -78,6 +85,11 @@
"prettier": {
"printWidth": 100
},
"release": {
"verifyRelease": [
"semantic-commitlint"
]
},
"stylelint": {
"plugins": [
"stylelint-scss",