- Replace Upload-Post with a self-hosted Postiz client (postiz.py) and /api/postiz/* endpoints - Remove AI Shorts, UGC gallery, AI Agent tab, Autopilot, MCP/agent layer, and their UIs - Fix YouTube Studio thumbnail generation (google-genai >=2 Interactions API) and blocking download - Make the video upload size cap configurable/unlimited (MAX_FILE_SIZE_MB, default 0) - Update SEO/marketing/docs to the single-product self-hosted reality; lint+build green
51 lines
1.8 KiB
JavaScript
51 lines
1.8 KiB
JavaScript
import js from '@eslint/js'
|
|
import globals from 'globals'
|
|
import react from 'eslint-plugin-react'
|
|
import reactHooks from 'eslint-plugin-react-hooks'
|
|
import reactRefresh from 'eslint-plugin-react-refresh'
|
|
import { defineConfig, globalIgnores } from 'eslint/config'
|
|
|
|
export default defineConfig([
|
|
// `public/` holds vendored/minified assets (e.g. op1.js) — not our source.
|
|
globalIgnores(['dist', 'public']),
|
|
{
|
|
files: ['**/*.{js,jsx}'],
|
|
extends: [
|
|
js.configs.recommended,
|
|
reactHooks.configs['recommended-latest'],
|
|
reactRefresh.configs.vite,
|
|
],
|
|
plugins: { react },
|
|
languageOptions: {
|
|
ecmaVersion: 2020,
|
|
globals: globals.browser,
|
|
parserOptions: {
|
|
ecmaVersion: 'latest',
|
|
ecmaFeatures: { jsx: true },
|
|
sourceType: 'module',
|
|
},
|
|
},
|
|
rules: {
|
|
// `catch (e)` / `catch (_)` with the error deliberately ignored is the
|
|
// house style for best-effort localStorage and fetch calls.
|
|
'no-unused-vars': ['error', {
|
|
varsIgnorePattern: '^[A-Z_]', argsIgnorePattern: '^_', caughtErrors: 'none',
|
|
}],
|
|
// Core no-unused-vars does not count JSX tags as references, so a
|
|
// destructured component param (`({ icon: Icon }) => <Icon/>`) reads as
|
|
// unused. This rule marks those identifiers used.
|
|
'react/jsx-uses-vars': 'error',
|
|
// Contexts and modals export a hook or a constant next to the component.
|
|
'react-refresh/only-export-components': ['error', { allowConstantExport: true }],
|
|
},
|
|
},
|
|
{
|
|
// The entry point mounts a few one-off components; nothing here hot-reloads.
|
|
files: ['src/main.jsx'],
|
|
rules: { 'react-refresh/only-export-components': 'off' },
|
|
},
|
|
{
|
|
files: ['vite.config.js', 'vite-plugin-seo.js', 'seo/**/*.js'],
|
|
languageOptions: { globals: { ...globals.node } },
|
|
},
|
|
])
|