Files
inbuxa-admin/eslint.config.js
T
jcoffey-dev 27c19de7e9
ci / build (pull_request) Skipped
github/ci (branch) GitHub Actions
ci / notices (pull_request) Successful in 1m25s
ci / publish (pull_request) Skipped
ci / github (pull_request) Successful in 1m26s
Rewrite the config files; drop what nothing uses
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.
2026-10-18 17:39:58 -07:00

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' },
},
])