Skip to content

Commit d1ff8b4

Browse files
committed
frontend: add and fix linting
1 parent d2db1ae commit d1ff8b4

29 files changed

+631
-253
lines changed

frontend/.eslintignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
dist/
2+
node_modules/
3+
target/
4+
pkg/
5+
*.config.ts
6+
*.config.js
7+
test-results/
8+
playwright-report/
9+
coverage/
10+
.vscode/

frontend/.eslintrc.json

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es2021": true,
5+
"node": true,
6+
"worker": true,
7+
"serviceworker": true
8+
},
9+
"extends": [
10+
"eslint:recommended",
11+
"plugin:@typescript-eslint/recommended",
12+
"preact"
13+
],
14+
"parser": "@typescript-eslint/parser",
15+
"parserOptions": {
16+
"ecmaVersion": "latest",
17+
"sourceType": "module",
18+
"ecmaFeatures": {
19+
"jsx": true
20+
},
21+
"project": "./tsconfig.json"
22+
},
23+
"plugins": [
24+
"@typescript-eslint"
25+
],
26+
"rules": {
27+
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
28+
"@typescript-eslint/no-explicit-any": "warn",
29+
"@typescript-eslint/no-empty-function": "warn",
30+
"@typescript-eslint/no-non-null-assertion": "warn",
31+
"@typescript-eslint/no-this-alias": "off",
32+
"@typescript-eslint/no-empty-object-type": "off",
33+
"react-hooks/rules-of-hooks": "off",
34+
"react-hooks/exhaustive-deps": "off",
35+
"no-undef": "off",
36+
"no-unused-vars": "off",
37+
"quote-props": "off",
38+
"no-duplicate-imports": "error",
39+
"no-case-declarations": "off",
40+
"no-undef-init": "warn",
41+
"prefer-const": "warn",
42+
"prefer-template": "warn",
43+
"no-else-return": "warn",
44+
"no-async-promise-executor": "off"
45+
},
46+
"ignorePatterns": [
47+
"dist/",
48+
"node_modules/",
49+
"target/",
50+
"pkg/",
51+
"*.config.ts",
52+
"*.config.js",
53+
"test-results/",
54+
"playwright-report/"
55+
]
56+
}

0 commit comments

Comments
 (0)