style(13-03): apply Prettier formatting across repo
Mechanical reformat — no logic changes. 398 files changed, 19125 insertions(+), 16457 deletions(-). Prettier 3.8.4 with .prettierrc (singleQuote:true, semi:true, tabWidth:2, trailingComma:all, printWidth:100). Isolated per D-13-08 for reviewability.
This commit is contained in:
+10
-16
@@ -4,17 +4,17 @@
|
||||
// ESLint pinned to 9.39.4 — do NOT upgrade to ESLint 10 until eslint-plugin-react
|
||||
// resolves the "getFilename is not a function" incompatibility (jsx-eslint#3977).
|
||||
|
||||
import js from '@eslint/js'
|
||||
import tseslint from 'typescript-eslint'
|
||||
import reactPlugin from 'eslint-plugin-react'
|
||||
import reactHooks from 'eslint-plugin-react-hooks'
|
||||
import prettierConfig from 'eslint-config-prettier/flat'
|
||||
import js from '@eslint/js';
|
||||
import tseslint from 'typescript-eslint';
|
||||
import reactPlugin from 'eslint-plugin-react';
|
||||
import reactHooks from 'eslint-plugin-react-hooks';
|
||||
import prettierConfig from 'eslint-config-prettier/flat';
|
||||
|
||||
export default tseslint.config(
|
||||
// ── 1. Global ignores (replaces .eslintignore) ────────────────────────────
|
||||
{
|
||||
ignores: [
|
||||
'**/dist/**', // build output: apps/api/dist, apps/pwa/dist, generated sw.js
|
||||
'**/dist/**', // build output: apps/api/dist, apps/pwa/dist, generated sw.js
|
||||
'**/node_modules/**',
|
||||
'apps/api/src/db/migrations/**', // generated Drizzle SQL files
|
||||
'pnpm-lock.yaml',
|
||||
@@ -26,10 +26,7 @@ export default tseslint.config(
|
||||
// NOT strict/strictTypeChecked — D-13-03 explicitly rejects the extra churn.
|
||||
{
|
||||
files: ['apps/**/*.{ts,tsx}'],
|
||||
extends: [
|
||||
js.configs.recommended,
|
||||
tseslint.configs.recommendedTypeChecked,
|
||||
],
|
||||
extends: [js.configs.recommended, tseslint.configs.recommendedTypeChecked],
|
||||
languageOptions: {
|
||||
parserOptions: {
|
||||
projectService: true,
|
||||
@@ -49,10 +46,7 @@ export default tseslint.config(
|
||||
// Apps/api is Node/TS only — React config does NOT apply there.
|
||||
{
|
||||
files: ['apps/pwa/**/*.{ts,tsx}'],
|
||||
extends: [
|
||||
reactPlugin.configs.flat.recommended,
|
||||
reactHooks.configs.flat.recommended,
|
||||
],
|
||||
extends: [reactPlugin.configs.flat.recommended, reactHooks.configs.flat.recommended],
|
||||
settings: {
|
||||
react: { version: 'detect' },
|
||||
},
|
||||
@@ -105,7 +99,7 @@ export default tseslint.config(
|
||||
// when that tsconfig explicitly names the files. In practice projectService cannot
|
||||
// find these files via automatic discovery, so type-aware rules are disabled here.
|
||||
'apps/pwa/e2e/**/*.ts',
|
||||
'eslint.config.js', // this file itself (not a ts project member)
|
||||
'eslint.config.js', // this file itself (not a ts project member)
|
||||
],
|
||||
extends: [tseslint.configs.disableTypeChecked],
|
||||
},
|
||||
@@ -115,4 +109,4 @@ export default tseslint.config(
|
||||
// Use the /flat import path for ESM flat config (Pitfall 7).
|
||||
// Source: github.com/prettier/eslint-config-prettier
|
||||
prettierConfig,
|
||||
)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user