/
githubmirror
/
gogs
Обзор
Документация
Войти
/
githubmirror
/
gogs
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
web/eslint.config.js
44 строки
1 KB
ᴊᴏᴇ ᴄʜᴇɴ
feat: introduce React web frontend and migrate home + 404 pages (#8276)
21 май 2026, 00:45
Не верифицирован
21 май 2026, 00:45
b67c13c
Код
Авторство
О чём код?
import js from "@eslint/js"; import importPlugin from "eslint-plugin-import"; import reactHooks from "eslint-plugin-react-hooks"; import reactRefresh from "eslint-plugin-react-refresh"; import tseslint from "typescript-eslint"; export default [ { ignores: ["dist", "eslint.config.js", ".prettierrc.js", "vite.config.ts", "scripts/**"], }, js.configs.recommended, ...tseslint.configs.recommendedTypeChecked, importPlugin.flatConfigs.recommended, importPlugin.flatConfigs.typescript, { rules: { "import/no-unresolved": "off", }, }, { files: ["**/*.{ts,tsx}"], languageOptions: { parser: tseslint.parser, parserOptions: { projectService: true, tsconfigRootDir: import.meta.dirname, ecmaVersion: "latest", sourceType: "module", }, globals: { document: "readonly", window: "readonly", }, }, plugins: { "react-hooks": reactHooks, "react-refresh": reactRefresh, }, rules: { ...reactHooks.configs.recommended.rules, "react-refresh/only-export-components": ["warn", { allowConstantExport: true }], }, }, ];