Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .github/actions/init-npm/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,3 @@ runs:
- name: Install TS Project dependencies
shell: bash
run: npm ci
- name: build
shell: bash
run: npm run build
2 changes: 1 addition & 1 deletion .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
with:
github_token: ${{ secrets.github_token }}
# Enable linters
eslint: true
eslint: false
prettier: true
eslint_extensions: ts

Expand Down
52 changes: 0 additions & 52 deletions .github/workflows/typedoc.yaml

This file was deleted.

14 changes: 0 additions & 14 deletions CHANGELOG.md

This file was deleted.

23 changes: 19 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# ts-npm-package-boilerplate
# commitlint-config
Common commitlint configuration for MapColonies projects

After cloning this template, please do the following:
1. insert secrets to repo secrets for the github actions.
2. replace every string "ts-npm-package-boilerplate" with your package name.
## Installation
To install the package run the following command:
```bash
npm install --save-dev @mapcolonies/commitlint-config
```

## Usage
To use the package, create a `commitlint.config.js` file in the root of your project and add the following code:
```javascript
module.exports = {
extends: ['@mapcolonies/commitlint-config'],
};
```

## Rules
This package extends all the rules from the `@commitlint/config-conventional` package and adds the following rules:
1. The allowed values for the type parameters (feat,fix,chore..) are as follow: `deps`, `helm`, `build`, `chore`, `ci`, `docs`, `feat`, `fix`, `perf`, `refactor`, `revert`, `style`, `test`
5 changes: 1 addition & 4 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'scope-enum': [2, 'always', ['deps', 'configurations']],
},
extends: ['./index.js'],
};
9 changes: 9 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/**
* @type {import('@commitlint/types').UserConfig}
*/
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'type-enum': [2, 'always', ['deps', 'helm', 'build', 'chore', 'ci', 'docs', 'feat', 'fix', 'perf', 'refactor', 'revert', 'style', 'test']],
},
};
Loading
Loading