- Web app moves to https://jsonprism.poli0981.dev on Cloudflare Workers (static assets + /api/turnstile/verify + /api/health), with security headers, redirects for the old /jsonPrism paths, previews for non-production branches and a production smoke workflow. GitHub Pages only redirects now. - Web-only Turnstile human check (server-verified, 7-day pass) and cookieless Web Analytics (after consent, opt-out, off under GPC); Privacy Policy and Terms 2.0, consent version 2. - Node 26, TypeScript 7 with the TS 6 API alias for typescript-eslint, dependencies on current majors (ends the ERESOLVE that kept main red). - Converter fixes: CSV columns, binary ZIP entries, MySQL backslash escaping, RESX/XML validity, BSON size, YAML quoting and alias limits, TOML nulls and big integers, JSON error positions, JSONL/BOM linting. - Web Worker conversion, faster editor, technical UI refresh with an Appearance menu and custom scrollbars, accessibility and i18n gaps. - Tauri least-privilege capabilities, hardened CSP, Tauri 2.12. - CI: SHA-pinned least-privilege workflows, SonarQube Cloud, Rust job, verifiable releases (SHA256SUMS + provenance); Dependabot grouping. - 864 tests (97% line coverage), SonarCloud quality gate passing; docs, legal and CLAUDE.md refreshed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
59 lines
1.5 KiB
JavaScript
59 lines
1.5 KiB
JavaScript
import js from '@eslint/js';
|
|
import { defineConfig, globalIgnores } from 'eslint/config';
|
|
import globals from 'globals';
|
|
import reactHooks from 'eslint-plugin-react-hooks';
|
|
import reactRefresh from 'eslint-plugin-react-refresh';
|
|
import tseslint from 'typescript-eslint';
|
|
|
|
export default defineConfig([
|
|
globalIgnores([
|
|
'.claude/**',
|
|
'.idea/**',
|
|
'dist',
|
|
'coverage',
|
|
'.wrangler',
|
|
'node_modules',
|
|
'src/components/ui/**',
|
|
'src-tauri/**',
|
|
'worker-configuration.d.ts',
|
|
]),
|
|
{
|
|
files: ['**/*.{ts,tsx}'],
|
|
extends: [js.configs.recommended, tseslint.configs.recommended],
|
|
languageOptions: {
|
|
ecmaVersion: 'latest',
|
|
globals: globals.browser,
|
|
},
|
|
rules: {
|
|
'@typescript-eslint/no-unused-vars': [
|
|
'warn',
|
|
{ argsIgnorePattern: '^_', varsIgnorePattern: '^_' },
|
|
],
|
|
'@typescript-eslint/consistent-type-imports': [
|
|
'error',
|
|
{ prefer: 'type-imports', fixStyle: 'inline-type-imports' },
|
|
],
|
|
},
|
|
},
|
|
{
|
|
files: ['src/**/*.{ts,tsx}'],
|
|
extends: [reactHooks.configs.flat.recommended, reactRefresh.configs.vite],
|
|
rules: {
|
|
// All diagnostics go through src/lib/logger.ts.
|
|
'no-console': 'warn',
|
|
},
|
|
},
|
|
{
|
|
files: ['src/lib/logger.ts'],
|
|
rules: { 'no-console': 'off' },
|
|
},
|
|
{
|
|
files: ['worker/**/*.ts'],
|
|
languageOptions: { globals: globals.serviceworker },
|
|
},
|
|
{
|
|
files: ['vite.config.ts', 'vitest.config.ts', 'eslint.config.js'],
|
|
languageOptions: { globals: globals.node },
|
|
},
|
|
]);
|