Skip to content

Commit 6c6a2f4

Browse files
tamirohVinzent03
andauthored
Add test workflow (#449)
* Add ci.yml * Update * Install eslint * Fix * Remove redundant semicolon * Remove debug * Rename * Update * Fix style * Fix format * style: turn of no-constant-condition rule * Add debug --------- Co-authored-by: Vinzent <vinzent03@proton.me>
1 parent d2e1954 commit 6c6a2f4

File tree

6 files changed

+412
-19
lines changed

6 files changed

+412
-19
lines changed

.eslintrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
"@typescript-eslint/no-explicit-any": "off",
4646
"@typescript-eslint/ban-ts-comment": "off",
4747
"no-prototype-builtins": "off",
48-
"@typescript-eslint/no-empty-function": "off"
48+
"@typescript-eslint/no-empty-function": "off",
49+
"no-constant-condition": "off"
4950
}
5051
}

.github/workflows/test.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: test
2+
on: push
3+
jobs:
4+
lint:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v2
8+
- uses: pnpm/action-setup@v2
9+
with:
10+
version: 6.0.2
11+
- name: Install modules
12+
run: pnpm install
13+
- name: Run ESLint
14+
run: pnpm run lint

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,14 @@
1616
"t": ""
1717
},
1818
"devDependencies": {
19+
"@types/debug": "^4.1.7",
1920
"@types/diff": "^5.0.2",
2021
"@types/node": "^14.18.36",
2122
"@typescript-eslint/eslint-plugin": "5.29.0",
2223
"@typescript-eslint/parser": "5.29.0",
2324
"esbuild": "^0.12.29",
2425
"esbuild-svelte": "^0.5.7",
26+
"eslint": "^8.35.0",
2527
"eslint-plugin-svelte3": "^4.0.0",
2628
"obsidian": "^0.16.3",
2729
"sass": "^1.57.1",

0 commit comments

Comments
 (0)