Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
fix

fix
  • Loading branch information
wakamsha committed Feb 8, 2025
1 parent 3ef8d5b commit 5786dc7
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 10 deletions.
10 changes: 5 additions & 5 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,22 @@ I appreciate your considering contributing `eslint-config-moneyforward`. This do
1. Fork this repository and clone it locally

```bash
git clone https://github.com/your-username/eslint-config-moneyforward.git
git clone https://github.com/your-username/frontend-tools.git
```

2. Move to the directory and install dependencies

```bash
cd eslint-config-moneyforward
npm install
cd frontend-tools
pnpm install
```

### Development

The main scripts used during development are:

- `npm run lint`: Runs lint on your code.
- `npm run test`: Runs unit tests.
- `pnpm lint`: Runs lint on your code.
- `pnpm test`: Runs unit tests.

## How to Contribute

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
uses: ./.github/actions/restore-node

- name: Run Lint
run: npm -r lint
run: pnpm -r lint

- name: Run Test
run: npm -r test
run: pnpm -r test
4 changes: 2 additions & 2 deletions packages/eslint-config/tests/snapshot-test/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ In the context of ESLint, we use snapshot testing to ensure that our configurati
To run the snapshot test, use the following command:

```bash
npm run test
pnpm test
```

If the test fails, and the changes to the ESLint configuration are intentional, you can update the snapshot using the following command:

```bash
npm run test -- -u
pnpm test -- -u
```

This will update the snapshot to match the current configuration. The updated snapshot should then be committed along with the changes to the ESLint configuration.
Expand Down
26 changes: 25 additions & 1 deletion packages/release-config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,38 @@ module.exports = {
'@semantic-release/release-notes-generator',
{
preset: 'conventionalcommits',

// Override the conventional-changelog preset to accommodate the `releaseRules` you added to the `@semantic-release/commit-analyzer` plugin options.
// see: https://github.com/conventional-changelog/conventional-changelog-config-spec/blob/master/versions/2.2.0/README.md#types
presetConfig: {
// origin preset: https://github.com/conventional-changelog/conventional-changelog/blob/master/packages/conventional-changelog-conventionalcommits/src/constants.js
types: [
{ type: 'feat', section: 'Features' },
{ type: 'feature', section: 'Features' },
{ type: 'fix', section: 'Bug Fixes' },
{ type: 'perf', section: 'Performance Improvements' },
{ type: 'revert', section: 'Reverts' },

// Override the configuration to include `docs` type in the release notes.
{ type: 'docs', scope: 'README', section: 'Documentation' },
{ type: 'docs', scope: 'LICENSE', section: 'Documentation' },

{ type: 'style', section: 'Styles', hidden: true },
{ type: 'chore', section: 'Miscellaneous Chores', hidden: true },
{ type: 'refactor', section: 'Code Refactoring', hidden: true },
{ type: 'test', section: 'Tests', hidden: true },
{ type: 'build', section: 'Build System', hidden: true },
{ type: 'ci', section: 'Continuous Integration', hidden: true },
],
},
},
],
'@semantic-release/changelog',
'@semantic-release/npm',
[
'@semantic-release/git',
{
assets: ['CHANGELOG.md', 'package.json', 'package-lock.json'],
assets: ['CHANGELOG.md', 'package.json'],
},
],
'@semantic-release/github',
Expand Down

0 comments on commit 5786dc7

Please sign in to comment.