The TypeScript, ESLint and Vite configs, .gitignore and .env.development are rewritten with our own notes, with no change to what they do. .gitignore now lets .gitea/ through, so a new workflow file is tracked without git add -f. Gone: upstream's CHANGELOG.md (our releases carry their own notes), the zip build.sh, the Vite template's unused public/icons.svg, the GitLab CI file left from before Gitea, and .github-upstream/, upstream's old workflow kept as a merge reference.
33 lines
1.0 KiB
JavaScript
33 lines
1.0 KiB
JavaScript
// SPDX-FileCopyrightText: 2026 Coffey Labs LLC
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
import js from '@eslint/js'
|
|
import prettier from 'eslint-config-prettier'
|
|
import reactHooks from 'eslint-plugin-react-hooks'
|
|
import reactRefresh from 'eslint-plugin-react-refresh'
|
|
import { defineConfig, globalIgnores } from 'eslint/config'
|
|
import globals from 'globals'
|
|
import tseslint from 'typescript-eslint'
|
|
|
|
export default defineConfig([
|
|
globalIgnores(['dist']),
|
|
{
|
|
// The recommended rules for TypeScript and React hooks; prettier last,
|
|
// so formatting is prettier's alone.
|
|
files: ['**/*.{ts,tsx}'],
|
|
extends: [
|
|
js.configs.recommended,
|
|
tseslint.configs.recommended,
|
|
reactHooks.configs.flat.recommended,
|
|
reactRefresh.configs.vite,
|
|
prettier,
|
|
],
|
|
languageOptions: { ecmaVersion: 2023, globals: globals.browser },
|
|
},
|
|
{
|
|
// The base components export variants and helpers beside components.
|
|
files: ['src/components/ui/**/*.{ts,tsx}'],
|
|
rules: { 'react-refresh/only-export-components': 'off' },
|
|
},
|
|
])
|