fix: make template build, lint and test cleanly out of the box

This commit is contained in:
2026-09-25 09:05:40 +03:00
parent f3452876da
commit f0e09ef8c9
24 changed files with 128 additions and 244 deletions
+24
View File
@@ -0,0 +1,24 @@
import js from '@eslint/js';
import tseslint from 'typescript-eslint';
import reactHooks from 'eslint-plugin-react-hooks';
import unusedImports from 'eslint-plugin-unused-imports';
export default tseslint.config(
{ ignores: ['dist/', 'node_modules/', 'src/manifest.ts'] },
js.configs.recommended,
...tseslint.configs.recommended,
{
plugins: {
'react-hooks': reactHooks,
'unused-imports': unusedImports,
},
rules: {
...reactHooks.configs.recommended.rules,
'unused-imports/no-unused-imports': 'warn',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
// В шаблоне пустые типы — заготовки, которые вы заполните
'@typescript-eslint/no-empty-object-type': 'off',
},
},
);