Skip to content

Commit

Permalink
chore: apply styling (#10)
Browse files Browse the repository at this point in the history
* chore: use eslint and prettier

* chore: add ci test for eslint and prettier

* remove node_modules

* add missing npm install
  • Loading branch information
isbang authored Oct 5, 2022
1 parent eb48bd5 commit 32a62d9
Show file tree
Hide file tree
Showing 401 changed files with 2,644 additions and 91,051 deletions.
17 changes: 17 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"env": {
"commonjs": true,
"es6": true,
"jest": true,
"node": true
},
"extends": "eslint:recommended",
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 2018
},
"rules": {}
}
21 changes: 21 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ jobs:
name: test compose action
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm install
- uses: ./
with:
compose-file: "./docker/docker-compose.yml"
Expand Down Expand Up @@ -38,3 +42,20 @@ jobs:
services: |
helloworld2
helloworld4
lint:
runs-on: ubuntu-latest
name: lint test
steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: 16

- run: npm install

- name: eslint
run: npm run lint

- name: prettier
run: npm run check-format
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules/
1 change: 1 addition & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
225 changes: 0 additions & 225 deletions node_modules/.package-lock.json

This file was deleted.

9 changes: 0 additions & 9 deletions node_modules/@actions/core/LICENSE.md

This file was deleted.

Loading

0 comments on commit 32a62d9

Please sign in to comment.