Skip to content

Commit

Permalink
add ci + enable linting (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
beesaferoot authored May 9, 2024
1 parent b4346a4 commit 8476080
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: CI Test

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

jobs:
test:
name: Lint & Test Suite
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: ">=18.x"
- run: npm install
- run: npm run lint
- run: npm run test

15 changes: 15 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import js from "@eslint/js";

export default [
js.configs.recommended,

{
rules: {
"no-unused-vars": "off",
"no-undef": "off"
}
},
{
ignores: ["test/*", "lib/*"]
}
];

0 comments on commit 8476080

Please sign in to comment.