Skip to content

Commit

Permalink
added linting & formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
kurayami07734 committed Oct 22, 2023
1 parent 8e14acc commit ced0be0
Show file tree
Hide file tree
Showing 6 changed files with 4,910 additions and 1,771 deletions.
23 changes: 23 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
module.exports = {
env: {
browser: true,
es2021: true,
},
extends: "airbnb-base",
overrides: [
{
env: {
node: true,
},
files: [".eslintrc.{js,cjs}"],
parserOptions: {
sourceType: "script",
},
},
],
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
},
rules: {},
};
21 changes: 10 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@ name: Node.js CI

on:
push:
branches: [ "main" ]
branches: ["main"]
pull_request:
branches: [ "main" ]
branches: ["main"]

jobs:
build:

runs-on: ubuntu-latest

strategy:
Expand All @@ -20,11 +19,11 @@ jobs:
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm i
- run: npm run test
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- run: npm i
- run: npm run test
4 changes: 2 additions & 2 deletions esbuild.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const {build} = require("esbuild");
const { build } = require("esbuild");
const { nodeExternalsPlugin } = require("esbuild-node-externals");
build({
entryPoints: ["./src/index.js"],
Expand All @@ -9,5 +9,5 @@ build({
platform: "node",
format: "cjs",
target: "esnext",
plugins: [ nodeExternalsPlugin()]
plugins: [nodeExternalsPlugin()],
}).catch(() => process.exit(1));
Loading

0 comments on commit ced0be0

Please sign in to comment.