Skip to content

Commit 3f1cb60

Browse files
committed
test: add ESLint and Vitest configuration
- Add ESLint with TypeScript support for linting - Add Vitest for unit testing - Add lint and test npm scripts - Fix lint warnings in ManifestEditorProvider and ValidationService - Add basic test file to verify setup
1 parent 03dc85a commit 3f1cb60

7 files changed

Lines changed: 4878 additions & 1618 deletions

File tree

.eslintrc.json

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"root": true,
3+
"parser": "@typescript-eslint/parser",
4+
"parserOptions": {
5+
"ecmaVersion": 2022,
6+
"sourceType": "module"
7+
},
8+
"plugins": [
9+
"@typescript-eslint"
10+
],
11+
"extends": [
12+
"eslint:recommended",
13+
"plugin:@typescript-eslint/recommended"
14+
],
15+
"rules": {
16+
"@typescript-eslint/naming-convention": [
17+
"warn",
18+
{
19+
"selector": "import",
20+
"format": ["camelCase", "PascalCase"]
21+
}
22+
],
23+
"@typescript-eslint/no-unused-vars": [
24+
"warn",
25+
{
26+
"argsIgnorePattern": "^_",
27+
"varsIgnorePattern": "^_"
28+
}
29+
],
30+
"@typescript-eslint/no-explicit-any": "warn",
31+
"no-case-declarations": "off",
32+
"curly": "warn",
33+
"eqeqeq": "warn",
34+
"no-throw-literal": "warn",
35+
"semi": "warn"
36+
},
37+
"ignorePatterns": [
38+
"out",
39+
"node_modules",
40+
"webview-ui",
41+
"**/*.test.ts"
42+
]
43+
}

0 commit comments

Comments
 (0)