Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3bb460f
commit f2710d2
Showing
10 changed files
with
108 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1 @@ | ||
module.exports = { | ||
extends: ['@commitlint/config-conventional'], | ||
rules: { | ||
'header-max-length': [0, 'always', 120], | ||
}, | ||
} | ||
module.exports = require('./packages/commitlint-config') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
# TODOs | ||
|
||
- add stylelint configuration | ||
- add commitlint configuration | ||
- add css reset |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module.exports = { | ||
extends: ['@commitlint/config-conventional'], | ||
rules: { | ||
'header-max-length': [0, 'always', 120], | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# @jdp-dev/commitlint-config [![GitHub Build Status][shield-github-build-status]][shield-github-build-status] [![npm][shield-npm]][npm] [![MIT License][shield-license]][license] | ||
|
||
My shareable [commitlint](https://commitlint.js.org/) | ||
[config](https://commitlint.js.org/#/reference-configuration). | ||
|
||
## Installation | ||
|
||
```shell script | ||
npm install --save-dev @jdp-dev/commitlint-config | ||
``` | ||
|
||
or | ||
|
||
```shell script | ||
yarn add --dev @jdp-dev/commitlint-config | ||
``` | ||
|
||
## Usage | ||
|
||
Add `@jdp-dev/commitlint-config` to the `"extends"` array in your `.commitlintrc.*` | ||
file. | ||
|
||
<!-- prettier-ignore --> | ||
```javascript | ||
module.exports = { | ||
extends: ['@jdp-dev/commitlint-config'] | ||
} | ||
``` | ||
|
||
Or, you can use it in other ways as described in the | ||
[official documentation](https://commitlint.js.org/#/reference-configuration?id=shareable-configuration). | ||
|
||
## License | ||
|
||
[MIT][license] © [John Darryl Pelingo][me] | ||
|
||
[license]: ../../LICENSE | ||
[me]: https://johndpelingo.com/ | ||
[npm]: https://npmjs.org/package/@jdp-dev/commitlint-config | ||
[shield-github-build-status]: | ||
https://github.com/john-d-pelingo/jdp-scripts/workflows/npm-publish/badge.svg | ||
[shield-license]: https://img.shields.io/badge/License-MIT-lavender.svg | ||
[shield-npm]: https://img.shields.io/npm/v/@jdp-dev/commitlint-config.svg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
const test = require('tape') | ||
|
||
test('config files parse', (t) => { | ||
t.doesNotThrow(() => require('..'), 'index does not throw') | ||
t.doesNotThrow( | ||
() => require('../.commitlintrc.js'), | ||
'.commitlintrc.js does not throw', | ||
) | ||
t.end() | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = require('./.commitlintrc.js') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"name": "@jdp-dev/commitlint-config", | ||
"version": "0.0.8", | ||
"description": "My shareable commitlint config.", | ||
"private": false, | ||
"homepage": "https://github.com/john-d-pelingo/jdp-scripts", | ||
"author": { | ||
"email": "johndarrylpelingo@gmail.com", | ||
"name": "John Darryl Pelingo", | ||
"url": "https://johndpelingo.com" | ||
}, | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/john-d-pelingo/jdp-scripts", | ||
"directory": "packages/tsconfig" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/john-d-pelingo/jdp-scripts/issues" | ||
}, | ||
"keywords": [ | ||
"commitlint", | ||
"commitlintrc" | ||
], | ||
"main": "index.js", | ||
"scripts": { | ||
"prepublishOnly": "npm run test", | ||
"test": "tape __tests__/*.js" | ||
}, | ||
"peerDependencies": { | ||
"@commitlint/cli": ">= 11.0.0", | ||
"@commitlint/config-conventional": ">= 11.0.0" | ||
}, | ||
"devDependencies": { | ||
"tape": "^5.0.1" | ||
} | ||
} |