Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

Commit

Permalink
fix: Added eslint and switched to shareable configuration for eslint …
Browse files Browse the repository at this point in the history
…and prettier
  • Loading branch information
sergeyzwezdin committed Jan 12, 2024
1 parent 480eaa4 commit e8331a2
Show file tree
Hide file tree
Showing 6 changed files with 11,549 additions and 8,955 deletions.
190 changes: 95 additions & 95 deletions .releaserc.js
Original file line number Diff line number Diff line change
@@ -1,103 +1,103 @@
module.exports = {
'branches': ['master'],
'plugins': [
[
'@semantic-release/commit-analyzer',
{
'preset': 'conventionalcommits',
'releaseRules': [
{
'breaking': true,
'release': 'major',
},
{
'type': 'feat',
'release': 'minor',
},
{
'type': 'fix',
'release': 'patch',
},
{
'type': 'chore',
'release': 'patch',
},
{
'type': 'refactor',
'release': 'patch',
},
{
'type': 'docs',
'release': 'patch',
},
{
'type': 'perf',
'release': 'patch',
},
{
'type': 'test',
'release': 'patch',
},
{
'scope': 'no-release',
'release': false,
},
],
},
],
[
'@semantic-release/release-notes-generator',
{
'preset': 'conventionalcommits',
'presetConfig': {
'types': [
{
'type': 'feat',
'section': 'Features',
},
{
'type': 'fix',
'section': 'Fixes',
},
{
'type': 'chore',
'section': 'Other',
},
branches: ['master'],
plugins: [
[
'@semantic-release/commit-analyzer',
{
'type': 'docs',
'section': 'Documentation',
},
{
'type': 'style',
'section': 'UI',
},
{
'type': 'refactor',
'section': 'Refactoring',
preset: 'conventionalcommits',
releaseRules: [
{
breaking: true,
release: 'major',
},
{
type: 'feat',
release: 'minor',
},
{
type: 'fix',
release: 'patch',
},
{
type: 'chore',
release: 'patch',
},
{
type: 'refactor',
release: 'patch',
},
{
type: 'docs',
release: 'patch',
},
{
type: 'perf',
release: 'patch',
},
{
type: 'test',
release: 'patch',
},
{
scope: 'no-release',
release: false,
},
],
},
],
[
'@semantic-release/release-notes-generator',
{
'type': 'perf',
'section': 'Performance Improvements',
preset: 'conventionalcommits',
presetConfig: {
types: [
{
type: 'feat',
section: 'Features',
},
{
type: 'fix',
section: 'Fixes',
},
{
type: 'chore',
section: 'Other',
},
{
type: 'docs',
section: 'Documentation',
},
{
type: 'style',
section: 'UI',
},
{
type: 'refactor',
section: 'Refactoring',
},
{
type: 'perf',
section: 'Performance Improvements',
},
{
type: 'test',
section: 'Testing',
},
],
},
},
],
'@semantic-release/npm',
'@semantic-release/github',
[
'semantic-release-telegram-bot',
{
'type': 'test',
'section': 'Testing',
notifications: [
{
chatIds: process.env.TELEGRAM_BOT_CHAT_ID,
},
],
},
],
},
},
],
],
'@semantic-release/npm',
'@semantic-release/github',
[
'semantic-release-telegram-bot',
{
notifications: [
{
chatIds: process.env.TELEGRAM_BOT_CHAT_ID,
}
]
}
]
],
};
}
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

This shareable configuration use the following plugins:

- [`@semantic-release/commit-analyzer`](https://github.com/semantic-release/commit-analyzer)
- [`@semantic-release/release-notes-generator`](https://github.com/semantic-release/release-notes-generator)
- [`@semantic-release/commit-analyzer`](https://github.com/semantic-release/commit-analyzer)
- [`@semantic-release/release-notes-generator`](https://github.com/semantic-release/release-notes-generator)

## Install

Expand All @@ -23,22 +23,22 @@ The shareable config can be configured in the [**semantic-release** configuratio

```json
{
"extends": "@sergeyzwezdin/semantic-release-commits-config"
"extends": "@sergeyzwezdin/semantic-release-commits-config"
}
```

**.release.rc.js**:

```javascript
const common = require('@sergeyzwezdin/semantic-release-commits-config');
const common = require('@sergeyzwezdin/semantic-release-commits-config')

module.exports = {
...common,
plugins: [
...common.plugins,
/* your plugins here */
]
};
...common,
plugins: [
...common.plugins,
/* your plugins here */
],
}
```

## Configuration
Expand Down
Loading

0 comments on commit e8331a2

Please sign in to comment.