Skip to content

Commit 164271c

Browse files
committed
Fixes linting
1 parent efa68df commit 164271c

File tree

9 files changed

+3777
-111
lines changed

9 files changed

+3777
-111
lines changed

.github/workflows/frontend.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,21 @@ jobs:
3131
working-directory: ./frontend
3232
run: npm ci
3333

34+
- name: Type check
35+
working-directory: ./frontend
36+
run: npm run typecheck
37+
38+
- name: Lint code
39+
working-directory: ./frontend
40+
run: npm run lint -- --format=compact
41+
3442
- name: Build project
3543
working-directory: ./frontend
3644
run: npm run build
3745

3846
- name: Upload build artifacts
3947
uses: actions/upload-artifact@v4
48+
4049
with:
4150
name: frontend-dist
4251
path: frontend/dist/

frontend/eslint.config.js

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import js from '@eslint/js';
2+
import tseslint from 'typescript-eslint';
3+
import pluginImport from 'eslint-plugin-import';
4+
5+
export default [
6+
{
7+
ignores: ['dist/**', 'node_modules/**']
8+
},
9+
js.configs.recommended,
10+
...tseslint.configs.recommended,
11+
{
12+
files: ['**/*.ts', '**/*.js'],
13+
plugins: { import: pluginImport },
14+
rules: {
15+
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
16+
'@typescript-eslint/no-explicit-any': 'warn',
17+
'no-console': 'warn',
18+
'no-debugger': 'error',
19+
'prefer-const': 'error',
20+
'no-var': 'error',
21+
'no-empty': ['warn', { allowEmptyCatch: true }],
22+
'import/order': [
23+
'error',
24+
{ groups: ['builtin', 'external', 'internal', 'parent', 'sibling', 'index'], 'newlines-between': 'always' }
25+
]
26+
}
27+
}
28+
];

0 commit comments

Comments
 (0)