Skip to content

Commit

Permalink
fixed code styles
Browse files Browse the repository at this point in the history
added linting and prettier check scripts
  • Loading branch information
shahriar-shojib committed Dec 16, 2020
1 parent 47daa43 commit be77b72
Show file tree
Hide file tree
Showing 5 changed files with 81 additions and 89 deletions.
47 changes: 15 additions & 32 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,36 +1,19 @@
module.exports = {
'env': {
'es2021': true,
'node': true
env: {
es2021: true,
node: true,
},
'extends': [
'eslint:recommended',
'plugin:@typescript-eslint/recommended'
],
'parser': '@typescript-eslint/parser',
'parserOptions': {
'ecmaVersion': 12,
'sourceType': 'module'
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 12,
sourceType: 'module',
},
plugins: ['@typescript-eslint'],
rules: {
indent: ['error', 'tab'],
'linebreak-style': ['error', 'windows'],
quotes: ['error', 'single'],
semi: ['error', 'always'],
},
'plugins': [
'@typescript-eslint'
],
'rules': {
'indent': [
'error',
'tab'
],
'linebreak-style': [
'error',
'windows'
],
'quotes': [
'error',
'single'
],
'semi': [
'error',
'always'
]
}
};
88 changes: 44 additions & 44 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -1,44 +1,44 @@
name: Publish to NPM and Github Packages

on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 14
- run: npm ci
- run: npm run build

publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 14
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

publish-gpr:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://npm.pkg.github.com/
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GH_TOKEN}}
name: Publish to NPM and Github Packages

on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 14
- run: npm ci
- run: npm run build

publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 14
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

publish-gpr:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://npm.pkg.github.com/
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GH_TOKEN}}
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# bkash-payment-gateway

Nodejs library to accept bkash payments on your backend application

## How to use

`Coming soon`

### Author

[Shahriar Shojib](https://github.com/shahriar-shojib)
# bkash-payment-gateway

Nodejs library to accept bkash payments on your backend application

## How to use

`Coming soon`

### Author

[Shahriar Shojib](https://github.com/shahriar-shojib)
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,13 @@
"@typescript-eslint/eslint-plugin": "^4.10.0",
"@typescript-eslint/parser": "^4.10.0",
"eslint": "^7.15.0",
"typescript": "^4.1.3"
"typescript": "^4.1.3",
"prettier": "latest"
},
"scripts": {
"build": "tsc"
"build": "tsc",
"lint": "eslint .",
"pretty": ""
},
"dependencies": {
"abort-controller": "^3.0.0",
Expand Down

0 comments on commit be77b72

Please sign in to comment.