Skip to content

Commit 3e0b0db

Browse files
authored
Merge pull request #4 from SashaMPs/addtests
Addtests
2 parents 1d62617 + 60b852f commit 3e0b0db

File tree

5 files changed

+2604
-24
lines changed

5 files changed

+2604
-24
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,24 +23,25 @@ jobs:
2323

2424
- name: Run tests
2525
run: npm run test -- --coverage
26-
26+
2727
style:
2828
name: Style
2929
runs-on: ubuntu-latest
3030
steps:
3131
- name: Check out code
3232
uses: actions/checkout@v4
33-
33+
3434
- name: Set up Node
3535
uses: actions/setup-node@v4
36-
with:
36+
with:
3737
node-version: 18
3838

3939
- name: Install dependencies
40-
run: npm ci
40+
run: npm ci
4141

42-
- name: Run formatting check
42+
- name: Run formatting check
4343
run: npm run format:check
4444

45-
45+
- name: Lint check
46+
run: npm run lint
4647

.github/workflows/eslint.config.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import globals from "globals";
2+
import pluginJs from "@eslint/js";
3+
import tseslint from "@typescript-eslint/eslint-plugin";
4+
5+
/** @type {import('eslint').Linter.Config} */
6+
export default {
7+
files: ["**/*.{js,mjs,cjs,ts}"],
8+
languageOptions: {
9+
globals: globals.browser,
10+
},
11+
extends: [
12+
pluginJs.configs.recommended,
13+
tseslint.configs.recommended, // Ensure @typescript-eslint is installed
14+
and configured
15+
],
16+
};
17+

0 commit comments

Comments
 (0)