ui-next: refactor router

This commit is contained in:
Baoshuo committed 2026-05-10 01:12:47 +08:00
1 parent 4acb572597
commit 979cda7c1a
8 files changed
+173 -92

No files matched your search

+5
View File
@@ -1,6 +1,7 @@
/* eslint-disable max-len */
/* eslint-disable ts/naming-convention */
import path from 'node:path';
import reactHooks from 'eslint-plugin-react-hooks';
import globals from 'globals';
import react from '@hydrooj/eslint-config';
@@ -194,12 +195,16 @@ const config = react({
},
}, {
files: ['packages/ui-next/src/**/*.{ts,tsx}'],
plugins: {
'react-hooks': reactHooks,
},
languageOptions: {
globals: {
...globals.browser,
},
},
rules: {
...reactHooks.configs.recommended.rules,
'style/indent': ['warn', 2],
'style/indent-binary-ops': ['warn', 2],
},