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

Commit

Permalink
feat: Initial implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeyzwezdin committed Jan 11, 2024
1 parent 2ea21a7 commit a82f2ad
Show file tree
Hide file tree
Showing 9 changed files with 11,026 additions and 2 deletions.
26 changes: 26 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
module.exports = {
"env": {
"es2021": true,
"node": true
},
"extends": "standard-with-typescript",
"overrides": [
{
"env": {
"node": true
},
"files": [
".eslintrc.{js,cjs}"
],
"parserOptions": {
"sourceType": "script"
}
}
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"rules": {
}
}
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Release
on:
push:
branches:
- master
jobs:
release:
permissions:
contents: write
issues: write
pull-requests: write
id-token: write
name: Release
runs-on: ubuntu-latest
environment: npm
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cache: npm
node-version: '20'
- run: npm ci
- run: npx semantic-release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
TELEGRAM_BOT_CHAT_ID: ${{ vars.TELEGRAM_BOT_CHAT_ID }}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ web_modules/
.env.local

# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

# Next.js build output
Expand Down Expand Up @@ -128,3 +127,5 @@ dist
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

.idea
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
save-exact=true
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v20
27 changes: 27 additions & 0 deletions .releaserc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
const common = require('@sergeyzwezdin/semantic-release-commits-config');

module.exports = {
...common,
plugins: [
...common.plugins,
'@semantic-release/npm',
[
'@semantic-release/git',
{
assets: ['package.json', 'package-lock.json'],
message: 'Update package.json version to ${nextRelease.version}'
}
],
'@semantic-release/github',
[
'semantic-release-telegram-bot',
{
notifications: [
{
chatIds: process.env.TELEGRAM_BOT_CHAT_ID
}
]
}
]
]
};
30 changes: 29 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,30 @@
# eslint-config-node
# @sergeyzwezdin/eslint-config-node

Shareable configuration for eslint (node)

## Usage

1. Install packages `eslint` and `@sergeyzwezdin/eslint-config-node`
```bash
npm install eslint --save-dev
npm install @sergeyzwezdin/eslint-config-node --save-dev
```
2. Add `.eslintrc.json`
```json
{
"extends": "@sergeyzwezdin/eslint-config-node"
}
```

3. Update `scripts` section of `package.json`
```json
{
"scripts": {
"lint": "eslint"
}
}
```

## License

Released under [MIT](/LICENSE) by [Sergey Zwezdin](https://github.com/sergeyzwezdin).
Loading

0 comments on commit a82f2ad

Please sign in to comment.