@mytechtoday/augment-extensions 2.5.0 → 3.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +2 -1
- package/README.md +27 -1357
- package/augment-extensions/coding-standards/bash/CHANGELOG.md +50 -50
- package/augment-extensions/coding-standards/css/CHANGELOG.md +50 -50
- package/augment-extensions/coding-standards/go/CHANGELOG.md +50 -50
- package/augment-extensions/coding-standards/html/CHANGELOG.md +50 -50
- package/augment-extensions/coding-standards/html-css-js/CHANGELOG.md +50 -50
- package/augment-extensions/coding-standards/js/CHANGELOG.md +50 -50
- package/augment-extensions/coding-standards/php/CHANGELOG.md +50 -50
- package/augment-extensions/coding-standards/powershell/CHANGELOG.md +50 -50
- package/augment-extensions/coding-standards/python/CHANGELOG.md +50 -50
- package/augment-extensions/coding-standards/react/CHANGELOG.md +50 -50
- package/augment-extensions/coding-standards/typescript/CHANGELOG.md +39 -39
- package/augment-extensions/coding-standards/typescript/VERSION +2 -2
- package/augment-extensions/coding-standards/typescript/examples/biome.json +199 -199
- package/augment-extensions/coding-standards/typescript/examples/eslint-flat-config.js +166 -166
- package/augment-extensions/coding-standards/typescript/examples/monorepo-config/README.md +47 -47
- package/augment-extensions/coding-standards/typescript/examples/monorepo-config/package.json +37 -37
- package/augment-extensions/coding-standards/typescript/examples/monorepo-config/pnpm-workspace.yaml +5 -5
- package/augment-extensions/coding-standards/typescript/examples/monorepo-config/tsconfig.base.json +50 -50
- package/augment-extensions/coding-standards/typescript/examples/monorepo-config/turbo.json +47 -47
- package/augment-extensions/coding-standards/typescript/examples/vitest-setup.ts +198 -198
- package/augment-extensions/coding-standards/typescript/metadata.json +46 -46
- package/augment-extensions/coding-standards/typescript/rules/architecture.md +1096 -1096
- package/augment-extensions/coding-standards/typescript/rules/error-handling.md +1174 -1174
- package/augment-extensions/coding-standards/typescript/rules/modern-features.md +625 -625
- package/augment-extensions/coding-standards/typescript/rules/monorepo.md +745 -745
- package/augment-extensions/coding-standards/typescript/rules/security-performance.md +850 -850
- package/augment-extensions/coding-standards/typescript/rules/testing.md +918 -918
- package/augment-extensions/coding-standards/typescript/rules/tooling.md +1071 -1071
- package/augment-extensions/coding-standards/typescript/rules/type-patterns.md +750 -750
- package/augment-extensions/domain-rules/api-design/CHANGELOG.md +50 -50
- package/augment-extensions/domain-rules/database/CHANGELOG.md +50 -50
- package/augment-extensions/domain-rules/design/color/themes/catppuccin-latte/CHANGELOG.md +50 -50
- package/augment-extensions/domain-rules/design/color/themes/catppuccin-mocha/CHANGELOG.md +50 -50
- package/augment-extensions/domain-rules/design/color/themes/dracula/CHANGELOG.md +50 -50
- package/augment-extensions/domain-rules/design/color/themes/gruvbox-dark/CHANGELOG.md +50 -50
- package/augment-extensions/domain-rules/design/color/themes/gruvbox-light/CHANGELOG.md +50 -50
- package/augment-extensions/domain-rules/design/color/themes/high-contrast/CHANGELOG.md +50 -50
- package/augment-extensions/domain-rules/design/color/themes/monokai/CHANGELOG.md +50 -50
- package/augment-extensions/domain-rules/design/color/themes/nord/CHANGELOG.md +50 -50
- package/augment-extensions/domain-rules/design/color/themes/one-dark/CHANGELOG.md +50 -50
- package/augment-extensions/domain-rules/design/color/themes/one-light/CHANGELOG.md +50 -50
- package/augment-extensions/domain-rules/design/color/themes/solarized-dark/CHANGELOG.md +50 -50
- package/augment-extensions/domain-rules/design/color/themes/solarized-light/CHANGELOG.md +50 -50
- package/augment-extensions/domain-rules/design/color/themes/tokyo-night/CHANGELOG.md +50 -50
- package/augment-extensions/domain-rules/mcp/CHANGELOG.md +50 -50
- package/augment-extensions/domain-rules/security/CHANGELOG.md +50 -50
- package/augment-extensions/domain-rules/seo-sales-marketing/CHANGELOG.md +50 -50
- package/augment-extensions/domain-rules/software-architecture/CHANGELOG.md +50 -50
- package/augment-extensions/domain-rules/wordpress/CHANGELOG.md +50 -50
- package/augment-extensions/domain-rules/wordpress-plugin/CHANGELOG.md +50 -50
- package/augment-extensions/examples/design-patterns/CHANGELOG.md +50 -50
- package/augment-extensions/examples/gutenberg-block-plugin/CHANGELOG.md +50 -50
- package/augment-extensions/examples/rest-api-plugin/CHANGELOG.md +50 -50
- package/augment-extensions/examples/woocommerce-extension/CHANGELOG.md +50 -50
- package/augment-extensions/workflows/adr-support/CHANGELOG.md +50 -50
- package/augment-extensions/workflows/database/CHANGELOG.md +50 -50
- package/augment-extensions/workflows/wordpress-plugin/CHANGELOG.md +50 -50
- package/cli/AGENTS.md +21 -21
- package/cli/dist/analysis/ast-parser.d.ts +11 -31
- package/cli/dist/analysis/ast-parser.d.ts.map +1 -1
- package/cli/dist/analysis/ast-parser.js +28 -77
- package/cli/dist/analysis/ast-parser.js.map +1 -1
- package/cli/dist/analysis/complexity-analyzer.d.ts +4 -22
- package/cli/dist/analysis/complexity-analyzer.d.ts.map +1 -1
- package/cli/dist/analysis/complexity-analyzer.js +68 -96
- package/cli/dist/analysis/complexity-analyzer.js.map +1 -1
- package/cli/dist/analysis/dependency-analyzer.d.ts +1 -15
- package/cli/dist/analysis/dependency-analyzer.d.ts.map +1 -1
- package/cli/dist/analysis/dependency-analyzer.js +163 -116
- package/cli/dist/analysis/dependency-analyzer.js.map +1 -1
- package/cli/dist/analysis/security-scanner.d.ts +0 -5
- package/cli/dist/analysis/security-scanner.d.ts.map +1 -1
- package/cli/dist/analysis/security-scanner.js +88 -180
- package/cli/dist/analysis/security-scanner.js.map +1 -1
- package/cli/dist/analysis/types.d.ts +1 -40
- package/cli/dist/analysis/types.d.ts.map +1 -1
- package/cli/dist/cli.js +18 -39
- package/cli/dist/cli.js.map +1 -1
- package/cli/dist/commands/code-analysis.d.ts +0 -5
- package/cli/dist/commands/code-analysis.d.ts.map +1 -1
- package/cli/dist/commands/code-analysis.js +114 -133
- package/cli/dist/commands/code-analysis.js.map +1 -1
- package/cli/dist/commands/gui.d.ts +4 -0
- package/cli/dist/commands/gui.d.ts.map +1 -1
- package/cli/dist/commands/gui.js +45 -6
- package/cli/dist/commands/gui.js.map +1 -1
- package/cli/dist/commands/init.d.ts.map +1 -1
- package/cli/dist/commands/init.js +11 -0
- package/cli/dist/commands/init.js.map +1 -1
- package/cli/dist/commands/link.d.ts.map +1 -1
- package/cli/dist/commands/link.js +2 -2
- package/cli/dist/commands/link.js.map +1 -1
- package/cli/dist/commands/search.d.ts.map +1 -1
- package/cli/dist/commands/search.js +20 -79
- package/cli/dist/commands/search.js.map +1 -1
- package/cli/dist/commands/show.js +8 -32
- package/cli/dist/commands/show.js.map +1 -1
- package/cli/dist/commands/unlink.d.ts.map +1 -1
- package/cli/dist/commands/unlink.js +5 -4
- package/cli/dist/commands/unlink.js.map +1 -1
- package/cli/dist/commands/update.d.ts.map +1 -1
- package/cli/dist/commands/update.js +6 -2
- package/cli/dist/commands/update.js.map +1 -1
- package/cli/dist/commands/upgrade.d.ts +0 -8
- package/cli/dist/commands/upgrade.d.ts.map +1 -1
- package/cli/dist/commands/upgrade.js +16 -34
- package/cli/dist/commands/upgrade.js.map +1 -1
- package/cli/dist/commands/use.d.ts +0 -8
- package/cli/dist/commands/use.d.ts.map +1 -1
- package/cli/dist/commands/use.js +22 -46
- package/cli/dist/commands/use.js.map +1 -1
- package/cli/dist/commands/version-info.d.ts +0 -8
- package/cli/dist/commands/version-info.d.ts.map +1 -1
- package/cli/dist/commands/version-info.js +13 -37
- package/cli/dist/commands/version-info.js.map +1 -1
- package/cli/dist/core/module-loader.d.ts +3 -43
- package/cli/dist/core/module-loader.d.ts.map +1 -1
- package/cli/dist/core/module-loader.js +8 -55
- package/cli/dist/core/module-loader.js.map +1 -1
- package/cli/dist/index.d.ts +0 -4
- package/cli/dist/index.d.ts.map +1 -1
- package/cli/dist/index.js +0 -5
- package/cli/dist/index.js.map +1 -1
- package/cli/dist/utils/ai-prompts.js +124 -124
- package/cli/dist/utils/config-loader.d.ts +3 -39
- package/cli/dist/utils/config-loader.d.ts.map +1 -1
- package/cli/dist/utils/config-loader.js +20 -64
- package/cli/dist/utils/config-loader.js.map +1 -1
- package/cli/dist/utils/extractCommandHelp.d.ts +10 -1
- package/cli/dist/utils/extractCommandHelp.d.ts.map +1 -1
- package/cli/dist/utils/extractCommandHelp.js +83 -15
- package/cli/dist/utils/extractCommandHelp.js.map +1 -1
- package/cli/dist/utils/install-rules.d.ts +5 -0
- package/cli/dist/utils/install-rules.d.ts.map +1 -1
- package/cli/dist/utils/install-rules.js +120 -0
- package/cli/dist/utils/install-rules.js.map +1 -1
- package/cli/dist/utils/module-system.d.ts.map +1 -1
- package/cli/dist/utils/module-system.js +10 -4
- package/cli/dist/utils/module-system.js.map +1 -1
- package/package.json +134 -136
- package/augment-extensions/workflows/beads/CHANGELOG.md +0 -51
- package/augment-extensions/workflows/beads/README.md +0 -135
- package/augment-extensions/workflows/beads/examples/complete-workflow-example.md +0 -278
- package/augment-extensions/workflows/beads/metadata.json +0 -23
- package/augment-extensions/workflows/beads/module.json +0 -55
- package/augment-extensions/workflows/beads/rules/best-practices.md +0 -398
- package/augment-extensions/workflows/beads/rules/file-format.md +0 -327
- package/augment-extensions/workflows/beads/rules/manual-setup.md +0 -315
- package/augment-extensions/workflows/beads/rules/workflow.md +0 -326
- package/augment-extensions/workflows/beads-integration/CHANGELOG.md +0 -51
- package/augment-extensions/workflows/beads-integration/IMPLEMENTATION-STATUS.md +0 -145
- package/augment-extensions/workflows/beads-integration/README.md +0 -143
- package/augment-extensions/workflows/beads-integration/config/defaults.json +0 -32
- package/augment-extensions/workflows/beads-integration/config/schema.json +0 -140
- package/augment-extensions/workflows/beads-integration/examples/basic-task-generation.md +0 -293
- package/augment-extensions/workflows/beads-integration/metadata.json +0 -30
- package/augment-extensions/workflows/beads-integration/module.json +0 -75
- package/augment-extensions/workflows/beads-integration/rules/core-rules.md +0 -219
- package/augment-extensions/workflows/beads-integration/rules/effectiveness-standards.md +0 -256
- package/augment-extensions/workflows/beads-integration/rules/task-generation.md +0 -607
- package/augment-extensions/writing-standards/literature/shakespeare/ANNOUNCEMENT.md +0 -176
- package/augment-extensions/writing-standards/literature/shakespeare/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/literature/shakespeare/CHARACTER-THEME-VALIDATION-REPORT.md +0 -465
- package/augment-extensions/writing-standards/literature/shakespeare/DRAMA-VALIDATION-REPORT.md +0 -217
- package/augment-extensions/writing-standards/literature/shakespeare/LANGUAGE-VALIDATION-REPORT.md +0 -195
- package/augment-extensions/writing-standards/literature/shakespeare/PHASE6-VALIDATION-REPORT.md +0 -359
- package/augment-extensions/writing-standards/literature/shakespeare/README.md +0 -126
- package/augment-extensions/writing-standards/literature/shakespeare/examples/annotated-sonnets/sonnet-130.md +0 -225
- package/augment-extensions/writing-standards/literature/shakespeare/examples/annotated-sonnets/sonnet-18.md +0 -188
- package/augment-extensions/writing-standards/literature/shakespeare/examples/annotated-sonnets/sonnet-73.md +0 -215
- package/augment-extensions/writing-standards/literature/shakespeare/examples/exercises/character-worksheet.md +0 -407
- package/augment-extensions/writing-standards/literature/shakespeare/examples/exercises/iambic-pentameter-practice.md +0 -470
- package/augment-extensions/writing-standards/literature/shakespeare/examples/exercises/sonnet-writing-exercise.md +0 -360
- package/augment-extensions/writing-standards/literature/shakespeare/examples/exercises/theme-analysis-template.md +0 -527
- package/augment-extensions/writing-standards/literature/shakespeare/examples/exercises/verse-analysis-exercise.md +0 -426
- package/augment-extensions/writing-standards/literature/shakespeare/examples/scene-examples/hamlet-to-be-or-not-to-be.md +0 -316
- package/augment-extensions/writing-standards/literature/shakespeare/examples/scene-examples/king-lear-storm-scene.md +0 -576
- package/augment-extensions/writing-standards/literature/shakespeare/examples/scene-examples/macbeth-tomorrow-and-tomorrow.md +0 -448
- package/augment-extensions/writing-standards/literature/shakespeare/examples/scene-examples/much-ado-benedick-eavesdropping.md +0 -496
- package/augment-extensions/writing-standards/literature/shakespeare/examples/scene-examples/romeo-juliet-balcony.md +0 -287
- package/augment-extensions/writing-standards/literature/shakespeare/examples/scene-examples/twelfth-night-malvolio-letter.md +0 -653
- package/augment-extensions/writing-standards/literature/shakespeare/metadata.json +0 -60
- package/augment-extensions/writing-standards/literature/shakespeare/module.json +0 -72
- package/augment-extensions/writing-standards/literature/shakespeare/rules/character-themes/character-development.md +0 -608
- package/augment-extensions/writing-standards/literature/shakespeare/rules/character-themes/thematic-elements.md +0 -471
- package/augment-extensions/writing-standards/literature/shakespeare/rules/drama/comedy.md +0 -763
- package/augment-extensions/writing-standards/literature/shakespeare/rules/drama/history-plays.md +0 -507
- package/augment-extensions/writing-standards/literature/shakespeare/rules/drama/scene-construction.md +0 -870
- package/augment-extensions/writing-standards/literature/shakespeare/rules/drama/tragedy.md +0 -743
- package/augment-extensions/writing-standards/literature/shakespeare/rules/language/elizabethan-english.md +0 -400
- package/augment-extensions/writing-standards/literature/shakespeare/rules/language/rhetoric-wordplay.md +0 -602
- package/augment-extensions/writing-standards/literature/shakespeare/rules/language/vocabulary-guide.md +0 -662
- package/augment-extensions/writing-standards/literature/shakespeare/rules/poetry/iambic-pentameter.md +0 -447
- package/augment-extensions/writing-standards/literature/shakespeare/rules/poetry/narrative-poetry.md +0 -453
- package/augment-extensions/writing-standards/literature/shakespeare/rules/poetry/sonnets.md +0 -435
- package/augment-extensions/writing-standards/literature/shakespeare/rules/poetry/verse-forms.md +0 -565
- package/augment-extensions/writing-standards/screenplay/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/README.md +0 -392
- package/augment-extensions/writing-standards/screenplay/_templates/README.md +0 -121
- package/augment-extensions/writing-standards/screenplay/_templates/genre-template.md +0 -153
- package/augment-extensions/writing-standards/screenplay/_templates/style-template.md +0 -243
- package/augment-extensions/writing-standards/screenplay/_templates/theme-template.md +0 -213
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/MIGRATION.md +0 -213
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/README.md +0 -309
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/REFACTORING-SUMMARY.md +0 -99
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/comedy-formats/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/comedy-formats/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/comedy-formats/module.json +0 -33
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/comedy-formats/monty-python/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/comedy-formats/monty-python/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/comedy-formats/monty-python/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/comedy-formats/monty-python/rules/monty-python.md +0 -243
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/comedy-formats/saturday-night-live/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/comedy-formats/saturday-night-live/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/comedy-formats/saturday-night-live/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/comedy-formats/saturday-night-live/rules/saturday-night-live.md +0 -153
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/README.md +0 -127
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/alfred-hitchcock/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/alfred-hitchcock/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/alfred-hitchcock/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/alfred-hitchcock/rules/alfred-hitchcock.md +0 -168
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/ari-aster/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/ari-aster/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/ari-aster/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/ari-aster/rules/ari-aster.md +0 -414
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/brad-bird/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/brad-bird/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/brad-bird/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/brad-bird/rules/brad-bird.md +0 -362
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/brian-de-palma/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/brian-de-palma/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/brian-de-palma/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/brian-de-palma/rules/brian-de-palma.md +0 -445
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/buster-keaton/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/buster-keaton/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/buster-keaton/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/buster-keaton/rules/buster-keaton.md +0 -508
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/christopher-nolan/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/christopher-nolan/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/christopher-nolan/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/christopher-nolan/rules/christopher-nolan.md +0 -147
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/clint-eastwood/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/clint-eastwood/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/clint-eastwood/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/clint-eastwood/rules/clint-eastwood.md +0 -639
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/coen-brothers/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/coen-brothers/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/coen-brothers/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/coen-brothers/rules/coen-brothers.md +0 -167
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/darren-aronofsky/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/darren-aronofsky/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/darren-aronofsky/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/darren-aronofsky/rules/darren-aronofsky.md +0 -474
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/david-fincher/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/david-fincher/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/david-fincher/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/david-fincher/rules/david-fincher.md +0 -203
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/david-lynch/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/david-lynch/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/david-lynch/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/david-lynch/rules/david-lynch.md +0 -136
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/denis-villeneuve/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/denis-villeneuve/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/denis-villeneuve/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/denis-villeneuve/rules/denis-villeneuve.md +0 -131
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/francis-ford-coppola/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/francis-ford-coppola/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/francis-ford-coppola/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/francis-ford-coppola/rules/francis-ford-coppola.md +0 -190
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/gary-marshall/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/gary-marshall/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/gary-marshall/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/gary-marshall/rules/gary-marshall.md +0 -181
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/george-a-romero/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/george-a-romero/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/george-a-romero/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/george-a-romero/rules/george-a-romero.md +0 -391
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/george-lucas/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/george-lucas/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/george-lucas/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/george-lucas/rules/george-lucas.md +0 -129
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/guillermo-del-toro/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/guillermo-del-toro/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/guillermo-del-toro/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/guillermo-del-toro/rules/guillermo-del-toro.md +0 -350
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/gus-van-sant/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/gus-van-sant/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/gus-van-sant/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/gus-van-sant/rules/gus-van-sant.md +0 -353
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/james-ivory-ismail-merchant/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/james-ivory-ismail-merchant/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/james-ivory-ismail-merchant/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/james-ivory-ismail-merchant/rules/james-ivory-ismail-merchant.md +0 -164
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/jim-jarmusch/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/jim-jarmusch/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/jim-jarmusch/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/jim-jarmusch/rules/jim-jarmusch.md +0 -426
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/john-carpenter/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/john-carpenter/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/john-carpenter/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/john-carpenter/rules/john-carpenter.md +0 -450
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/john-ford/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/john-ford/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/john-ford/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/john-ford/rules/john-ford.md +0 -429
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/john-huston/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/john-huston/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/john-huston/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/john-huston/rules/john-huston.md +0 -357
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/john-landis/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/john-landis/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/john-landis/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/john-landis/rules/john-landis.md +0 -483
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/jonathan-demme/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/jonathan-demme/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/jonathan-demme/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/jonathan-demme/rules/jonathan-demme.md +0 -394
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/joseph-l-mankiewicz/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/joseph-l-mankiewicz/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/joseph-l-mankiewicz/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/joseph-l-mankiewicz/rules/joseph-l-mankiewicz.md +0 -406
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/kathryn-bigelow/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/kathryn-bigelow/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/kathryn-bigelow/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/kathryn-bigelow/rules/kathryn-bigelow.md +0 -443
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/kelly-reichardt/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/kelly-reichardt/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/kelly-reichardt/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/kelly-reichardt/rules/kelly-reichardt.md +0 -365
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/kevin-smith/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/kevin-smith/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/kevin-smith/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/kevin-smith/rules/kevin-smith.md +0 -546
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/linda-shayne/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/linda-shayne/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/linda-shayne/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/linda-shayne/rules/linda-shayne.md +0 -341
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/martin-scorsese/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/martin-scorsese/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/martin-scorsese/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/martin-scorsese/rules/martin-scorsese.md +0 -188
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/mel-brooks/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/mel-brooks/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/mel-brooks/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/mel-brooks/rules/mel-brooks.md +0 -215
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/metadata.json +0 -25
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/michael-curtiz/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/michael-curtiz/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/michael-curtiz/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/michael-curtiz/rules/michael-curtiz.md +0 -429
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/michael-mann/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/michael-mann/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/michael-mann/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/michael-mann/rules/michael-mann.md +0 -416
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/mike-nichols/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/mike-nichols/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/mike-nichols/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/mike-nichols/rules/mike-nichols.md +0 -383
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/module.json +0 -410
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/orson-welles/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/orson-welles/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/orson-welles/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/orson-welles/rules/orson-welles.md +0 -400
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/park-chan-wook/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/park-chan-wook/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/park-chan-wook/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/park-chan-wook/rules/park-chan-wook.md +0 -357
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/paul-thomas-anderson/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/paul-thomas-anderson/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/paul-thomas-anderson/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/paul-thomas-anderson/rules/paul-thomas-anderson.md +0 -143
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/penny-marshall/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/penny-marshall/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/penny-marshall/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/penny-marshall/rules/penny-marshall.md +0 -139
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/peter-bogdanovich/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/peter-bogdanovich/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/peter-bogdanovich/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/peter-bogdanovich/rules/peter-bogdanovich.md +0 -411
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/quentin-tarantino/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/quentin-tarantino/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/quentin-tarantino/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/quentin-tarantino/rules/quentin-tarantino.md +0 -178
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/richard-linklater/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/richard-linklater/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/richard-linklater/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/richard-linklater/rules/richard-linklater.md +0 -463
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/rob-reiner/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/rob-reiner/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/rob-reiner/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/rob-reiner/rules/rob-reiner.md +0 -470
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/robert-altman/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/robert-altman/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/robert-altman/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/robert-altman/rules/robert-altman.md +0 -447
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/robert-eggers/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/robert-eggers/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/robert-eggers/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/robert-eggers/rules/robert-eggers.md +0 -361
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/robert-zemeckis/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/robert-zemeckis/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/robert-zemeckis/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/robert-zemeckis/rules/robert-zemeckis.md +0 -489
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/sam-peckinpah/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/sam-peckinpah/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/sam-peckinpah/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/sam-peckinpah/rules/sam-peckinpah.md +0 -475
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/sidney-lumet/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/sidney-lumet/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/sidney-lumet/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/sidney-lumet/rules/sidney-lumet.md +0 -387
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/spike-lee/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/spike-lee/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/spike-lee/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/spike-lee/rules/spike-lee.md +0 -500
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/stanley-donen-gene-kelly/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/stanley-donen-gene-kelly/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/stanley-donen-gene-kelly/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/stanley-donen-gene-kelly/rules/stanley-donen-gene-kelly.md +0 -406
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/stanley-kubrick/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/stanley-kubrick/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/stanley-kubrick/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/stanley-kubrick/rules/stanley-kubrick.md +0 -183
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/steve-martin/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/steve-martin/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/steve-martin/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/steve-martin/rules/steve-martin.md +0 -138
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/steven-spielberg/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/steven-spielberg/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/steven-spielberg/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/steven-spielberg/rules/steven-spielberg.md +0 -179
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/sydney-pollack/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/sydney-pollack/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/sydney-pollack/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/sydney-pollack/rules/sydney-pollack.md +0 -356
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/terry-gilliam/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/terry-gilliam/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/terry-gilliam/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/terry-gilliam/rules/terry-gilliam.md +0 -546
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/tim-burton/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/tim-burton/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/tim-burton/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/tim-burton/rules/tim-burton.md +0 -356
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/tobe-hooper/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/tobe-hooper/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/tobe-hooper/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/tobe-hooper/rules/tobe-hooper.md +0 -596
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/wes-anderson/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/wes-anderson/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/wes-anderson/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/wes-anderson/rules/wes-anderson.md +0 -146
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/william-friedkin/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/william-friedkin/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/william-friedkin/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/william-friedkin/rules/william-friedkin.md +0 -378
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/examples/style-applications.md +0 -740
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/films/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/films/blue-ruin/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/films/blue-ruin/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/films/blue-ruin/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/films/blue-ruin/rules/blue-ruin.md +0 -721
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/films/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/films/module.json +0 -27
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/films/rules/blue-ruin.md.bak +0 -667
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/fast-and-furious/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/fast-and-furious/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/fast-and-furious/module.json +0 -17
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/fast-and-furious/rules/the-fast-and-furious-saga.md +0 -427
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/harry-potter/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/harry-potter/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/harry-potter/module.json +0 -17
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/harry-potter/rules/harry-potter.md +0 -170
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/james-bond/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/james-bond/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/james-bond/module.json +0 -17
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/james-bond/rules/james-bond.md +0 -440
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/john-wick/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/john-wick/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/john-wick/module.json +0 -17
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/john-wick/rules/john-wick.md +0 -375
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/lord-of-the-rings/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/lord-of-the-rings/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/lord-of-the-rings/module.json +0 -17
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/lord-of-the-rings/rules/lord-of-the-rings.md +0 -437
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/mcu/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/mcu/metadata.json +0 -25
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/mcu/module.json +0 -29
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/mcu/rules/mcu-avengers.md +0 -985
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/mcu/rules/mcu-avengers.md.bak +0 -933
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/metadata.json +0 -25
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/module.json +0 -93
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/star-trek/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/star-trek/metadata.json +0 -33
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/star-trek/module.json +0 -46
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/star-trek/rules/star-trek-deep-space-nine.md +0 -146
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/star-trek/rules/star-trek-enterprise.md +0 -149
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/star-trek/rules/star-trek-strange-new-world.md +0 -156
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/star-trek/rules/star-trek-the-next-generation.md +0 -163
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/star-trek/rules/star-trek-tos.md +0 -148
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/star-trek/rules/star-trek-voyager.md +0 -148
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/star-trek/rules/star-trek.md +0 -163
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/star-wars/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/star-wars/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/star-wars/module.json +0 -17
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/star-wars/rules/star-wars.md +0 -213
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/metadata.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/module.json +0 -128
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/narrative-theory/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/narrative-theory/joseph-campbell/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/narrative-theory/joseph-campbell/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/narrative-theory/joseph-campbell/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/narrative-theory/joseph-campbell/rules/joseph-campbell.md +0 -178
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/narrative-theory/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/narrative-theory/module.json +0 -27
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/producers/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/producers/bruckheimer-and-simpson/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/producers/bruckheimer-and-simpson/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/producers/bruckheimer-and-simpson/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/producers/bruckheimer-and-simpson/rules/bruckheimer-and-simpson.md +0 -376
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/producers/metadata.json +0 -23
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/producers/module.json +0 -26
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/rules/blue-ruin.md +0 -667
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/rules/christopher-nolan.md +0 -126
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/rules/coen-brothers.md +0 -154
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/rules/david-lynch.md +0 -124
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/rules/denis-villeneuve.md +0 -119
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/rules/francis-ford-coppola.md +0 -176
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/rules/george-lucas.md +0 -116
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/rules/joseph-campbell.md +0 -167
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/rules/martin-scorsese.md +0 -174
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/rules/mcu-avengers.md +0 -933
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/rules/monty-python.md +0 -231
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/rules/quentin-tarantino.md +0 -167
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/rules/saturday-night-live.md +0 -141
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/rules/stanley-kubrick.md +0 -169
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/rules/star-wars.md +0 -200
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/rules/steven-spielberg.md +0 -165
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/rules/wes-anderson.md +0 -134
- package/augment-extensions/writing-standards/screenplay/commercials/CHARACTER-COUNT-TRACKING.md +0 -226
- package/augment-extensions/writing-standards/screenplay/commercials/CONFIGURATION.md +0 -327
- package/augment-extensions/writing-standards/screenplay/commercials/README.md +0 -223
- package/augment-extensions/writing-standards/screenplay/commercials/REFACTORING-SUMMARY.md +0 -193
- package/augment-extensions/writing-standards/screenplay/commercials/REFERENCES.md +0 -157
- package/augment-extensions/writing-standards/screenplay/commercials/VALIDATION-REPORT.md +0 -109
- package/augment-extensions/writing-standards/screenplay/commercials/examples/.gitkeep +0 -0
- package/augment-extensions/writing-standards/screenplay/commercials/module.json +0 -111
- package/augment-extensions/writing-standards/screenplay/commercials/rules/.gitkeep +0 -0
- package/augment-extensions/writing-standards/screenplay/commercials/rules/commercial-audience.md +0 -343
- package/augment-extensions/writing-standards/screenplay/commercials/rules/commercial-formats.md +0 -396
- package/augment-extensions/writing-standards/screenplay/commercials/rules/commercial-persuasion.md +0 -387
- package/augment-extensions/writing-standards/screenplay/commercials/rules/commercial-scripts.md +0 -531
- package/augment-extensions/writing-standards/screenplay/commercials/rules/commercial-techniques.md +0 -912
- package/augment-extensions/writing-standards/screenplay/commercials/rules/commercial-types.md +0 -700
- package/augment-extensions/writing-standards/screenplay/commercials/rules/commercials.md +0 -285
- package/augment-extensions/writing-standards/screenplay/commercials/scripts/validate-character-count.ts +0 -284
- package/augment-extensions/writing-standards/screenplay/examples/aaa-hollywood-scene.fountain +0 -164
- package/augment-extensions/writing-standards/screenplay/examples/beat-sheet-example.yaml +0 -95
- package/augment-extensions/writing-standards/screenplay/examples/character-profile-example.yaml +0 -116
- package/augment-extensions/writing-standards/screenplay/examples/commercial-30sec.fountain +0 -151
- package/augment-extensions/writing-standards/screenplay/examples/independent-monologue.fountain +0 -67
- package/augment-extensions/writing-standards/screenplay/examples/news-segment.fountain +0 -142
- package/augment-extensions/writing-standards/screenplay/examples/plot-outline-example.yaml +0 -184
- package/augment-extensions/writing-standards/screenplay/examples/tv-episode-teaser.fountain +0 -204
- package/augment-extensions/writing-standards/screenplay/genres/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/genres/README.md +0 -181
- package/augment-extensions/writing-standards/screenplay/genres/examples/.gitkeep +0 -2
- package/augment-extensions/writing-standards/screenplay/genres/metadata.json +0 -43
- package/augment-extensions/writing-standards/screenplay/genres/module.json +0 -70
- package/augment-extensions/writing-standards/screenplay/genres/rules/.gitkeep +0 -2
- package/augment-extensions/writing-standards/screenplay/genres/rules/action.md +0 -399
- package/augment-extensions/writing-standards/screenplay/genres/rules/adventure.md +0 -407
- package/augment-extensions/writing-standards/screenplay/genres/rules/animation.md +0 -293
- package/augment-extensions/writing-standards/screenplay/genres/rules/biographical.md +0 -293
- package/augment-extensions/writing-standards/screenplay/genres/rules/comedy.md +0 -401
- package/augment-extensions/writing-standards/screenplay/genres/rules/documentary.md +0 -293
- package/augment-extensions/writing-standards/screenplay/genres/rules/drama.md +0 -409
- package/augment-extensions/writing-standards/screenplay/genres/rules/fantasy.md +0 -293
- package/augment-extensions/writing-standards/screenplay/genres/rules/historical.md +0 -293
- package/augment-extensions/writing-standards/screenplay/genres/rules/horror.md +0 -268
- package/augment-extensions/writing-standards/screenplay/genres/rules/musical.md +0 -294
- package/augment-extensions/writing-standards/screenplay/genres/rules/mystery.md +0 -293
- package/augment-extensions/writing-standards/screenplay/genres/rules/noir.md +0 -294
- package/augment-extensions/writing-standards/screenplay/genres/rules/romance.md +0 -293
- package/augment-extensions/writing-standards/screenplay/genres/rules/sci-fi.md +0 -289
- package/augment-extensions/writing-standards/screenplay/genres/rules/superhero.md +0 -293
- package/augment-extensions/writing-standards/screenplay/genres/rules/thriller.md +0 -294
- package/augment-extensions/writing-standards/screenplay/genres/rules/western.md +0 -293
- package/augment-extensions/writing-standards/screenplay/metadata.json +0 -65
- package/augment-extensions/writing-standards/screenplay/module.json +0 -171
- package/augment-extensions/writing-standards/screenplay/rules/aaa-hollywood-films.md +0 -339
- package/augment-extensions/writing-standards/screenplay/rules/ai-integration-testing.md +0 -329
- package/augment-extensions/writing-standards/screenplay/rules/character-development.md +0 -169
- package/augment-extensions/writing-standards/screenplay/rules/commercials.md +0 -437
- package/augment-extensions/writing-standards/screenplay/rules/dialogue-writing.md +0 -263
- package/augment-extensions/writing-standards/screenplay/rules/diversity-inclusion.md +0 -261
- package/augment-extensions/writing-standards/screenplay/rules/examples-guide.md +0 -315
- package/augment-extensions/writing-standards/screenplay/rules/file-organization.md +0 -213
- package/augment-extensions/writing-standards/screenplay/rules/formatting-validation.md +0 -413
- package/augment-extensions/writing-standards/screenplay/rules/fountain-format.md +0 -372
- package/augment-extensions/writing-standards/screenplay/rules/independent-films.md +0 -374
- package/augment-extensions/writing-standards/screenplay/rules/live-tv-productions.md +0 -443
- package/augment-extensions/writing-standards/screenplay/rules/narrative-structures.md +0 -207
- package/augment-extensions/writing-standards/screenplay/rules/news-broadcasts.md +0 -444
- package/augment-extensions/writing-standards/screenplay/rules/pacing-timing.md +0 -331
- package/augment-extensions/writing-standards/screenplay/rules/quality-review-checklist.md +0 -334
- package/augment-extensions/writing-standards/screenplay/rules/quick-reference.md +0 -299
- package/augment-extensions/writing-standards/screenplay/rules/screen-continuity.md +0 -263
- package/augment-extensions/writing-standards/screenplay/rules/streaming-content.md +0 -412
- package/augment-extensions/writing-standards/screenplay/rules/trope-management.md +0 -370
- package/augment-extensions/writing-standards/screenplay/rules/tv-series.md +0 -374
- package/augment-extensions/writing-standards/screenplay/rules/universal-formatting.md +0 -339
- package/augment-extensions/writing-standards/screenplay/rules/vscode-integration.md +0 -277
- package/augment-extensions/writing-standards/screenplay/rules/web-content.md +0 -393
- package/augment-extensions/writing-standards/screenplay/schemas/beat-sheet.json +0 -332
- package/augment-extensions/writing-standards/screenplay/schemas/character-profile.json +0 -247
- package/augment-extensions/writing-standards/screenplay/schemas/feature-selection.json +0 -200
- package/augment-extensions/writing-standards/screenplay/schemas/plot-outline.json +0 -233
- package/augment-extensions/writing-standards/screenplay/schemas/screenplay-config.json +0 -245
- package/augment-extensions/writing-standards/screenplay/schemas/trope-inventory.json +0 -221
- package/augment-extensions/writing-standards/screenplay/styles/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/styles/README.md +0 -159
- package/augment-extensions/writing-standards/screenplay/styles/examples/.gitkeep +0 -2
- package/augment-extensions/writing-standards/screenplay/styles/examples/style-applications.md +0 -1449
- package/augment-extensions/writing-standards/screenplay/styles/metadata.json +0 -38
- package/augment-extensions/writing-standards/screenplay/styles/module.json +0 -64
- package/augment-extensions/writing-standards/screenplay/styles/rules/.gitkeep +0 -2
- package/augment-extensions/writing-standards/screenplay/styles/rules/dialogue-centric.md +0 -520
- package/augment-extensions/writing-standards/screenplay/styles/rules/ensemble.md +0 -499
- package/augment-extensions/writing-standards/screenplay/styles/rules/epic.md +0 -497
- package/augment-extensions/writing-standards/screenplay/styles/rules/experimental.md +0 -492
- package/augment-extensions/writing-standards/screenplay/styles/rules/flashback.md +0 -509
- package/augment-extensions/writing-standards/screenplay/styles/rules/linear.md +0 -490
- package/augment-extensions/writing-standards/screenplay/styles/rules/minimalist.md +0 -499
- package/augment-extensions/writing-standards/screenplay/styles/rules/non-linear.md +0 -501
- package/augment-extensions/writing-standards/screenplay/styles/rules/poetic.md +0 -499
- package/augment-extensions/writing-standards/screenplay/styles/rules/realistic.md +0 -498
- package/augment-extensions/writing-standards/screenplay/styles/rules/satirical.md +0 -499
- package/augment-extensions/writing-standards/screenplay/styles/rules/surreal.md +0 -508
- package/augment-extensions/writing-standards/screenplay/styles/rules/voice-over.md +0 -500
- package/augment-extensions/writing-standards/screenplay/themes/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/themes/README.md +0 -158
- package/augment-extensions/writing-standards/screenplay/themes/examples/.gitkeep +0 -2
- package/augment-extensions/writing-standards/screenplay/themes/examples/common-mistakes-and-fixes.md +0 -643
- package/augment-extensions/writing-standards/screenplay/themes/examples/complete-scene-example.md +0 -311
- package/augment-extensions/writing-standards/screenplay/themes/examples/individual-theme-examples.md +0 -562
- package/augment-extensions/writing-standards/screenplay/themes/examples/multi-theme-weaving.md +0 -538
- package/augment-extensions/writing-standards/screenplay/themes/examples/theme-application-guide.md +0 -432
- package/augment-extensions/writing-standards/screenplay/themes/examples/theme-integration-across-acts.md +0 -637
- package/augment-extensions/writing-standards/screenplay/themes/metadata.json +0 -47
- package/augment-extensions/writing-standards/screenplay/themes/module.json +0 -66
- package/augment-extensions/writing-standards/screenplay/themes/rules/.gitkeep +0 -2
- package/augment-extensions/writing-standards/screenplay/themes/rules/ambition.md +0 -458
- package/augment-extensions/writing-standards/screenplay/themes/rules/betrayal.md +0 -490
- package/augment-extensions/writing-standards/screenplay/themes/rules/environment.md +0 -458
- package/augment-extensions/writing-standards/screenplay/themes/rules/fate.md +0 -459
- package/augment-extensions/writing-standards/screenplay/themes/rules/friendship.md +0 -491
- package/augment-extensions/writing-standards/screenplay/themes/rules/growth.md +0 -491
- package/augment-extensions/writing-standards/screenplay/themes/rules/identity.md +0 -490
- package/augment-extensions/writing-standards/screenplay/themes/rules/isolation.md +0 -464
- package/augment-extensions/writing-standards/screenplay/themes/rules/justice.md +0 -461
- package/augment-extensions/writing-standards/screenplay/themes/rules/love.md +0 -489
- package/augment-extensions/writing-standards/screenplay/themes/rules/power.md +0 -494
- package/augment-extensions/writing-standards/screenplay/themes/rules/redemption.md +0 -483
- package/augment-extensions/writing-standards/screenplay/themes/rules/revenge.md +0 -489
- package/augment-extensions/writing-standards/screenplay/themes/rules/survival.md +0 -496
- package/augment-extensions/writing-standards/screenplay/themes/rules/technology.md +0 -463
- package/augment-extensions/writing-standards/screenplay/utils/__tests__/file-organization.test.ts +0 -169
- package/augment-extensions/writing-standards/screenplay/utils/file-organization.ts +0 -165
- package/cli/dist/__test_health-checker.d.ts +0 -2
- package/cli/dist/__test_health-checker.d.ts.map +0 -1
- package/cli/dist/__test_health-checker.js +0 -4
- package/cli/dist/__test_health-checker.js.map +0 -1
- package/cli/dist/__test_hook-system.d.ts +0 -2
- package/cli/dist/__test_hook-system.d.ts.map +0 -1
- package/cli/dist/__test_hook-system.js +0 -4
- package/cli/dist/__test_hook-system.js.map +0 -1
- package/cli/dist/__test_rule-install-hooks.d.ts +0 -2
- package/cli/dist/__test_rule-install-hooks.d.ts.map +0 -1
- package/cli/dist/__test_rule-install-hooks.js +0 -4
- package/cli/dist/__test_rule-install-hooks.js.map +0 -1
- package/cli/dist/__test_template-engine.d.ts +0 -2
- package/cli/dist/__test_template-engine.d.ts.map +0 -1
- package/cli/dist/__test_template-engine.js +0 -4
- package/cli/dist/__test_template-engine.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/error-detector.d.ts +0 -92
- package/cli/dist/commands/generate-shot-list/error-detector.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/error-detector.js +0 -131
- package/cli/dist/commands/generate-shot-list/error-detector.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/error-recovery.d.ts +0 -85
- package/cli/dist/commands/generate-shot-list/error-recovery.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/error-recovery.js +0 -208
- package/cli/dist/commands/generate-shot-list/error-recovery.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/errors.d.ts +0 -52
- package/cli/dist/commands/generate-shot-list/errors.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/errors.js +0 -287
- package/cli/dist/commands/generate-shot-list/errors.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/exit-codes.d.ts +0 -42
- package/cli/dist/commands/generate-shot-list/exit-codes.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/exit-codes.js +0 -83
- package/cli/dist/commands/generate-shot-list/exit-codes.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/formatter/base-formatter.d.ts +0 -48
- package/cli/dist/commands/generate-shot-list/formatter/base-formatter.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/formatter/base-formatter.js +0 -115
- package/cli/dist/commands/generate-shot-list/formatter/base-formatter.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/formatter/csv-formatter.d.ts +0 -45
- package/cli/dist/commands/generate-shot-list/formatter/csv-formatter.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/formatter/csv-formatter.js +0 -110
- package/cli/dist/commands/generate-shot-list/formatter/csv-formatter.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/formatter/html-formatter.d.ts +0 -38
- package/cli/dist/commands/generate-shot-list/formatter/html-formatter.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/formatter/html-formatter.js +0 -82
- package/cli/dist/commands/generate-shot-list/formatter/html-formatter.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/formatter/html-template.d.ts +0 -11
- package/cli/dist/commands/generate-shot-list/formatter/html-template.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/formatter/html-template.js +0 -628
- package/cli/dist/commands/generate-shot-list/formatter/html-template.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/formatter/index.d.ts +0 -13
- package/cli/dist/commands/generate-shot-list/formatter/index.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/formatter/index.js +0 -41
- package/cli/dist/commands/generate-shot-list/formatter/index.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/formatter/json-formatter.d.ts +0 -35
- package/cli/dist/commands/generate-shot-list/formatter/json-formatter.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/formatter/json-formatter.js +0 -134
- package/cli/dist/commands/generate-shot-list/formatter/json-formatter.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/formatter/jsonl-formatter.d.ts +0 -38
- package/cli/dist/commands/generate-shot-list/formatter/jsonl-formatter.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/formatter/jsonl-formatter.js +0 -111
- package/cli/dist/commands/generate-shot-list/formatter/jsonl-formatter.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/formatter/markdown-formatter.d.ts +0 -53
- package/cli/dist/commands/generate-shot-list/formatter/markdown-formatter.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/formatter/markdown-formatter.js +0 -302
- package/cli/dist/commands/generate-shot-list/formatter/markdown-formatter.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/formatter/txt-formatter.d.ts +0 -37
- package/cli/dist/commands/generate-shot-list/formatter/txt-formatter.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/formatter/txt-formatter.js +0 -125
- package/cli/dist/commands/generate-shot-list/formatter/txt-formatter.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/formatter/types.d.ts +0 -75
- package/cli/dist/commands/generate-shot-list/formatter/types.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/formatter/types.js +0 -8
- package/cli/dist/commands/generate-shot-list/formatter/types.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/generator/ai-blocking-extractor.d.ts +0 -58
- package/cli/dist/commands/generate-shot-list/generator/ai-blocking-extractor.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/generator/ai-blocking-extractor.js +0 -275
- package/cli/dist/commands/generate-shot-list/generator/ai-blocking-extractor.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/generator/ai-entity-extractor.d.ts +0 -41
- package/cli/dist/commands/generate-shot-list/generator/ai-entity-extractor.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/generator/ai-entity-extractor.js +0 -155
- package/cli/dist/commands/generate-shot-list/generator/ai-entity-extractor.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/generator/context-builder.d.ts +0 -166
- package/cli/dist/commands/generate-shot-list/generator/context-builder.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/generator/context-builder.js +0 -965
- package/cli/dist/commands/generate-shot-list/generator/context-builder.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/generator/index.d.ts +0 -163
- package/cli/dist/commands/generate-shot-list/generator/index.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/generator/index.js +0 -909
- package/cli/dist/commands/generate-shot-list/generator/index.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/generator/metadata-extractor.d.ts +0 -46
- package/cli/dist/commands/generate-shot-list/generator/metadata-extractor.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/generator/metadata-extractor.js +0 -171
- package/cli/dist/commands/generate-shot-list/generator/metadata-extractor.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/generator/scene-segmenter.d.ts +0 -49
- package/cli/dist/commands/generate-shot-list/generator/scene-segmenter.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/generator/scene-segmenter.js +0 -130
- package/cli/dist/commands/generate-shot-list/generator/scene-segmenter.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/generator/types.d.ts +0 -135
- package/cli/dist/commands/generate-shot-list/generator/types.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/generator/types.js +0 -8
- package/cli/dist/commands/generate-shot-list/generator/types.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/generator/validator.d.ts +0 -73
- package/cli/dist/commands/generate-shot-list/generator/validator.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/generator/validator.js +0 -284
- package/cli/dist/commands/generate-shot-list/generator/validator.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/help-text.d.ts +0 -11
- package/cli/dist/commands/generate-shot-list/help-text.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/help-text.js +0 -214
- package/cli/dist/commands/generate-shot-list/help-text.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/logger/index.d.ts +0 -25
- package/cli/dist/commands/generate-shot-list/logger/index.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/logger/index.js +0 -98
- package/cli/dist/commands/generate-shot-list/logger/index.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/logger/jsonl-writer.d.ts +0 -53
- package/cli/dist/commands/generate-shot-list/logger/jsonl-writer.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/logger/jsonl-writer.js +0 -183
- package/cli/dist/commands/generate-shot-list/logger/jsonl-writer.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/logger/shot-list-logger.d.ts +0 -43
- package/cli/dist/commands/generate-shot-list/logger/shot-list-logger.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/logger/shot-list-logger.js +0 -142
- package/cli/dist/commands/generate-shot-list/logger/shot-list-logger.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/logger/types.d.ts +0 -145
- package/cli/dist/commands/generate-shot-list/logger/types.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/logger/types.js +0 -8
- package/cli/dist/commands/generate-shot-list/logger/types.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/parser/docx-parser.d.ts +0 -29
- package/cli/dist/commands/generate-shot-list/parser/docx-parser.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/parser/docx-parser.js +0 -111
- package/cli/dist/commands/generate-shot-list/parser/docx-parser.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/parser/finaldraft-parser.d.ts +0 -18
- package/cli/dist/commands/generate-shot-list/parser/finaldraft-parser.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/parser/finaldraft-parser.js +0 -184
- package/cli/dist/commands/generate-shot-list/parser/finaldraft-parser.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/parser/fountain-parser.d.ts +0 -33
- package/cli/dist/commands/generate-shot-list/parser/fountain-parser.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/parser/fountain-parser.js +0 -250
- package/cli/dist/commands/generate-shot-list/parser/fountain-parser.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/parser/index.d.ts +0 -25
- package/cli/dist/commands/generate-shot-list/parser/index.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/parser/index.js +0 -168
- package/cli/dist/commands/generate-shot-list/parser/index.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/parser/markdown-parser.d.ts +0 -21
- package/cli/dist/commands/generate-shot-list/parser/markdown-parser.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/parser/markdown-parser.js +0 -197
- package/cli/dist/commands/generate-shot-list/parser/markdown-parser.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/parser/pdf-parser.d.ts +0 -24
- package/cli/dist/commands/generate-shot-list/parser/pdf-parser.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/parser/pdf-parser.js +0 -84
- package/cli/dist/commands/generate-shot-list/parser/pdf-parser.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/parser/plaintext-parser.d.ts +0 -29
- package/cli/dist/commands/generate-shot-list/parser/plaintext-parser.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/parser/plaintext-parser.js +0 -213
- package/cli/dist/commands/generate-shot-list/parser/plaintext-parser.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/parser/rtf-parser.d.ts +0 -28
- package/cli/dist/commands/generate-shot-list/parser/rtf-parser.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/parser/rtf-parser.js +0 -143
- package/cli/dist/commands/generate-shot-list/parser/rtf-parser.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/parser/types.d.ts +0 -136
- package/cli/dist/commands/generate-shot-list/parser/types.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/parser/types.js +0 -22
- package/cli/dist/commands/generate-shot-list/parser/types.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/schema/shot-list.schema.json +0 -341
- package/cli/dist/commands/generate-shot-list/schema/validator.d.ts +0 -55
- package/cli/dist/commands/generate-shot-list/schema/validator.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/schema/validator.js +0 -180
- package/cli/dist/commands/generate-shot-list/schema/validator.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/style/guideline-parser.d.ts +0 -36
- package/cli/dist/commands/generate-shot-list/style/guideline-parser.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/style/guideline-parser.js +0 -108
- package/cli/dist/commands/generate-shot-list/style/guideline-parser.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/style/index.d.ts +0 -39
- package/cli/dist/commands/generate-shot-list/style/index.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/style/index.js +0 -85
- package/cli/dist/commands/generate-shot-list/style/index.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/style/style-loader.d.ts +0 -35
- package/cli/dist/commands/generate-shot-list/style/style-loader.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/style/style-loader.js +0 -178
- package/cli/dist/commands/generate-shot-list/style/style-loader.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/style/style-merger.d.ts +0 -36
- package/cli/dist/commands/generate-shot-list/style/style-merger.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/style/style-merger.js +0 -123
- package/cli/dist/commands/generate-shot-list/style/style-merger.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/style/types.d.ts +0 -105
- package/cli/dist/commands/generate-shot-list/style/types.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/style/types.js +0 -8
- package/cli/dist/commands/generate-shot-list/style/types.js.map +0 -1
- package/cli/dist/commands/generate-shot-list.d.ts +0 -15
- package/cli/dist/commands/generate-shot-list.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list.js +0 -288
- package/cli/dist/commands/generate-shot-list.js.map +0 -1
- package/cli/dist/gui/app.d.ts +0 -17
- package/cli/dist/gui/app.d.ts.map +0 -1
- package/cli/dist/gui/app.js +0 -79
- package/cli/dist/gui/app.js.map +0 -1
- package/cli/dist/gui/components/preview-pane.d.ts +0 -40
- package/cli/dist/gui/components/preview-pane.d.ts.map +0 -1
- package/cli/dist/gui/components/preview-pane.js +0 -90
- package/cli/dist/gui/components/preview-pane.js.map +0 -1
- package/cli/dist/gui/components/search-filter.d.ts +0 -26
- package/cli/dist/gui/components/search-filter.d.ts.map +0 -1
- package/cli/dist/gui/components/search-filter.js +0 -168
- package/cli/dist/gui/components/search-filter.js.map +0 -1
- package/cli/dist/gui/components/status-bar.d.ts +0 -22
- package/cli/dist/gui/components/status-bar.d.ts.map +0 -1
- package/cli/dist/gui/components/status-bar.js +0 -58
- package/cli/dist/gui/components/status-bar.js.map +0 -1
- package/cli/dist/gui/components/tree-navigator.d.ts +0 -30
- package/cli/dist/gui/components/tree-navigator.d.ts.map +0 -1
- package/cli/dist/gui/components/tree-navigator.js +0 -133
- package/cli/dist/gui/components/tree-navigator.js.map +0 -1
- package/cli/dist/gui/components/version-selector.d.ts +0 -27
- package/cli/dist/gui/components/version-selector.d.ts.map +0 -1
- package/cli/dist/gui/components/version-selector.js +0 -110
- package/cli/dist/gui/components/version-selector.js.map +0 -1
- package/cli/dist/gui/hooks/use-version-loader.d.ts +0 -25
- package/cli/dist/gui/hooks/use-version-loader.d.ts.map +0 -1
- package/cli/dist/gui/hooks/use-version-loader.js +0 -116
- package/cli/dist/gui/hooks/use-version-loader.js.map +0 -1
- package/cli/dist/gui/index.d.ts +0 -15
- package/cli/dist/gui/index.d.ts.map +0 -1
- package/cli/dist/gui/index.js +0 -39
- package/cli/dist/gui/index.js.map +0 -1
- package/cli/dist/gui/layouts/main-layout.d.ts +0 -14
- package/cli/dist/gui/layouts/main-layout.d.ts.map +0 -1
- package/cli/dist/gui/layouts/main-layout.js +0 -205
- package/cli/dist/gui/layouts/main-layout.js.map +0 -1
- package/cli/dist/gui/state/navigation-state.d.ts +0 -39
- package/cli/dist/gui/state/navigation-state.d.ts.map +0 -1
- package/cli/dist/gui/state/navigation-state.js +0 -151
- package/cli/dist/gui/state/navigation-state.js.map +0 -1
- package/cli/dist/gui/state/selection-state.d.ts +0 -36
- package/cli/dist/gui/state/selection-state.d.ts.map +0 -1
- package/cli/dist/gui/state/selection-state.js +0 -132
- package/cli/dist/gui/state/selection-state.js.map +0 -1
- package/cli/dist/gui/theme.d.ts +0 -50
- package/cli/dist/gui/theme.d.ts.map +0 -1
- package/cli/dist/gui/theme.js +0 -73
- package/cli/dist/gui/theme.js.map +0 -1
- package/cli/dist/parsers/php-parser.d.ts +0 -127
- package/cli/dist/parsers/php-parser.d.ts.map +0 -1
- package/cli/dist/parsers/php-parser.js +0 -290
- package/cli/dist/parsers/php-parser.js.map +0 -1
- package/cli/dist/utils/help.d.ts +0 -13
- package/cli/dist/utils/help.d.ts.map +0 -1
- package/cli/dist/utils/help.js +0 -137
- package/cli/dist/utils/help.js.map +0 -1
- package/cli/dist/webview/inspection-webview-provider.d.ts +0 -49
- package/cli/dist/webview/inspection-webview-provider.d.ts.map +0 -1
- package/cli/dist/webview/inspection-webview-provider.js +0 -386
- package/cli/dist/webview/inspection-webview-provider.js.map +0 -1
|
@@ -1,1071 +1,1071 @@
|
|
|
1
|
-
# Modern TypeScript Tooling
|
|
2
|
-
|
|
3
|
-
Comprehensive guide to modern TypeScript tooling including ESLint flat config, Biome, tsup, and Vitest with MSW.
|
|
4
|
-
|
|
5
|
-
## Table of Contents
|
|
6
|
-
- [ESLint Flat Config](#eslint-flat-config)
|
|
7
|
-
- [Biome Setup](#biome-setup)
|
|
8
|
-
- [tsup Configuration](#tsup-configuration)
|
|
9
|
-
- [Vitest + MSW Setup](#vitest--msw-setup)
|
|
10
|
-
- [Tool Comparison](#tool-comparison)
|
|
11
|
-
- [Migration Guide](#migration-guide)
|
|
12
|
-
- [Best Practices](#best-practices)
|
|
13
|
-
|
|
14
|
-
---
|
|
15
|
-
|
|
16
|
-
## ESLint Flat Config
|
|
17
|
-
|
|
18
|
-
### Overview
|
|
19
|
-
|
|
20
|
-
ESLint 9+ introduces a new "flat config" format that replaces `.eslintrc.*` files with `eslint.config.js`.
|
|
21
|
-
|
|
22
|
-
### Benefits
|
|
23
|
-
|
|
24
|
-
- **Simpler configuration** - Single file, no cascading
|
|
25
|
-
- **Better TypeScript support** - Native ESM support
|
|
26
|
-
- **Improved performance** - Faster config resolution
|
|
27
|
-
- **Type-safe** - Can use TypeScript for config
|
|
28
|
-
|
|
29
|
-
### Basic Setup
|
|
30
|
-
|
|
31
|
-
```bash
|
|
32
|
-
# Install ESLint 9+
|
|
33
|
-
npm install -D eslint@^9.0.0
|
|
34
|
-
|
|
35
|
-
# Install TypeScript plugin
|
|
36
|
-
npm install -D @typescript-eslint/parser @typescript-eslint/eslint-plugin
|
|
37
|
-
|
|
38
|
-
# Install additional plugins
|
|
39
|
-
npm install -D eslint-plugin-import eslint-plugin-react eslint-plugin-react-hooks
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
### eslint.config.js
|
|
43
|
-
|
|
44
|
-
```javascript
|
|
45
|
-
import js from '@eslint/js';
|
|
46
|
-
import typescript from '@typescript-eslint/eslint-plugin';
|
|
47
|
-
import typescriptParser from '@typescript-eslint/parser';
|
|
48
|
-
import importPlugin from 'eslint-plugin-import';
|
|
49
|
-
import react from 'eslint-plugin-react';
|
|
50
|
-
import reactHooks from 'eslint-plugin-react-hooks';
|
|
51
|
-
|
|
52
|
-
export default [
|
|
53
|
-
// Ignore patterns
|
|
54
|
-
{
|
|
55
|
-
ignores: [
|
|
56
|
-
'**/dist/**',
|
|
57
|
-
'**/build/**',
|
|
58
|
-
'**/.next/**',
|
|
59
|
-
'**/node_modules/**',
|
|
60
|
-
'**/coverage/**'
|
|
61
|
-
]
|
|
62
|
-
},
|
|
63
|
-
|
|
64
|
-
// Base JavaScript config
|
|
65
|
-
js.configs.recommended,
|
|
66
|
-
|
|
67
|
-
// TypeScript files
|
|
68
|
-
{
|
|
69
|
-
files: ['**/*.ts', '**/*.tsx'],
|
|
70
|
-
languageOptions: {
|
|
71
|
-
parser: typescriptParser,
|
|
72
|
-
parserOptions: {
|
|
73
|
-
ecmaVersion: 'latest',
|
|
74
|
-
sourceType: 'module',
|
|
75
|
-
project: './tsconfig.json'
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
plugins: {
|
|
79
|
-
'@typescript-eslint': typescript,
|
|
80
|
-
'import': importPlugin,
|
|
81
|
-
'react': react,
|
|
82
|
-
'react-hooks': reactHooks
|
|
83
|
-
},
|
|
84
|
-
rules: {
|
|
85
|
-
// TypeScript rules
|
|
86
|
-
'@typescript-eslint/no-unused-vars': ['error', {
|
|
87
|
-
argsIgnorePattern: '^_',
|
|
88
|
-
varsIgnorePattern: '^_'
|
|
89
|
-
}],
|
|
90
|
-
'@typescript-eslint/no-explicit-any': 'warn',
|
|
91
|
-
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
92
|
-
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
93
|
-
'@typescript-eslint/no-non-null-assertion': 'warn',
|
|
94
|
-
'@typescript-eslint/consistent-type-imports': ['error', {
|
|
95
|
-
prefer: 'type-imports',
|
|
96
|
-
fixStyle: 'inline-type-imports'
|
|
97
|
-
}],
|
|
98
|
-
|
|
99
|
-
// Import rules
|
|
100
|
-
'import/order': ['error', {
|
|
101
|
-
'groups': [
|
|
102
|
-
'builtin',
|
|
103
|
-
'external',
|
|
104
|
-
'internal',
|
|
105
|
-
'parent',
|
|
106
|
-
'sibling',
|
|
107
|
-
'index'
|
|
108
|
-
],
|
|
109
|
-
'newlines-between': 'always',
|
|
110
|
-
'alphabetize': {
|
|
111
|
-
'order': 'asc',
|
|
112
|
-
'caseInsensitive': true
|
|
113
|
-
}
|
|
114
|
-
}],
|
|
115
|
-
|
|
116
|
-
// React rules
|
|
117
|
-
'react/react-in-jsx-scope': 'off',
|
|
118
|
-
'react/prop-types': 'off',
|
|
119
|
-
'react-hooks/rules-of-hooks': 'error',
|
|
120
|
-
'react-hooks/exhaustive-deps': 'warn'
|
|
121
|
-
},
|
|
122
|
-
settings: {
|
|
123
|
-
react: {
|
|
124
|
-
version: 'detect'
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
},
|
|
128
|
-
|
|
129
|
-
// Test files
|
|
130
|
-
{
|
|
131
|
-
files: ['**/*.test.ts', '**/*.test.tsx', '**/*.spec.ts', '**/*.spec.tsx'],
|
|
132
|
-
rules: {
|
|
133
|
-
'@typescript-eslint/no-explicit-any': 'off'
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
];
|
|
137
|
-
```
|
|
138
|
-
|
|
139
|
-
### TypeScript Config (eslint.config.ts)
|
|
140
|
-
|
|
141
|
-
```typescript
|
|
142
|
-
import type { Linter } from 'eslint';
|
|
143
|
-
import js from '@eslint/js';
|
|
144
|
-
import typescript from '@typescript-eslint/eslint-plugin';
|
|
145
|
-
import typescriptParser from '@typescript-eslint/parser';
|
|
146
|
-
|
|
147
|
-
const config: Linter.FlatConfig[] = [
|
|
148
|
-
{
|
|
149
|
-
ignores: ['**/dist/**', '**/build/**', '**/.next/**']
|
|
150
|
-
},
|
|
151
|
-
js.configs.recommended,
|
|
152
|
-
{
|
|
153
|
-
files: ['**/*.ts', '**/*.tsx'],
|
|
154
|
-
languageOptions: {
|
|
155
|
-
parser: typescriptParser,
|
|
156
|
-
parserOptions: {
|
|
157
|
-
project: './tsconfig.json'
|
|
158
|
-
}
|
|
159
|
-
},
|
|
160
|
-
plugins: {
|
|
161
|
-
'@typescript-eslint': typescript
|
|
162
|
-
},
|
|
163
|
-
rules: {
|
|
164
|
-
'@typescript-eslint/no-unused-vars': 'error',
|
|
165
|
-
'@typescript-eslint/no-explicit-any': 'warn'
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
];
|
|
169
|
-
|
|
170
|
-
export default config;
|
|
171
|
-
```
|
|
172
|
-
|
|
173
|
-
### Running ESLint
|
|
174
|
-
|
|
175
|
-
```bash
|
|
176
|
-
# Lint files
|
|
177
|
-
npx eslint .
|
|
178
|
-
|
|
179
|
-
# Lint and fix
|
|
180
|
-
npx eslint . --fix
|
|
181
|
-
|
|
182
|
-
# Lint specific files
|
|
183
|
-
npx eslint src/**/*.ts
|
|
184
|
-
```
|
|
185
|
-
|
|
186
|
-
---
|
|
187
|
-
|
|
188
|
-
## Biome Setup
|
|
189
|
-
|
|
190
|
-
### Overview
|
|
191
|
-
|
|
192
|
-
Biome is a fast, all-in-one toolchain that replaces ESLint + Prettier with a single tool written in Rust.
|
|
193
|
-
|
|
194
|
-
### Benefits
|
|
195
|
-
|
|
196
|
-
- **10-100x faster** than ESLint + Prettier
|
|
197
|
-
- **Single tool** - Linting + formatting in one
|
|
198
|
-
- **Zero config** - Works out of the box
|
|
199
|
-
- **Better error messages** - Clear, actionable diagnostics
|
|
200
|
-
- **Import sorting** - Built-in import organization
|
|
201
|
-
|
|
202
|
-
### Installation
|
|
203
|
-
|
|
204
|
-
```bash
|
|
205
|
-
# Install Biome
|
|
206
|
-
npm install -D @biomejs/biome
|
|
207
|
-
|
|
208
|
-
# Initialize configuration
|
|
209
|
-
npx @biomejs/biome init
|
|
210
|
-
```
|
|
211
|
-
|
|
212
|
-
### biome.json Configuration
|
|
213
|
-
|
|
214
|
-
```json
|
|
215
|
-
{
|
|
216
|
-
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
|
|
217
|
-
"organizeImports": {
|
|
218
|
-
"enabled": true
|
|
219
|
-
},
|
|
220
|
-
"linter": {
|
|
221
|
-
"enabled": true,
|
|
222
|
-
"rules": {
|
|
223
|
-
"recommended": true,
|
|
224
|
-
"suspicious": {
|
|
225
|
-
"noExplicitAny": "warn",
|
|
226
|
-
"noArrayIndexKey": "warn"
|
|
227
|
-
},
|
|
228
|
-
"style": {
|
|
229
|
-
"useConst": "error",
|
|
230
|
-
"useTemplate": "warn",
|
|
231
|
-
"noNonNullAssertion": "warn"
|
|
232
|
-
},
|
|
233
|
-
"correctness": {
|
|
234
|
-
"noUnusedVariables": "error",
|
|
235
|
-
"useExhaustiveDependencies": "warn"
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
},
|
|
239
|
-
"formatter": {
|
|
240
|
-
"enabled": true,
|
|
241
|
-
"formatWithErrors": false,
|
|
242
|
-
"indentStyle": "space",
|
|
243
|
-
"indentWidth": 2,
|
|
244
|
-
"lineWidth": 100,
|
|
245
|
-
"lineEnding": "lf"
|
|
246
|
-
},
|
|
247
|
-
"javascript": {
|
|
248
|
-
"formatter": {
|
|
249
|
-
"quoteStyle": "single",
|
|
250
|
-
"jsxQuoteStyle": "double",
|
|
251
|
-
"trailingCommas": "es5",
|
|
252
|
-
"semicolons": "always",
|
|
253
|
-
"arrowParentheses": "always",
|
|
254
|
-
"bracketSpacing": true,
|
|
255
|
-
"bracketSameLine": false
|
|
256
|
-
}
|
|
257
|
-
},
|
|
258
|
-
"json": {
|
|
259
|
-
"formatter": {
|
|
260
|
-
"enabled": true,
|
|
261
|
-
"indentWidth": 2
|
|
262
|
-
}
|
|
263
|
-
},
|
|
264
|
-
"files": {
|
|
265
|
-
"ignore": [
|
|
266
|
-
"node_modules",
|
|
267
|
-
"dist",
|
|
268
|
-
"build",
|
|
269
|
-
".next",
|
|
270
|
-
"coverage",
|
|
271
|
-
"*.config.js"
|
|
272
|
-
],
|
|
273
|
-
"include": [
|
|
274
|
-
"src/**/*.ts",
|
|
275
|
-
"src/**/*.tsx",
|
|
276
|
-
"src/**/*.js",
|
|
277
|
-
"src/**/*.jsx"
|
|
278
|
-
]
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
```
|
|
282
|
-
|
|
283
|
-
### Running Biome
|
|
284
|
-
|
|
285
|
-
```bash
|
|
286
|
-
# Check (lint + format check)
|
|
287
|
-
npx @biomejs/biome check .
|
|
288
|
-
|
|
289
|
-
# Check and fix
|
|
290
|
-
npx @biomejs/biome check --apply .
|
|
291
|
-
|
|
292
|
-
# Format only
|
|
293
|
-
npx @biomejs/biome format --write .
|
|
294
|
-
|
|
295
|
-
# Lint only
|
|
296
|
-
npx @biomejs/biome lint .
|
|
297
|
-
|
|
298
|
-
# CI mode (no fixes)
|
|
299
|
-
npx @biomejs/biome ci .
|
|
300
|
-
```
|
|
301
|
-
|
|
302
|
-
### package.json Scripts
|
|
303
|
-
|
|
304
|
-
```json
|
|
305
|
-
{
|
|
306
|
-
"scripts": {
|
|
307
|
-
"lint": "biome check .",
|
|
308
|
-
"lint:fix": "biome check --apply .",
|
|
309
|
-
"format": "biome format --write .",
|
|
310
|
-
"format:check": "biome format .",
|
|
311
|
-
"ci": "biome ci ."
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
```
|
|
315
|
-
|
|
316
|
-
### VS Code Integration
|
|
317
|
-
|
|
318
|
-
```json
|
|
319
|
-
// .vscode/settings.json
|
|
320
|
-
{
|
|
321
|
-
"editor.defaultFormatter": "biomejs.biome",
|
|
322
|
-
"editor.formatOnSave": true,
|
|
323
|
-
"editor.codeActionsOnSave": {
|
|
324
|
-
"quickfix.biome": "explicit",
|
|
325
|
-
"source.organizeImports.biome": "explicit"
|
|
326
|
-
},
|
|
327
|
-
"[typescript]": {
|
|
328
|
-
"editor.defaultFormatter": "biomejs.biome"
|
|
329
|
-
},
|
|
330
|
-
"[typescriptreact]": {
|
|
331
|
-
"editor.defaultFormatter": "biomejs.biome"
|
|
332
|
-
}
|
|
333
|
-
}
|
|
334
|
-
```
|
|
335
|
-
|
|
336
|
-
---
|
|
337
|
-
|
|
338
|
-
## tsup Configuration
|
|
339
|
-
|
|
340
|
-
### Overview
|
|
341
|
-
|
|
342
|
-
tsup is a zero-config TypeScript bundler powered by esbuild, perfect for building libraries.
|
|
343
|
-
|
|
344
|
-
### Benefits
|
|
345
|
-
|
|
346
|
-
- **Zero config** - Works out of the box
|
|
347
|
-
- **Fast** - Powered by esbuild
|
|
348
|
-
- **Multiple formats** - ESM, CJS, IIFE
|
|
349
|
-
- **Type declarations** - Automatic .d.ts generation
|
|
350
|
-
- **Tree-shaking** - Dead code elimination
|
|
351
|
-
|
|
352
|
-
### Installation
|
|
353
|
-
|
|
354
|
-
```bash
|
|
355
|
-
npm install -D tsup
|
|
356
|
-
```
|
|
357
|
-
|
|
358
|
-
### Basic Configuration
|
|
359
|
-
|
|
360
|
-
```typescript
|
|
361
|
-
// tsup.config.ts
|
|
362
|
-
import { defineConfig } from 'tsup';
|
|
363
|
-
|
|
364
|
-
export default defineConfig({
|
|
365
|
-
entry: ['src/index.ts'],
|
|
366
|
-
format: ['cjs', 'esm'],
|
|
367
|
-
dts: true,
|
|
368
|
-
splitting: false,
|
|
369
|
-
sourcemap: true,
|
|
370
|
-
clean: true,
|
|
371
|
-
minify: false,
|
|
372
|
-
treeshake: true
|
|
373
|
-
});
|
|
374
|
-
```
|
|
375
|
-
|
|
376
|
-
### Advanced Configuration
|
|
377
|
-
|
|
378
|
-
```typescript
|
|
379
|
-
// tsup.config.ts
|
|
380
|
-
import { defineConfig } from 'tsup';
|
|
381
|
-
|
|
382
|
-
export default defineConfig({
|
|
383
|
-
// Entry points
|
|
384
|
-
entry: {
|
|
385
|
-
index: 'src/index.ts',
|
|
386
|
-
cli: 'src/cli.ts',
|
|
387
|
-
utils: 'src/utils/index.ts'
|
|
388
|
-
},
|
|
389
|
-
|
|
390
|
-
// Output formats
|
|
391
|
-
format: ['cjs', 'esm'],
|
|
392
|
-
|
|
393
|
-
// Type declarations
|
|
394
|
-
dts: {
|
|
395
|
-
resolve: true,
|
|
396
|
-
entry: './src/index.ts'
|
|
397
|
-
},
|
|
398
|
-
|
|
399
|
-
// Code splitting
|
|
400
|
-
splitting: true,
|
|
401
|
-
|
|
402
|
-
// Source maps
|
|
403
|
-
sourcemap: true,
|
|
404
|
-
|
|
405
|
-
// Clean output directory
|
|
406
|
-
clean: true,
|
|
407
|
-
|
|
408
|
-
// Minification
|
|
409
|
-
minify: process.env.NODE_ENV === 'production',
|
|
410
|
-
|
|
411
|
-
// Tree-shaking
|
|
412
|
-
treeshake: true,
|
|
413
|
-
|
|
414
|
-
// External dependencies
|
|
415
|
-
external: ['react', 'react-dom'],
|
|
416
|
-
|
|
417
|
-
// Target environment
|
|
418
|
-
target: 'es2020',
|
|
419
|
-
|
|
420
|
-
// Platform
|
|
421
|
-
platform: 'node',
|
|
422
|
-
|
|
423
|
-
// Bundle
|
|
424
|
-
bundle: true,
|
|
425
|
-
|
|
426
|
-
// Watch mode
|
|
427
|
-
watch: process.env.NODE_ENV === 'development',
|
|
428
|
-
|
|
429
|
-
// Shims
|
|
430
|
-
shims: true,
|
|
431
|
-
|
|
432
|
-
// Banner
|
|
433
|
-
banner: {
|
|
434
|
-
js: '#!/usr/bin/env node'
|
|
435
|
-
},
|
|
436
|
-
|
|
437
|
-
// Environment variables
|
|
438
|
-
env: {
|
|
439
|
-
NODE_ENV: process.env.NODE_ENV || 'production'
|
|
440
|
-
},
|
|
441
|
-
|
|
442
|
-
// esbuild options
|
|
443
|
-
esbuildOptions(options) {
|
|
444
|
-
options.footer = {
|
|
445
|
-
js: '// Built with tsup'
|
|
446
|
-
};
|
|
447
|
-
}
|
|
448
|
-
});
|
|
449
|
-
```
|
|
450
|
-
|
|
451
|
-
### Library package.json
|
|
452
|
-
|
|
453
|
-
```json
|
|
454
|
-
{
|
|
455
|
-
"name": "@mylib/core",
|
|
456
|
-
"version": "1.0.0",
|
|
457
|
-
"type": "module",
|
|
458
|
-
"main": "./dist/index.cjs",
|
|
459
|
-
"module": "./dist/index.js",
|
|
460
|
-
"types": "./dist/index.d.ts",
|
|
461
|
-
"exports": {
|
|
462
|
-
".": {
|
|
463
|
-
"import": "./dist/index.js",
|
|
464
|
-
"require": "./dist/index.cjs",
|
|
465
|
-
"types": "./dist/index.d.ts"
|
|
466
|
-
},
|
|
467
|
-
"./utils": {
|
|
468
|
-
"import": "./dist/utils.js",
|
|
469
|
-
"require": "./dist/utils.cjs",
|
|
470
|
-
"types": "./dist/utils.d.ts"
|
|
471
|
-
}
|
|
472
|
-
},
|
|
473
|
-
"files": [
|
|
474
|
-
"dist"
|
|
475
|
-
],
|
|
476
|
-
"scripts": {
|
|
477
|
-
"build": "tsup",
|
|
478
|
-
"dev": "tsup --watch",
|
|
479
|
-
"prepublishOnly": "npm run build"
|
|
480
|
-
}
|
|
481
|
-
}
|
|
482
|
-
```
|
|
483
|
-
|
|
484
|
-
---
|
|
485
|
-
|
|
486
|
-
## Vitest + MSW Setup
|
|
487
|
-
|
|
488
|
-
### Overview
|
|
489
|
-
|
|
490
|
-
Vitest is a blazing-fast unit test framework powered by Vite. MSW (Mock Service Worker) provides API mocking for tests.
|
|
491
|
-
|
|
492
|
-
### Benefits
|
|
493
|
-
|
|
494
|
-
**Vitest:**
|
|
495
|
-
- **Fast** - Powered by Vite
|
|
496
|
-
- **Compatible** - Jest-compatible API
|
|
497
|
-
- **TypeScript** - First-class TypeScript support
|
|
498
|
-
- **Watch mode** - Instant feedback
|
|
499
|
-
- **Coverage** - Built-in coverage with v8
|
|
500
|
-
|
|
501
|
-
**MSW:**
|
|
502
|
-
- **Realistic** - Intercepts actual HTTP requests
|
|
503
|
-
- **Reusable** - Same mocks for tests and development
|
|
504
|
-
- **Type-safe** - Full TypeScript support
|
|
505
|
-
- **Framework-agnostic** - Works with any test framework
|
|
506
|
-
|
|
507
|
-
### Installation
|
|
508
|
-
|
|
509
|
-
```bash
|
|
510
|
-
# Install Vitest
|
|
511
|
-
npm install -D vitest @vitest/ui
|
|
512
|
-
|
|
513
|
-
# Install MSW
|
|
514
|
-
npm install -D msw
|
|
515
|
-
|
|
516
|
-
# Install testing utilities
|
|
517
|
-
npm install -D @testing-library/react @testing-library/jest-dom
|
|
518
|
-
```
|
|
519
|
-
|
|
520
|
-
### vitest.config.ts
|
|
521
|
-
|
|
522
|
-
```typescript
|
|
523
|
-
import { defineConfig } from 'vitest/config';
|
|
524
|
-
import react from '@vitejs/plugin-react';
|
|
525
|
-
import path from 'path';
|
|
526
|
-
|
|
527
|
-
export default defineConfig({
|
|
528
|
-
plugins: [react()],
|
|
529
|
-
test: {
|
|
530
|
-
// Environment
|
|
531
|
-
environment: 'jsdom',
|
|
532
|
-
|
|
533
|
-
// Setup files
|
|
534
|
-
setupFiles: ['./test/setup.ts'],
|
|
535
|
-
|
|
536
|
-
// Globals
|
|
537
|
-
globals: true,
|
|
538
|
-
|
|
539
|
-
// Coverage
|
|
540
|
-
coverage: {
|
|
541
|
-
provider: 'v8',
|
|
542
|
-
reporter: ['text', 'json', 'html'],
|
|
543
|
-
exclude: [
|
|
544
|
-
'node_modules/',
|
|
545
|
-
'test/',
|
|
546
|
-
'**/*.d.ts',
|
|
547
|
-
'**/*.config.*',
|
|
548
|
-
'**/dist/**'
|
|
549
|
-
],
|
|
550
|
-
thresholds: {
|
|
551
|
-
lines: 80,
|
|
552
|
-
functions: 80,
|
|
553
|
-
branches: 80,
|
|
554
|
-
statements: 80
|
|
555
|
-
}
|
|
556
|
-
},
|
|
557
|
-
|
|
558
|
-
// Include/exclude
|
|
559
|
-
include: ['**/*.{test,spec}.{ts,tsx}'],
|
|
560
|
-
exclude: ['node_modules', 'dist', 'build'],
|
|
561
|
-
|
|
562
|
-
// Reporters
|
|
563
|
-
reporters: ['verbose'],
|
|
564
|
-
|
|
565
|
-
// Watch
|
|
566
|
-
watch: false,
|
|
567
|
-
|
|
568
|
-
// Threads
|
|
569
|
-
threads: true,
|
|
570
|
-
|
|
571
|
-
// Timeout
|
|
572
|
-
testTimeout: 10000
|
|
573
|
-
},
|
|
574
|
-
resolve: {
|
|
575
|
-
alias: {
|
|
576
|
-
'@': path.resolve(__dirname, './src')
|
|
577
|
-
}
|
|
578
|
-
}
|
|
579
|
-
});
|
|
580
|
-
```
|
|
581
|
-
|
|
582
|
-
### Test Setup (test/setup.ts)
|
|
583
|
-
|
|
584
|
-
```typescript
|
|
585
|
-
import { afterAll, afterEach, beforeAll } from 'vitest';
|
|
586
|
-
import { cleanup } from '@testing-library/react';
|
|
587
|
-
import '@testing-library/jest-dom/vitest';
|
|
588
|
-
import { server } from './mocks/server';
|
|
589
|
-
|
|
590
|
-
// Start MSW server before all tests
|
|
591
|
-
beforeAll(() => {
|
|
592
|
-
server.listen({ onUnhandledRequest: 'error' });
|
|
593
|
-
});
|
|
594
|
-
|
|
595
|
-
// Reset handlers after each test
|
|
596
|
-
afterEach(() => {
|
|
597
|
-
server.resetHandlers();
|
|
598
|
-
cleanup();
|
|
599
|
-
});
|
|
600
|
-
|
|
601
|
-
// Clean up after all tests
|
|
602
|
-
afterAll(() => {
|
|
603
|
-
server.close();
|
|
604
|
-
});
|
|
605
|
-
```
|
|
606
|
-
|
|
607
|
-
### MSW Handlers (test/mocks/handlers.ts)
|
|
608
|
-
|
|
609
|
-
```typescript
|
|
610
|
-
import { http, HttpResponse } from 'msw';
|
|
611
|
-
|
|
612
|
-
export const handlers = [
|
|
613
|
-
// GET request
|
|
614
|
-
http.get('/api/users', () => {
|
|
615
|
-
return HttpResponse.json([
|
|
616
|
-
{ id: 1, name: 'John Doe' },
|
|
617
|
-
{ id: 2, name: 'Jane Smith' }
|
|
618
|
-
]);
|
|
619
|
-
}),
|
|
620
|
-
|
|
621
|
-
// POST request
|
|
622
|
-
http.post('/api/users', async ({ request }) => {
|
|
623
|
-
const newUser = await request.json();
|
|
624
|
-
return HttpResponse.json(
|
|
625
|
-
{ id: 3, ...newUser },
|
|
626
|
-
{ status: 201 }
|
|
627
|
-
);
|
|
628
|
-
}),
|
|
629
|
-
|
|
630
|
-
// Error response
|
|
631
|
-
http.get('/api/error', () => {
|
|
632
|
-
return HttpResponse.json(
|
|
633
|
-
{ message: 'Internal Server Error' },
|
|
634
|
-
{ status: 500 }
|
|
635
|
-
);
|
|
636
|
-
}),
|
|
637
|
-
|
|
638
|
-
// Delayed response
|
|
639
|
-
http.get('/api/slow', async () => {
|
|
640
|
-
await new Promise((resolve) => setTimeout(resolve, 1000));
|
|
641
|
-
return HttpResponse.json({ data: 'slow response' });
|
|
642
|
-
})
|
|
643
|
-
];
|
|
644
|
-
```
|
|
645
|
-
|
|
646
|
-
### MSW Server (test/mocks/server.ts)
|
|
647
|
-
|
|
648
|
-
```typescript
|
|
649
|
-
import { setupServer } from 'msw/node';
|
|
650
|
-
import { handlers } from './handlers';
|
|
651
|
-
|
|
652
|
-
export const server = setupServer(...handlers);
|
|
653
|
-
```
|
|
654
|
-
|
|
655
|
-
### Example Test
|
|
656
|
-
|
|
657
|
-
```typescript
|
|
658
|
-
// src/api/users.test.ts
|
|
659
|
-
import { describe, it, expect } from 'vitest';
|
|
660
|
-
import { render, screen, waitFor } from '@testing-library/react';
|
|
661
|
-
import { server } from '../test/mocks/server';
|
|
662
|
-
import { http, HttpResponse } from 'msw';
|
|
663
|
-
import { UserList } from './UserList';
|
|
664
|
-
|
|
665
|
-
describe('UserList', () => {
|
|
666
|
-
it('renders users from API', async () => {
|
|
667
|
-
render(<UserList />);
|
|
668
|
-
|
|
669
|
-
await waitFor(() => {
|
|
670
|
-
expect(screen.getByText('John Doe')).toBeInTheDocument();
|
|
671
|
-
expect(screen.getByText('Jane Smith')).toBeInTheDocument();
|
|
672
|
-
});
|
|
673
|
-
});
|
|
674
|
-
|
|
675
|
-
it('handles API errors', async () => {
|
|
676
|
-
// Override handler for this test
|
|
677
|
-
server.use(
|
|
678
|
-
http.get('/api/users', () => {
|
|
679
|
-
return HttpResponse.json(
|
|
680
|
-
{ message: 'Failed to fetch' },
|
|
681
|
-
{ status: 500 }
|
|
682
|
-
);
|
|
683
|
-
})
|
|
684
|
-
);
|
|
685
|
-
|
|
686
|
-
render(<UserList />);
|
|
687
|
-
|
|
688
|
-
await waitFor(() => {
|
|
689
|
-
expect(screen.getByText('Error loading users')).toBeInTheDocument();
|
|
690
|
-
});
|
|
691
|
-
});
|
|
692
|
-
|
|
693
|
-
it('handles empty response', async () => {
|
|
694
|
-
server.use(
|
|
695
|
-
http.get('/api/users', () => {
|
|
696
|
-
return HttpResponse.json([]);
|
|
697
|
-
})
|
|
698
|
-
);
|
|
699
|
-
|
|
700
|
-
render(<UserList />);
|
|
701
|
-
|
|
702
|
-
await waitFor(() => {
|
|
703
|
-
expect(screen.getByText('No users found')).toBeInTheDocument();
|
|
704
|
-
});
|
|
705
|
-
});
|
|
706
|
-
});
|
|
707
|
-
```
|
|
708
|
-
|
|
709
|
-
### Running Tests
|
|
710
|
-
|
|
711
|
-
```bash
|
|
712
|
-
# Run tests
|
|
713
|
-
npm test
|
|
714
|
-
|
|
715
|
-
# Run tests in watch mode
|
|
716
|
-
npm test -- --watch
|
|
717
|
-
|
|
718
|
-
# Run tests with coverage
|
|
719
|
-
npm test -- --coverage
|
|
720
|
-
|
|
721
|
-
# Run tests with UI
|
|
722
|
-
npm test -- --ui
|
|
723
|
-
|
|
724
|
-
# Run specific test file
|
|
725
|
-
npm test -- src/api/users.test.ts
|
|
726
|
-
```
|
|
727
|
-
|
|
728
|
-
### package.json Scripts
|
|
729
|
-
|
|
730
|
-
```json
|
|
731
|
-
{
|
|
732
|
-
"scripts": {
|
|
733
|
-
"test": "vitest run",
|
|
734
|
-
"test:watch": "vitest",
|
|
735
|
-
"test:ui": "vitest --ui",
|
|
736
|
-
"test:coverage": "vitest run --coverage",
|
|
737
|
-
"test:ci": "vitest run --coverage --reporter=junit --reporter=default"
|
|
738
|
-
}
|
|
739
|
-
}
|
|
740
|
-
```
|
|
741
|
-
|
|
742
|
-
---
|
|
743
|
-
|
|
744
|
-
## Tool Comparison
|
|
745
|
-
|
|
746
|
-
### ESLint vs Biome
|
|
747
|
-
|
|
748
|
-
| Feature | ESLint | Biome |
|
|
749
|
-
|---------|--------|-------|
|
|
750
|
-
| **Speed** | Moderate | 10-100x faster |
|
|
751
|
-
| **Configuration** | Complex | Simple |
|
|
752
|
-
| **Formatting** | Requires Prettier | Built-in |
|
|
753
|
-
| **Import sorting** | Plugin required | Built-in |
|
|
754
|
-
| **Ecosystem** | Mature, many plugins | Growing |
|
|
755
|
-
| **TypeScript** | Good support | Excellent support |
|
|
756
|
-
| **Migration** | N/A | Easy from ESLint |
|
|
757
|
-
|
|
758
|
-
**When to use ESLint:**
|
|
759
|
-
- Need specific plugins not available in Biome
|
|
760
|
-
- Large existing codebase with custom rules
|
|
761
|
-
- Team familiar with ESLint ecosystem
|
|
762
|
-
|
|
763
|
-
**When to use Biome:**
|
|
764
|
-
- New projects
|
|
765
|
-
- Performance is critical
|
|
766
|
-
- Want simpler tooling
|
|
767
|
-
- Prefer all-in-one solution
|
|
768
|
-
|
|
769
|
-
### Jest vs Vitest
|
|
770
|
-
|
|
771
|
-
| Feature | Jest | Vitest |
|
|
772
|
-
|---------|------|--------|
|
|
773
|
-
| **Speed** | Moderate | Very fast |
|
|
774
|
-
| **Configuration** | Moderate | Minimal |
|
|
775
|
-
| **TypeScript** | Requires ts-jest | Native support |
|
|
776
|
-
| **ESM** | Limited | Full support |
|
|
777
|
-
| **Watch mode** | Good | Excellent |
|
|
778
|
-
| **Coverage** | Built-in | Built-in (v8) |
|
|
779
|
-
| **API** | Mature | Jest-compatible |
|
|
780
|
-
|
|
781
|
-
**When to use Jest:**
|
|
782
|
-
- Existing Jest tests
|
|
783
|
-
- Need specific Jest plugins
|
|
784
|
-
- Team familiar with Jest
|
|
785
|
-
|
|
786
|
-
**When to use Vitest:**
|
|
787
|
-
- New projects
|
|
788
|
-
- Using Vite
|
|
789
|
-
- Want faster tests
|
|
790
|
-
- Need better ESM support
|
|
791
|
-
|
|
792
|
-
### Webpack vs tsup
|
|
793
|
-
|
|
794
|
-
| Feature | Webpack | tsup |
|
|
795
|
-
|---------|---------|------|
|
|
796
|
-
| **Speed** | Moderate | Very fast |
|
|
797
|
-
| **Configuration** | Complex | Minimal |
|
|
798
|
-
| **Use case** | Applications | Libraries |
|
|
799
|
-
| **Bundle size** | Larger | Smaller |
|
|
800
|
-
| **Tree-shaking** | Good | Excellent |
|
|
801
|
-
| **Learning curve** | Steep | Gentle |
|
|
802
|
-
|
|
803
|
-
**When to use Webpack:**
|
|
804
|
-
- Building applications
|
|
805
|
-
- Need advanced features (code splitting, lazy loading)
|
|
806
|
-
- Complex build requirements
|
|
807
|
-
|
|
808
|
-
**When to use tsup:**
|
|
809
|
-
- Building libraries
|
|
810
|
-
- Want simple configuration
|
|
811
|
-
- Need fast builds
|
|
812
|
-
- Publishing to npm
|
|
813
|
-
|
|
814
|
-
---
|
|
815
|
-
|
|
816
|
-
## Migration Guide
|
|
817
|
-
|
|
818
|
-
### From ESLint Legacy to Flat Config
|
|
819
|
-
|
|
820
|
-
1. **Remove old config files**
|
|
821
|
-
```bash
|
|
822
|
-
rm .eslintrc.js .eslintrc.json .eslintignore
|
|
823
|
-
```
|
|
824
|
-
|
|
825
|
-
2. **Create eslint.config.js**
|
|
826
|
-
```javascript
|
|
827
|
-
import js from '@eslint/js';
|
|
828
|
-
|
|
829
|
-
export default [
|
|
830
|
-
js.configs.recommended,
|
|
831
|
-
{
|
|
832
|
-
files: ['**/*.ts'],
|
|
833
|
-
// ... your rules
|
|
834
|
-
}
|
|
835
|
-
];
|
|
836
|
-
```
|
|
837
|
-
|
|
838
|
-
3. **Update package.json**
|
|
839
|
-
```json
|
|
840
|
-
{
|
|
841
|
-
"scripts": {
|
|
842
|
-
"lint": "eslint ."
|
|
843
|
-
}
|
|
844
|
-
}
|
|
845
|
-
```
|
|
846
|
-
|
|
847
|
-
### From ESLint + Prettier to Biome
|
|
848
|
-
|
|
849
|
-
1. **Install Biome**
|
|
850
|
-
```bash
|
|
851
|
-
npm install -D @biomejs/biome
|
|
852
|
-
npm uninstall eslint prettier
|
|
853
|
-
```
|
|
854
|
-
|
|
855
|
-
2. **Initialize Biome**
|
|
856
|
-
```bash
|
|
857
|
-
npx @biomejs/biome init
|
|
858
|
-
```
|
|
859
|
-
|
|
860
|
-
3. **Migrate configuration**
|
|
861
|
-
```bash
|
|
862
|
-
npx @biomejs/biome migrate eslint --write
|
|
863
|
-
```
|
|
864
|
-
|
|
865
|
-
4. **Update scripts**
|
|
866
|
-
```json
|
|
867
|
-
{
|
|
868
|
-
"scripts": {
|
|
869
|
-
"lint": "biome check .",
|
|
870
|
-
"format": "biome format --write ."
|
|
871
|
-
}
|
|
872
|
-
}
|
|
873
|
-
```
|
|
874
|
-
|
|
875
|
-
### From Jest to Vitest
|
|
876
|
-
|
|
877
|
-
1. **Install Vitest**
|
|
878
|
-
```bash
|
|
879
|
-
npm install -D vitest @vitest/ui
|
|
880
|
-
npm uninstall jest @types/jest ts-jest
|
|
881
|
-
```
|
|
882
|
-
|
|
883
|
-
2. **Create vitest.config.ts**
|
|
884
|
-
```typescript
|
|
885
|
-
import { defineConfig } from 'vitest/config';
|
|
886
|
-
|
|
887
|
-
export default defineConfig({
|
|
888
|
-
test: {
|
|
889
|
-
globals: true,
|
|
890
|
-
environment: 'jsdom'
|
|
891
|
-
}
|
|
892
|
-
});
|
|
893
|
-
```
|
|
894
|
-
|
|
895
|
-
3. **Update test files**
|
|
896
|
-
```typescript
|
|
897
|
-
// Before (Jest)
|
|
898
|
-
import { describe, it, expect } from '@jest/globals';
|
|
899
|
-
|
|
900
|
-
// After (Vitest)
|
|
901
|
-
import { describe, it, expect } from 'vitest';
|
|
902
|
-
```
|
|
903
|
-
|
|
904
|
-
4. **Update package.json**
|
|
905
|
-
```json
|
|
906
|
-
{
|
|
907
|
-
"scripts": {
|
|
908
|
-
"test": "vitest run",
|
|
909
|
-
"test:watch": "vitest"
|
|
910
|
-
}
|
|
911
|
-
}
|
|
912
|
-
```
|
|
913
|
-
|
|
914
|
-
---
|
|
915
|
-
|
|
916
|
-
## Best Practices
|
|
917
|
-
|
|
918
|
-
### 1. Use Flat Config for ESLint
|
|
919
|
-
|
|
920
|
-
```javascript
|
|
921
|
-
// ✅ Good: Flat config
|
|
922
|
-
export default [
|
|
923
|
-
{
|
|
924
|
-
files: ['**/*.ts'],
|
|
925
|
-
rules: {
|
|
926
|
-
'@typescript-eslint/no-unused-vars': 'error'
|
|
927
|
-
}
|
|
928
|
-
}
|
|
929
|
-
];
|
|
930
|
-
|
|
931
|
-
// ❌ Bad: Legacy config
|
|
932
|
-
module.exports = {
|
|
933
|
-
extends: ['eslint:recommended'],
|
|
934
|
-
rules: {
|
|
935
|
-
'@typescript-eslint/no-unused-vars': 'error'
|
|
936
|
-
}
|
|
937
|
-
};
|
|
938
|
-
```
|
|
939
|
-
|
|
940
|
-
### 2. Enable Biome in VS Code
|
|
941
|
-
|
|
942
|
-
```json
|
|
943
|
-
// .vscode/settings.json
|
|
944
|
-
{
|
|
945
|
-
"editor.defaultFormatter": "biomejs.biome",
|
|
946
|
-
"editor.formatOnSave": true,
|
|
947
|
-
"editor.codeActionsOnSave": {
|
|
948
|
-
"source.organizeImports.biome": "explicit"
|
|
949
|
-
}
|
|
950
|
-
}
|
|
951
|
-
```
|
|
952
|
-
|
|
953
|
-
### 3. Configure tsup for Libraries
|
|
954
|
-
|
|
955
|
-
```typescript
|
|
956
|
-
// ✅ Good: Multiple formats
|
|
957
|
-
export default defineConfig({
|
|
958
|
-
entry: ['src/index.ts'],
|
|
959
|
-
format: ['cjs', 'esm'],
|
|
960
|
-
dts: true,
|
|
961
|
-
clean: true
|
|
962
|
-
});
|
|
963
|
-
|
|
964
|
-
// ❌ Bad: Single format
|
|
965
|
-
export default defineConfig({
|
|
966
|
-
entry: ['src/index.ts'],
|
|
967
|
-
format: ['esm']
|
|
968
|
-
});
|
|
969
|
-
```
|
|
970
|
-
|
|
971
|
-
### 4. Use MSW for API Mocking
|
|
972
|
-
|
|
973
|
-
```typescript
|
|
974
|
-
// ✅ Good: MSW handlers
|
|
975
|
-
export const handlers = [
|
|
976
|
-
http.get('/api/users', () => {
|
|
977
|
-
return HttpResponse.json([{ id: 1, name: 'John' }]);
|
|
978
|
-
})
|
|
979
|
-
];
|
|
980
|
-
|
|
981
|
-
// ❌ Bad: Manual mocking
|
|
982
|
-
global.fetch = vi.fn(() =>
|
|
983
|
-
Promise.resolve({
|
|
984
|
-
json: () => Promise.resolve([{ id: 1, name: 'John' }])
|
|
985
|
-
})
|
|
986
|
-
);
|
|
987
|
-
```
|
|
988
|
-
|
|
989
|
-
### 5. Enable Coverage Thresholds
|
|
990
|
-
|
|
991
|
-
```typescript
|
|
992
|
-
// vitest.config.ts
|
|
993
|
-
export default defineConfig({
|
|
994
|
-
test: {
|
|
995
|
-
coverage: {
|
|
996
|
-
thresholds: {
|
|
997
|
-
lines: 80,
|
|
998
|
-
functions: 80,
|
|
999
|
-
branches: 80,
|
|
1000
|
-
statements: 80
|
|
1001
|
-
}
|
|
1002
|
-
}
|
|
1003
|
-
}
|
|
1004
|
-
});
|
|
1005
|
-
```
|
|
1006
|
-
|
|
1007
|
-
### 6. Use Type-Safe Configs
|
|
1008
|
-
|
|
1009
|
-
```typescript
|
|
1010
|
-
// ✅ Good: Type-safe config
|
|
1011
|
-
import type { Linter } from 'eslint';
|
|
1012
|
-
|
|
1013
|
-
const config: Linter.FlatConfig[] = [
|
|
1014
|
-
// ... config
|
|
1015
|
-
];
|
|
1016
|
-
|
|
1017
|
-
export default config;
|
|
1018
|
-
|
|
1019
|
-
// ❌ Bad: Untyped config
|
|
1020
|
-
export default [
|
|
1021
|
-
// ... config
|
|
1022
|
-
];
|
|
1023
|
-
```
|
|
1024
|
-
|
|
1025
|
-
---
|
|
1026
|
-
|
|
1027
|
-
## Common Pitfalls
|
|
1028
|
-
|
|
1029
|
-
### ❌ Mixing ESLint Formats
|
|
1030
|
-
|
|
1031
|
-
```javascript
|
|
1032
|
-
// Don't mix flat config with legacy config
|
|
1033
|
-
export default [
|
|
1034
|
-
{
|
|
1035
|
-
extends: ['eslint:recommended'] // ❌ extends doesn't work in flat config
|
|
1036
|
-
}
|
|
1037
|
-
];
|
|
1038
|
-
```
|
|
1039
|
-
|
|
1040
|
-
### ❌ Forgetting to Clean Build Output
|
|
1041
|
-
|
|
1042
|
-
```typescript
|
|
1043
|
-
// Always clean before building
|
|
1044
|
-
export default defineConfig({
|
|
1045
|
-
clean: true // ✅ Clean dist/ before build
|
|
1046
|
-
});
|
|
1047
|
-
```
|
|
1048
|
-
|
|
1049
|
-
### ❌ Not Resetting MSW Handlers
|
|
1050
|
-
|
|
1051
|
-
```typescript
|
|
1052
|
-
// Always reset handlers after each test
|
|
1053
|
-
afterEach(() => {
|
|
1054
|
-
server.resetHandlers(); // ✅ Reset to default handlers
|
|
1055
|
-
});
|
|
1056
|
-
```
|
|
1057
|
-
|
|
1058
|
-
---
|
|
1059
|
-
|
|
1060
|
-
## References
|
|
1061
|
-
|
|
1062
|
-
- [ESLint Flat Config](https://eslint.org/docs/latest/use/configure/configuration-files-new)
|
|
1063
|
-
- [Biome Documentation](https://biomejs.dev)
|
|
1064
|
-
- [tsup Documentation](https://tsup.egoist.dev)
|
|
1065
|
-
- [Vitest Documentation](https://vitest.dev)
|
|
1066
|
-
- [MSW Documentation](https://mswjs.io)
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1
|
+
# Modern TypeScript Tooling
|
|
2
|
+
|
|
3
|
+
Comprehensive guide to modern TypeScript tooling including ESLint flat config, Biome, tsup, and Vitest with MSW.
|
|
4
|
+
|
|
5
|
+
## Table of Contents
|
|
6
|
+
- [ESLint Flat Config](#eslint-flat-config)
|
|
7
|
+
- [Biome Setup](#biome-setup)
|
|
8
|
+
- [tsup Configuration](#tsup-configuration)
|
|
9
|
+
- [Vitest + MSW Setup](#vitest--msw-setup)
|
|
10
|
+
- [Tool Comparison](#tool-comparison)
|
|
11
|
+
- [Migration Guide](#migration-guide)
|
|
12
|
+
- [Best Practices](#best-practices)
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
## ESLint Flat Config
|
|
17
|
+
|
|
18
|
+
### Overview
|
|
19
|
+
|
|
20
|
+
ESLint 9+ introduces a new "flat config" format that replaces `.eslintrc.*` files with `eslint.config.js`.
|
|
21
|
+
|
|
22
|
+
### Benefits
|
|
23
|
+
|
|
24
|
+
- **Simpler configuration** - Single file, no cascading
|
|
25
|
+
- **Better TypeScript support** - Native ESM support
|
|
26
|
+
- **Improved performance** - Faster config resolution
|
|
27
|
+
- **Type-safe** - Can use TypeScript for config
|
|
28
|
+
|
|
29
|
+
### Basic Setup
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
# Install ESLint 9+
|
|
33
|
+
npm install -D eslint@^9.0.0
|
|
34
|
+
|
|
35
|
+
# Install TypeScript plugin
|
|
36
|
+
npm install -D @typescript-eslint/parser @typescript-eslint/eslint-plugin
|
|
37
|
+
|
|
38
|
+
# Install additional plugins
|
|
39
|
+
npm install -D eslint-plugin-import eslint-plugin-react eslint-plugin-react-hooks
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### eslint.config.js
|
|
43
|
+
|
|
44
|
+
```javascript
|
|
45
|
+
import js from '@eslint/js';
|
|
46
|
+
import typescript from '@typescript-eslint/eslint-plugin';
|
|
47
|
+
import typescriptParser from '@typescript-eslint/parser';
|
|
48
|
+
import importPlugin from 'eslint-plugin-import';
|
|
49
|
+
import react from 'eslint-plugin-react';
|
|
50
|
+
import reactHooks from 'eslint-plugin-react-hooks';
|
|
51
|
+
|
|
52
|
+
export default [
|
|
53
|
+
// Ignore patterns
|
|
54
|
+
{
|
|
55
|
+
ignores: [
|
|
56
|
+
'**/dist/**',
|
|
57
|
+
'**/build/**',
|
|
58
|
+
'**/.next/**',
|
|
59
|
+
'**/node_modules/**',
|
|
60
|
+
'**/coverage/**'
|
|
61
|
+
]
|
|
62
|
+
},
|
|
63
|
+
|
|
64
|
+
// Base JavaScript config
|
|
65
|
+
js.configs.recommended,
|
|
66
|
+
|
|
67
|
+
// TypeScript files
|
|
68
|
+
{
|
|
69
|
+
files: ['**/*.ts', '**/*.tsx'],
|
|
70
|
+
languageOptions: {
|
|
71
|
+
parser: typescriptParser,
|
|
72
|
+
parserOptions: {
|
|
73
|
+
ecmaVersion: 'latest',
|
|
74
|
+
sourceType: 'module',
|
|
75
|
+
project: './tsconfig.json'
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
plugins: {
|
|
79
|
+
'@typescript-eslint': typescript,
|
|
80
|
+
'import': importPlugin,
|
|
81
|
+
'react': react,
|
|
82
|
+
'react-hooks': reactHooks
|
|
83
|
+
},
|
|
84
|
+
rules: {
|
|
85
|
+
// TypeScript rules
|
|
86
|
+
'@typescript-eslint/no-unused-vars': ['error', {
|
|
87
|
+
argsIgnorePattern: '^_',
|
|
88
|
+
varsIgnorePattern: '^_'
|
|
89
|
+
}],
|
|
90
|
+
'@typescript-eslint/no-explicit-any': 'warn',
|
|
91
|
+
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
92
|
+
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
93
|
+
'@typescript-eslint/no-non-null-assertion': 'warn',
|
|
94
|
+
'@typescript-eslint/consistent-type-imports': ['error', {
|
|
95
|
+
prefer: 'type-imports',
|
|
96
|
+
fixStyle: 'inline-type-imports'
|
|
97
|
+
}],
|
|
98
|
+
|
|
99
|
+
// Import rules
|
|
100
|
+
'import/order': ['error', {
|
|
101
|
+
'groups': [
|
|
102
|
+
'builtin',
|
|
103
|
+
'external',
|
|
104
|
+
'internal',
|
|
105
|
+
'parent',
|
|
106
|
+
'sibling',
|
|
107
|
+
'index'
|
|
108
|
+
],
|
|
109
|
+
'newlines-between': 'always',
|
|
110
|
+
'alphabetize': {
|
|
111
|
+
'order': 'asc',
|
|
112
|
+
'caseInsensitive': true
|
|
113
|
+
}
|
|
114
|
+
}],
|
|
115
|
+
|
|
116
|
+
// React rules
|
|
117
|
+
'react/react-in-jsx-scope': 'off',
|
|
118
|
+
'react/prop-types': 'off',
|
|
119
|
+
'react-hooks/rules-of-hooks': 'error',
|
|
120
|
+
'react-hooks/exhaustive-deps': 'warn'
|
|
121
|
+
},
|
|
122
|
+
settings: {
|
|
123
|
+
react: {
|
|
124
|
+
version: 'detect'
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
|
|
129
|
+
// Test files
|
|
130
|
+
{
|
|
131
|
+
files: ['**/*.test.ts', '**/*.test.tsx', '**/*.spec.ts', '**/*.spec.tsx'],
|
|
132
|
+
rules: {
|
|
133
|
+
'@typescript-eslint/no-explicit-any': 'off'
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
];
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
### TypeScript Config (eslint.config.ts)
|
|
140
|
+
|
|
141
|
+
```typescript
|
|
142
|
+
import type { Linter } from 'eslint';
|
|
143
|
+
import js from '@eslint/js';
|
|
144
|
+
import typescript from '@typescript-eslint/eslint-plugin';
|
|
145
|
+
import typescriptParser from '@typescript-eslint/parser';
|
|
146
|
+
|
|
147
|
+
const config: Linter.FlatConfig[] = [
|
|
148
|
+
{
|
|
149
|
+
ignores: ['**/dist/**', '**/build/**', '**/.next/**']
|
|
150
|
+
},
|
|
151
|
+
js.configs.recommended,
|
|
152
|
+
{
|
|
153
|
+
files: ['**/*.ts', '**/*.tsx'],
|
|
154
|
+
languageOptions: {
|
|
155
|
+
parser: typescriptParser,
|
|
156
|
+
parserOptions: {
|
|
157
|
+
project: './tsconfig.json'
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
plugins: {
|
|
161
|
+
'@typescript-eslint': typescript
|
|
162
|
+
},
|
|
163
|
+
rules: {
|
|
164
|
+
'@typescript-eslint/no-unused-vars': 'error',
|
|
165
|
+
'@typescript-eslint/no-explicit-any': 'warn'
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
];
|
|
169
|
+
|
|
170
|
+
export default config;
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
### Running ESLint
|
|
174
|
+
|
|
175
|
+
```bash
|
|
176
|
+
# Lint files
|
|
177
|
+
npx eslint .
|
|
178
|
+
|
|
179
|
+
# Lint and fix
|
|
180
|
+
npx eslint . --fix
|
|
181
|
+
|
|
182
|
+
# Lint specific files
|
|
183
|
+
npx eslint src/**/*.ts
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
---
|
|
187
|
+
|
|
188
|
+
## Biome Setup
|
|
189
|
+
|
|
190
|
+
### Overview
|
|
191
|
+
|
|
192
|
+
Biome is a fast, all-in-one toolchain that replaces ESLint + Prettier with a single tool written in Rust.
|
|
193
|
+
|
|
194
|
+
### Benefits
|
|
195
|
+
|
|
196
|
+
- **10-100x faster** than ESLint + Prettier
|
|
197
|
+
- **Single tool** - Linting + formatting in one
|
|
198
|
+
- **Zero config** - Works out of the box
|
|
199
|
+
- **Better error messages** - Clear, actionable diagnostics
|
|
200
|
+
- **Import sorting** - Built-in import organization
|
|
201
|
+
|
|
202
|
+
### Installation
|
|
203
|
+
|
|
204
|
+
```bash
|
|
205
|
+
# Install Biome
|
|
206
|
+
npm install -D @biomejs/biome
|
|
207
|
+
|
|
208
|
+
# Initialize configuration
|
|
209
|
+
npx @biomejs/biome init
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
### biome.json Configuration
|
|
213
|
+
|
|
214
|
+
```json
|
|
215
|
+
{
|
|
216
|
+
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
|
|
217
|
+
"organizeImports": {
|
|
218
|
+
"enabled": true
|
|
219
|
+
},
|
|
220
|
+
"linter": {
|
|
221
|
+
"enabled": true,
|
|
222
|
+
"rules": {
|
|
223
|
+
"recommended": true,
|
|
224
|
+
"suspicious": {
|
|
225
|
+
"noExplicitAny": "warn",
|
|
226
|
+
"noArrayIndexKey": "warn"
|
|
227
|
+
},
|
|
228
|
+
"style": {
|
|
229
|
+
"useConst": "error",
|
|
230
|
+
"useTemplate": "warn",
|
|
231
|
+
"noNonNullAssertion": "warn"
|
|
232
|
+
},
|
|
233
|
+
"correctness": {
|
|
234
|
+
"noUnusedVariables": "error",
|
|
235
|
+
"useExhaustiveDependencies": "warn"
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
"formatter": {
|
|
240
|
+
"enabled": true,
|
|
241
|
+
"formatWithErrors": false,
|
|
242
|
+
"indentStyle": "space",
|
|
243
|
+
"indentWidth": 2,
|
|
244
|
+
"lineWidth": 100,
|
|
245
|
+
"lineEnding": "lf"
|
|
246
|
+
},
|
|
247
|
+
"javascript": {
|
|
248
|
+
"formatter": {
|
|
249
|
+
"quoteStyle": "single",
|
|
250
|
+
"jsxQuoteStyle": "double",
|
|
251
|
+
"trailingCommas": "es5",
|
|
252
|
+
"semicolons": "always",
|
|
253
|
+
"arrowParentheses": "always",
|
|
254
|
+
"bracketSpacing": true,
|
|
255
|
+
"bracketSameLine": false
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
"json": {
|
|
259
|
+
"formatter": {
|
|
260
|
+
"enabled": true,
|
|
261
|
+
"indentWidth": 2
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
"files": {
|
|
265
|
+
"ignore": [
|
|
266
|
+
"node_modules",
|
|
267
|
+
"dist",
|
|
268
|
+
"build",
|
|
269
|
+
".next",
|
|
270
|
+
"coverage",
|
|
271
|
+
"*.config.js"
|
|
272
|
+
],
|
|
273
|
+
"include": [
|
|
274
|
+
"src/**/*.ts",
|
|
275
|
+
"src/**/*.tsx",
|
|
276
|
+
"src/**/*.js",
|
|
277
|
+
"src/**/*.jsx"
|
|
278
|
+
]
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
```
|
|
282
|
+
|
|
283
|
+
### Running Biome
|
|
284
|
+
|
|
285
|
+
```bash
|
|
286
|
+
# Check (lint + format check)
|
|
287
|
+
npx @biomejs/biome check .
|
|
288
|
+
|
|
289
|
+
# Check and fix
|
|
290
|
+
npx @biomejs/biome check --apply .
|
|
291
|
+
|
|
292
|
+
# Format only
|
|
293
|
+
npx @biomejs/biome format --write .
|
|
294
|
+
|
|
295
|
+
# Lint only
|
|
296
|
+
npx @biomejs/biome lint .
|
|
297
|
+
|
|
298
|
+
# CI mode (no fixes)
|
|
299
|
+
npx @biomejs/biome ci .
|
|
300
|
+
```
|
|
301
|
+
|
|
302
|
+
### package.json Scripts
|
|
303
|
+
|
|
304
|
+
```json
|
|
305
|
+
{
|
|
306
|
+
"scripts": {
|
|
307
|
+
"lint": "biome check .",
|
|
308
|
+
"lint:fix": "biome check --apply .",
|
|
309
|
+
"format": "biome format --write .",
|
|
310
|
+
"format:check": "biome format .",
|
|
311
|
+
"ci": "biome ci ."
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
```
|
|
315
|
+
|
|
316
|
+
### VS Code Integration
|
|
317
|
+
|
|
318
|
+
```json
|
|
319
|
+
// .vscode/settings.json
|
|
320
|
+
{
|
|
321
|
+
"editor.defaultFormatter": "biomejs.biome",
|
|
322
|
+
"editor.formatOnSave": true,
|
|
323
|
+
"editor.codeActionsOnSave": {
|
|
324
|
+
"quickfix.biome": "explicit",
|
|
325
|
+
"source.organizeImports.biome": "explicit"
|
|
326
|
+
},
|
|
327
|
+
"[typescript]": {
|
|
328
|
+
"editor.defaultFormatter": "biomejs.biome"
|
|
329
|
+
},
|
|
330
|
+
"[typescriptreact]": {
|
|
331
|
+
"editor.defaultFormatter": "biomejs.biome"
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
```
|
|
335
|
+
|
|
336
|
+
---
|
|
337
|
+
|
|
338
|
+
## tsup Configuration
|
|
339
|
+
|
|
340
|
+
### Overview
|
|
341
|
+
|
|
342
|
+
tsup is a zero-config TypeScript bundler powered by esbuild, perfect for building libraries.
|
|
343
|
+
|
|
344
|
+
### Benefits
|
|
345
|
+
|
|
346
|
+
- **Zero config** - Works out of the box
|
|
347
|
+
- **Fast** - Powered by esbuild
|
|
348
|
+
- **Multiple formats** - ESM, CJS, IIFE
|
|
349
|
+
- **Type declarations** - Automatic .d.ts generation
|
|
350
|
+
- **Tree-shaking** - Dead code elimination
|
|
351
|
+
|
|
352
|
+
### Installation
|
|
353
|
+
|
|
354
|
+
```bash
|
|
355
|
+
npm install -D tsup
|
|
356
|
+
```
|
|
357
|
+
|
|
358
|
+
### Basic Configuration
|
|
359
|
+
|
|
360
|
+
```typescript
|
|
361
|
+
// tsup.config.ts
|
|
362
|
+
import { defineConfig } from 'tsup';
|
|
363
|
+
|
|
364
|
+
export default defineConfig({
|
|
365
|
+
entry: ['src/index.ts'],
|
|
366
|
+
format: ['cjs', 'esm'],
|
|
367
|
+
dts: true,
|
|
368
|
+
splitting: false,
|
|
369
|
+
sourcemap: true,
|
|
370
|
+
clean: true,
|
|
371
|
+
minify: false,
|
|
372
|
+
treeshake: true
|
|
373
|
+
});
|
|
374
|
+
```
|
|
375
|
+
|
|
376
|
+
### Advanced Configuration
|
|
377
|
+
|
|
378
|
+
```typescript
|
|
379
|
+
// tsup.config.ts
|
|
380
|
+
import { defineConfig } from 'tsup';
|
|
381
|
+
|
|
382
|
+
export default defineConfig({
|
|
383
|
+
// Entry points
|
|
384
|
+
entry: {
|
|
385
|
+
index: 'src/index.ts',
|
|
386
|
+
cli: 'src/cli.ts',
|
|
387
|
+
utils: 'src/utils/index.ts'
|
|
388
|
+
},
|
|
389
|
+
|
|
390
|
+
// Output formats
|
|
391
|
+
format: ['cjs', 'esm'],
|
|
392
|
+
|
|
393
|
+
// Type declarations
|
|
394
|
+
dts: {
|
|
395
|
+
resolve: true,
|
|
396
|
+
entry: './src/index.ts'
|
|
397
|
+
},
|
|
398
|
+
|
|
399
|
+
// Code splitting
|
|
400
|
+
splitting: true,
|
|
401
|
+
|
|
402
|
+
// Source maps
|
|
403
|
+
sourcemap: true,
|
|
404
|
+
|
|
405
|
+
// Clean output directory
|
|
406
|
+
clean: true,
|
|
407
|
+
|
|
408
|
+
// Minification
|
|
409
|
+
minify: process.env.NODE_ENV === 'production',
|
|
410
|
+
|
|
411
|
+
// Tree-shaking
|
|
412
|
+
treeshake: true,
|
|
413
|
+
|
|
414
|
+
// External dependencies
|
|
415
|
+
external: ['react', 'react-dom'],
|
|
416
|
+
|
|
417
|
+
// Target environment
|
|
418
|
+
target: 'es2020',
|
|
419
|
+
|
|
420
|
+
// Platform
|
|
421
|
+
platform: 'node',
|
|
422
|
+
|
|
423
|
+
// Bundle
|
|
424
|
+
bundle: true,
|
|
425
|
+
|
|
426
|
+
// Watch mode
|
|
427
|
+
watch: process.env.NODE_ENV === 'development',
|
|
428
|
+
|
|
429
|
+
// Shims
|
|
430
|
+
shims: true,
|
|
431
|
+
|
|
432
|
+
// Banner
|
|
433
|
+
banner: {
|
|
434
|
+
js: '#!/usr/bin/env node'
|
|
435
|
+
},
|
|
436
|
+
|
|
437
|
+
// Environment variables
|
|
438
|
+
env: {
|
|
439
|
+
NODE_ENV: process.env.NODE_ENV || 'production'
|
|
440
|
+
},
|
|
441
|
+
|
|
442
|
+
// esbuild options
|
|
443
|
+
esbuildOptions(options) {
|
|
444
|
+
options.footer = {
|
|
445
|
+
js: '// Built with tsup'
|
|
446
|
+
};
|
|
447
|
+
}
|
|
448
|
+
});
|
|
449
|
+
```
|
|
450
|
+
|
|
451
|
+
### Library package.json
|
|
452
|
+
|
|
453
|
+
```json
|
|
454
|
+
{
|
|
455
|
+
"name": "@mylib/core",
|
|
456
|
+
"version": "1.0.0",
|
|
457
|
+
"type": "module",
|
|
458
|
+
"main": "./dist/index.cjs",
|
|
459
|
+
"module": "./dist/index.js",
|
|
460
|
+
"types": "./dist/index.d.ts",
|
|
461
|
+
"exports": {
|
|
462
|
+
".": {
|
|
463
|
+
"import": "./dist/index.js",
|
|
464
|
+
"require": "./dist/index.cjs",
|
|
465
|
+
"types": "./dist/index.d.ts"
|
|
466
|
+
},
|
|
467
|
+
"./utils": {
|
|
468
|
+
"import": "./dist/utils.js",
|
|
469
|
+
"require": "./dist/utils.cjs",
|
|
470
|
+
"types": "./dist/utils.d.ts"
|
|
471
|
+
}
|
|
472
|
+
},
|
|
473
|
+
"files": [
|
|
474
|
+
"dist"
|
|
475
|
+
],
|
|
476
|
+
"scripts": {
|
|
477
|
+
"build": "tsup",
|
|
478
|
+
"dev": "tsup --watch",
|
|
479
|
+
"prepublishOnly": "npm run build"
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
```
|
|
483
|
+
|
|
484
|
+
---
|
|
485
|
+
|
|
486
|
+
## Vitest + MSW Setup
|
|
487
|
+
|
|
488
|
+
### Overview
|
|
489
|
+
|
|
490
|
+
Vitest is a blazing-fast unit test framework powered by Vite. MSW (Mock Service Worker) provides API mocking for tests.
|
|
491
|
+
|
|
492
|
+
### Benefits
|
|
493
|
+
|
|
494
|
+
**Vitest:**
|
|
495
|
+
- **Fast** - Powered by Vite
|
|
496
|
+
- **Compatible** - Jest-compatible API
|
|
497
|
+
- **TypeScript** - First-class TypeScript support
|
|
498
|
+
- **Watch mode** - Instant feedback
|
|
499
|
+
- **Coverage** - Built-in coverage with v8
|
|
500
|
+
|
|
501
|
+
**MSW:**
|
|
502
|
+
- **Realistic** - Intercepts actual HTTP requests
|
|
503
|
+
- **Reusable** - Same mocks for tests and development
|
|
504
|
+
- **Type-safe** - Full TypeScript support
|
|
505
|
+
- **Framework-agnostic** - Works with any test framework
|
|
506
|
+
|
|
507
|
+
### Installation
|
|
508
|
+
|
|
509
|
+
```bash
|
|
510
|
+
# Install Vitest
|
|
511
|
+
npm install -D vitest @vitest/ui
|
|
512
|
+
|
|
513
|
+
# Install MSW
|
|
514
|
+
npm install -D msw
|
|
515
|
+
|
|
516
|
+
# Install testing utilities
|
|
517
|
+
npm install -D @testing-library/react @testing-library/jest-dom
|
|
518
|
+
```
|
|
519
|
+
|
|
520
|
+
### vitest.config.ts
|
|
521
|
+
|
|
522
|
+
```typescript
|
|
523
|
+
import { defineConfig } from 'vitest/config';
|
|
524
|
+
import react from '@vitejs/plugin-react';
|
|
525
|
+
import path from 'path';
|
|
526
|
+
|
|
527
|
+
export default defineConfig({
|
|
528
|
+
plugins: [react()],
|
|
529
|
+
test: {
|
|
530
|
+
// Environment
|
|
531
|
+
environment: 'jsdom',
|
|
532
|
+
|
|
533
|
+
// Setup files
|
|
534
|
+
setupFiles: ['./test/setup.ts'],
|
|
535
|
+
|
|
536
|
+
// Globals
|
|
537
|
+
globals: true,
|
|
538
|
+
|
|
539
|
+
// Coverage
|
|
540
|
+
coverage: {
|
|
541
|
+
provider: 'v8',
|
|
542
|
+
reporter: ['text', 'json', 'html'],
|
|
543
|
+
exclude: [
|
|
544
|
+
'node_modules/',
|
|
545
|
+
'test/',
|
|
546
|
+
'**/*.d.ts',
|
|
547
|
+
'**/*.config.*',
|
|
548
|
+
'**/dist/**'
|
|
549
|
+
],
|
|
550
|
+
thresholds: {
|
|
551
|
+
lines: 80,
|
|
552
|
+
functions: 80,
|
|
553
|
+
branches: 80,
|
|
554
|
+
statements: 80
|
|
555
|
+
}
|
|
556
|
+
},
|
|
557
|
+
|
|
558
|
+
// Include/exclude
|
|
559
|
+
include: ['**/*.{test,spec}.{ts,tsx}'],
|
|
560
|
+
exclude: ['node_modules', 'dist', 'build'],
|
|
561
|
+
|
|
562
|
+
// Reporters
|
|
563
|
+
reporters: ['verbose'],
|
|
564
|
+
|
|
565
|
+
// Watch
|
|
566
|
+
watch: false,
|
|
567
|
+
|
|
568
|
+
// Threads
|
|
569
|
+
threads: true,
|
|
570
|
+
|
|
571
|
+
// Timeout
|
|
572
|
+
testTimeout: 10000
|
|
573
|
+
},
|
|
574
|
+
resolve: {
|
|
575
|
+
alias: {
|
|
576
|
+
'@': path.resolve(__dirname, './src')
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
});
|
|
580
|
+
```
|
|
581
|
+
|
|
582
|
+
### Test Setup (test/setup.ts)
|
|
583
|
+
|
|
584
|
+
```typescript
|
|
585
|
+
import { afterAll, afterEach, beforeAll } from 'vitest';
|
|
586
|
+
import { cleanup } from '@testing-library/react';
|
|
587
|
+
import '@testing-library/jest-dom/vitest';
|
|
588
|
+
import { server } from './mocks/server';
|
|
589
|
+
|
|
590
|
+
// Start MSW server before all tests
|
|
591
|
+
beforeAll(() => {
|
|
592
|
+
server.listen({ onUnhandledRequest: 'error' });
|
|
593
|
+
});
|
|
594
|
+
|
|
595
|
+
// Reset handlers after each test
|
|
596
|
+
afterEach(() => {
|
|
597
|
+
server.resetHandlers();
|
|
598
|
+
cleanup();
|
|
599
|
+
});
|
|
600
|
+
|
|
601
|
+
// Clean up after all tests
|
|
602
|
+
afterAll(() => {
|
|
603
|
+
server.close();
|
|
604
|
+
});
|
|
605
|
+
```
|
|
606
|
+
|
|
607
|
+
### MSW Handlers (test/mocks/handlers.ts)
|
|
608
|
+
|
|
609
|
+
```typescript
|
|
610
|
+
import { http, HttpResponse } from 'msw';
|
|
611
|
+
|
|
612
|
+
export const handlers = [
|
|
613
|
+
// GET request
|
|
614
|
+
http.get('/api/users', () => {
|
|
615
|
+
return HttpResponse.json([
|
|
616
|
+
{ id: 1, name: 'John Doe' },
|
|
617
|
+
{ id: 2, name: 'Jane Smith' }
|
|
618
|
+
]);
|
|
619
|
+
}),
|
|
620
|
+
|
|
621
|
+
// POST request
|
|
622
|
+
http.post('/api/users', async ({ request }) => {
|
|
623
|
+
const newUser = await request.json();
|
|
624
|
+
return HttpResponse.json(
|
|
625
|
+
{ id: 3, ...newUser },
|
|
626
|
+
{ status: 201 }
|
|
627
|
+
);
|
|
628
|
+
}),
|
|
629
|
+
|
|
630
|
+
// Error response
|
|
631
|
+
http.get('/api/error', () => {
|
|
632
|
+
return HttpResponse.json(
|
|
633
|
+
{ message: 'Internal Server Error' },
|
|
634
|
+
{ status: 500 }
|
|
635
|
+
);
|
|
636
|
+
}),
|
|
637
|
+
|
|
638
|
+
// Delayed response
|
|
639
|
+
http.get('/api/slow', async () => {
|
|
640
|
+
await new Promise((resolve) => setTimeout(resolve, 1000));
|
|
641
|
+
return HttpResponse.json({ data: 'slow response' });
|
|
642
|
+
})
|
|
643
|
+
];
|
|
644
|
+
```
|
|
645
|
+
|
|
646
|
+
### MSW Server (test/mocks/server.ts)
|
|
647
|
+
|
|
648
|
+
```typescript
|
|
649
|
+
import { setupServer } from 'msw/node';
|
|
650
|
+
import { handlers } from './handlers';
|
|
651
|
+
|
|
652
|
+
export const server = setupServer(...handlers);
|
|
653
|
+
```
|
|
654
|
+
|
|
655
|
+
### Example Test
|
|
656
|
+
|
|
657
|
+
```typescript
|
|
658
|
+
// src/api/users.test.ts
|
|
659
|
+
import { describe, it, expect } from 'vitest';
|
|
660
|
+
import { render, screen, waitFor } from '@testing-library/react';
|
|
661
|
+
import { server } from '../test/mocks/server';
|
|
662
|
+
import { http, HttpResponse } from 'msw';
|
|
663
|
+
import { UserList } from './UserList';
|
|
664
|
+
|
|
665
|
+
describe('UserList', () => {
|
|
666
|
+
it('renders users from API', async () => {
|
|
667
|
+
render(<UserList />);
|
|
668
|
+
|
|
669
|
+
await waitFor(() => {
|
|
670
|
+
expect(screen.getByText('John Doe')).toBeInTheDocument();
|
|
671
|
+
expect(screen.getByText('Jane Smith')).toBeInTheDocument();
|
|
672
|
+
});
|
|
673
|
+
});
|
|
674
|
+
|
|
675
|
+
it('handles API errors', async () => {
|
|
676
|
+
// Override handler for this test
|
|
677
|
+
server.use(
|
|
678
|
+
http.get('/api/users', () => {
|
|
679
|
+
return HttpResponse.json(
|
|
680
|
+
{ message: 'Failed to fetch' },
|
|
681
|
+
{ status: 500 }
|
|
682
|
+
);
|
|
683
|
+
})
|
|
684
|
+
);
|
|
685
|
+
|
|
686
|
+
render(<UserList />);
|
|
687
|
+
|
|
688
|
+
await waitFor(() => {
|
|
689
|
+
expect(screen.getByText('Error loading users')).toBeInTheDocument();
|
|
690
|
+
});
|
|
691
|
+
});
|
|
692
|
+
|
|
693
|
+
it('handles empty response', async () => {
|
|
694
|
+
server.use(
|
|
695
|
+
http.get('/api/users', () => {
|
|
696
|
+
return HttpResponse.json([]);
|
|
697
|
+
})
|
|
698
|
+
);
|
|
699
|
+
|
|
700
|
+
render(<UserList />);
|
|
701
|
+
|
|
702
|
+
await waitFor(() => {
|
|
703
|
+
expect(screen.getByText('No users found')).toBeInTheDocument();
|
|
704
|
+
});
|
|
705
|
+
});
|
|
706
|
+
});
|
|
707
|
+
```
|
|
708
|
+
|
|
709
|
+
### Running Tests
|
|
710
|
+
|
|
711
|
+
```bash
|
|
712
|
+
# Run tests
|
|
713
|
+
npm test
|
|
714
|
+
|
|
715
|
+
# Run tests in watch mode
|
|
716
|
+
npm test -- --watch
|
|
717
|
+
|
|
718
|
+
# Run tests with coverage
|
|
719
|
+
npm test -- --coverage
|
|
720
|
+
|
|
721
|
+
# Run tests with UI
|
|
722
|
+
npm test -- --ui
|
|
723
|
+
|
|
724
|
+
# Run specific test file
|
|
725
|
+
npm test -- src/api/users.test.ts
|
|
726
|
+
```
|
|
727
|
+
|
|
728
|
+
### package.json Scripts
|
|
729
|
+
|
|
730
|
+
```json
|
|
731
|
+
{
|
|
732
|
+
"scripts": {
|
|
733
|
+
"test": "vitest run",
|
|
734
|
+
"test:watch": "vitest",
|
|
735
|
+
"test:ui": "vitest --ui",
|
|
736
|
+
"test:coverage": "vitest run --coverage",
|
|
737
|
+
"test:ci": "vitest run --coverage --reporter=junit --reporter=default"
|
|
738
|
+
}
|
|
739
|
+
}
|
|
740
|
+
```
|
|
741
|
+
|
|
742
|
+
---
|
|
743
|
+
|
|
744
|
+
## Tool Comparison
|
|
745
|
+
|
|
746
|
+
### ESLint vs Biome
|
|
747
|
+
|
|
748
|
+
| Feature | ESLint | Biome |
|
|
749
|
+
|---------|--------|-------|
|
|
750
|
+
| **Speed** | Moderate | 10-100x faster |
|
|
751
|
+
| **Configuration** | Complex | Simple |
|
|
752
|
+
| **Formatting** | Requires Prettier | Built-in |
|
|
753
|
+
| **Import sorting** | Plugin required | Built-in |
|
|
754
|
+
| **Ecosystem** | Mature, many plugins | Growing |
|
|
755
|
+
| **TypeScript** | Good support | Excellent support |
|
|
756
|
+
| **Migration** | N/A | Easy from ESLint |
|
|
757
|
+
|
|
758
|
+
**When to use ESLint:**
|
|
759
|
+
- Need specific plugins not available in Biome
|
|
760
|
+
- Large existing codebase with custom rules
|
|
761
|
+
- Team familiar with ESLint ecosystem
|
|
762
|
+
|
|
763
|
+
**When to use Biome:**
|
|
764
|
+
- New projects
|
|
765
|
+
- Performance is critical
|
|
766
|
+
- Want simpler tooling
|
|
767
|
+
- Prefer all-in-one solution
|
|
768
|
+
|
|
769
|
+
### Jest vs Vitest
|
|
770
|
+
|
|
771
|
+
| Feature | Jest | Vitest |
|
|
772
|
+
|---------|------|--------|
|
|
773
|
+
| **Speed** | Moderate | Very fast |
|
|
774
|
+
| **Configuration** | Moderate | Minimal |
|
|
775
|
+
| **TypeScript** | Requires ts-jest | Native support |
|
|
776
|
+
| **ESM** | Limited | Full support |
|
|
777
|
+
| **Watch mode** | Good | Excellent |
|
|
778
|
+
| **Coverage** | Built-in | Built-in (v8) |
|
|
779
|
+
| **API** | Mature | Jest-compatible |
|
|
780
|
+
|
|
781
|
+
**When to use Jest:**
|
|
782
|
+
- Existing Jest tests
|
|
783
|
+
- Need specific Jest plugins
|
|
784
|
+
- Team familiar with Jest
|
|
785
|
+
|
|
786
|
+
**When to use Vitest:**
|
|
787
|
+
- New projects
|
|
788
|
+
- Using Vite
|
|
789
|
+
- Want faster tests
|
|
790
|
+
- Need better ESM support
|
|
791
|
+
|
|
792
|
+
### Webpack vs tsup
|
|
793
|
+
|
|
794
|
+
| Feature | Webpack | tsup |
|
|
795
|
+
|---------|---------|------|
|
|
796
|
+
| **Speed** | Moderate | Very fast |
|
|
797
|
+
| **Configuration** | Complex | Minimal |
|
|
798
|
+
| **Use case** | Applications | Libraries |
|
|
799
|
+
| **Bundle size** | Larger | Smaller |
|
|
800
|
+
| **Tree-shaking** | Good | Excellent |
|
|
801
|
+
| **Learning curve** | Steep | Gentle |
|
|
802
|
+
|
|
803
|
+
**When to use Webpack:**
|
|
804
|
+
- Building applications
|
|
805
|
+
- Need advanced features (code splitting, lazy loading)
|
|
806
|
+
- Complex build requirements
|
|
807
|
+
|
|
808
|
+
**When to use tsup:**
|
|
809
|
+
- Building libraries
|
|
810
|
+
- Want simple configuration
|
|
811
|
+
- Need fast builds
|
|
812
|
+
- Publishing to npm
|
|
813
|
+
|
|
814
|
+
---
|
|
815
|
+
|
|
816
|
+
## Migration Guide
|
|
817
|
+
|
|
818
|
+
### From ESLint Legacy to Flat Config
|
|
819
|
+
|
|
820
|
+
1. **Remove old config files**
|
|
821
|
+
```bash
|
|
822
|
+
rm .eslintrc.js .eslintrc.json .eslintignore
|
|
823
|
+
```
|
|
824
|
+
|
|
825
|
+
2. **Create eslint.config.js**
|
|
826
|
+
```javascript
|
|
827
|
+
import js from '@eslint/js';
|
|
828
|
+
|
|
829
|
+
export default [
|
|
830
|
+
js.configs.recommended,
|
|
831
|
+
{
|
|
832
|
+
files: ['**/*.ts'],
|
|
833
|
+
// ... your rules
|
|
834
|
+
}
|
|
835
|
+
];
|
|
836
|
+
```
|
|
837
|
+
|
|
838
|
+
3. **Update package.json**
|
|
839
|
+
```json
|
|
840
|
+
{
|
|
841
|
+
"scripts": {
|
|
842
|
+
"lint": "eslint ."
|
|
843
|
+
}
|
|
844
|
+
}
|
|
845
|
+
```
|
|
846
|
+
|
|
847
|
+
### From ESLint + Prettier to Biome
|
|
848
|
+
|
|
849
|
+
1. **Install Biome**
|
|
850
|
+
```bash
|
|
851
|
+
npm install -D @biomejs/biome
|
|
852
|
+
npm uninstall eslint prettier
|
|
853
|
+
```
|
|
854
|
+
|
|
855
|
+
2. **Initialize Biome**
|
|
856
|
+
```bash
|
|
857
|
+
npx @biomejs/biome init
|
|
858
|
+
```
|
|
859
|
+
|
|
860
|
+
3. **Migrate configuration**
|
|
861
|
+
```bash
|
|
862
|
+
npx @biomejs/biome migrate eslint --write
|
|
863
|
+
```
|
|
864
|
+
|
|
865
|
+
4. **Update scripts**
|
|
866
|
+
```json
|
|
867
|
+
{
|
|
868
|
+
"scripts": {
|
|
869
|
+
"lint": "biome check .",
|
|
870
|
+
"format": "biome format --write ."
|
|
871
|
+
}
|
|
872
|
+
}
|
|
873
|
+
```
|
|
874
|
+
|
|
875
|
+
### From Jest to Vitest
|
|
876
|
+
|
|
877
|
+
1. **Install Vitest**
|
|
878
|
+
```bash
|
|
879
|
+
npm install -D vitest @vitest/ui
|
|
880
|
+
npm uninstall jest @types/jest ts-jest
|
|
881
|
+
```
|
|
882
|
+
|
|
883
|
+
2. **Create vitest.config.ts**
|
|
884
|
+
```typescript
|
|
885
|
+
import { defineConfig } from 'vitest/config';
|
|
886
|
+
|
|
887
|
+
export default defineConfig({
|
|
888
|
+
test: {
|
|
889
|
+
globals: true,
|
|
890
|
+
environment: 'jsdom'
|
|
891
|
+
}
|
|
892
|
+
});
|
|
893
|
+
```
|
|
894
|
+
|
|
895
|
+
3. **Update test files**
|
|
896
|
+
```typescript
|
|
897
|
+
// Before (Jest)
|
|
898
|
+
import { describe, it, expect } from '@jest/globals';
|
|
899
|
+
|
|
900
|
+
// After (Vitest)
|
|
901
|
+
import { describe, it, expect } from 'vitest';
|
|
902
|
+
```
|
|
903
|
+
|
|
904
|
+
4. **Update package.json**
|
|
905
|
+
```json
|
|
906
|
+
{
|
|
907
|
+
"scripts": {
|
|
908
|
+
"test": "vitest run",
|
|
909
|
+
"test:watch": "vitest"
|
|
910
|
+
}
|
|
911
|
+
}
|
|
912
|
+
```
|
|
913
|
+
|
|
914
|
+
---
|
|
915
|
+
|
|
916
|
+
## Best Practices
|
|
917
|
+
|
|
918
|
+
### 1. Use Flat Config for ESLint
|
|
919
|
+
|
|
920
|
+
```javascript
|
|
921
|
+
// ✅ Good: Flat config
|
|
922
|
+
export default [
|
|
923
|
+
{
|
|
924
|
+
files: ['**/*.ts'],
|
|
925
|
+
rules: {
|
|
926
|
+
'@typescript-eslint/no-unused-vars': 'error'
|
|
927
|
+
}
|
|
928
|
+
}
|
|
929
|
+
];
|
|
930
|
+
|
|
931
|
+
// ❌ Bad: Legacy config
|
|
932
|
+
module.exports = {
|
|
933
|
+
extends: ['eslint:recommended'],
|
|
934
|
+
rules: {
|
|
935
|
+
'@typescript-eslint/no-unused-vars': 'error'
|
|
936
|
+
}
|
|
937
|
+
};
|
|
938
|
+
```
|
|
939
|
+
|
|
940
|
+
### 2. Enable Biome in VS Code
|
|
941
|
+
|
|
942
|
+
```json
|
|
943
|
+
// .vscode/settings.json
|
|
944
|
+
{
|
|
945
|
+
"editor.defaultFormatter": "biomejs.biome",
|
|
946
|
+
"editor.formatOnSave": true,
|
|
947
|
+
"editor.codeActionsOnSave": {
|
|
948
|
+
"source.organizeImports.biome": "explicit"
|
|
949
|
+
}
|
|
950
|
+
}
|
|
951
|
+
```
|
|
952
|
+
|
|
953
|
+
### 3. Configure tsup for Libraries
|
|
954
|
+
|
|
955
|
+
```typescript
|
|
956
|
+
// ✅ Good: Multiple formats
|
|
957
|
+
export default defineConfig({
|
|
958
|
+
entry: ['src/index.ts'],
|
|
959
|
+
format: ['cjs', 'esm'],
|
|
960
|
+
dts: true,
|
|
961
|
+
clean: true
|
|
962
|
+
});
|
|
963
|
+
|
|
964
|
+
// ❌ Bad: Single format
|
|
965
|
+
export default defineConfig({
|
|
966
|
+
entry: ['src/index.ts'],
|
|
967
|
+
format: ['esm']
|
|
968
|
+
});
|
|
969
|
+
```
|
|
970
|
+
|
|
971
|
+
### 4. Use MSW for API Mocking
|
|
972
|
+
|
|
973
|
+
```typescript
|
|
974
|
+
// ✅ Good: MSW handlers
|
|
975
|
+
export const handlers = [
|
|
976
|
+
http.get('/api/users', () => {
|
|
977
|
+
return HttpResponse.json([{ id: 1, name: 'John' }]);
|
|
978
|
+
})
|
|
979
|
+
];
|
|
980
|
+
|
|
981
|
+
// ❌ Bad: Manual mocking
|
|
982
|
+
global.fetch = vi.fn(() =>
|
|
983
|
+
Promise.resolve({
|
|
984
|
+
json: () => Promise.resolve([{ id: 1, name: 'John' }])
|
|
985
|
+
})
|
|
986
|
+
);
|
|
987
|
+
```
|
|
988
|
+
|
|
989
|
+
### 5. Enable Coverage Thresholds
|
|
990
|
+
|
|
991
|
+
```typescript
|
|
992
|
+
// vitest.config.ts
|
|
993
|
+
export default defineConfig({
|
|
994
|
+
test: {
|
|
995
|
+
coverage: {
|
|
996
|
+
thresholds: {
|
|
997
|
+
lines: 80,
|
|
998
|
+
functions: 80,
|
|
999
|
+
branches: 80,
|
|
1000
|
+
statements: 80
|
|
1001
|
+
}
|
|
1002
|
+
}
|
|
1003
|
+
}
|
|
1004
|
+
});
|
|
1005
|
+
```
|
|
1006
|
+
|
|
1007
|
+
### 6. Use Type-Safe Configs
|
|
1008
|
+
|
|
1009
|
+
```typescript
|
|
1010
|
+
// ✅ Good: Type-safe config
|
|
1011
|
+
import type { Linter } from 'eslint';
|
|
1012
|
+
|
|
1013
|
+
const config: Linter.FlatConfig[] = [
|
|
1014
|
+
// ... config
|
|
1015
|
+
];
|
|
1016
|
+
|
|
1017
|
+
export default config;
|
|
1018
|
+
|
|
1019
|
+
// ❌ Bad: Untyped config
|
|
1020
|
+
export default [
|
|
1021
|
+
// ... config
|
|
1022
|
+
];
|
|
1023
|
+
```
|
|
1024
|
+
|
|
1025
|
+
---
|
|
1026
|
+
|
|
1027
|
+
## Common Pitfalls
|
|
1028
|
+
|
|
1029
|
+
### ❌ Mixing ESLint Formats
|
|
1030
|
+
|
|
1031
|
+
```javascript
|
|
1032
|
+
// Don't mix flat config with legacy config
|
|
1033
|
+
export default [
|
|
1034
|
+
{
|
|
1035
|
+
extends: ['eslint:recommended'] // ❌ extends doesn't work in flat config
|
|
1036
|
+
}
|
|
1037
|
+
];
|
|
1038
|
+
```
|
|
1039
|
+
|
|
1040
|
+
### ❌ Forgetting to Clean Build Output
|
|
1041
|
+
|
|
1042
|
+
```typescript
|
|
1043
|
+
// Always clean before building
|
|
1044
|
+
export default defineConfig({
|
|
1045
|
+
clean: true // ✅ Clean dist/ before build
|
|
1046
|
+
});
|
|
1047
|
+
```
|
|
1048
|
+
|
|
1049
|
+
### ❌ Not Resetting MSW Handlers
|
|
1050
|
+
|
|
1051
|
+
```typescript
|
|
1052
|
+
// Always reset handlers after each test
|
|
1053
|
+
afterEach(() => {
|
|
1054
|
+
server.resetHandlers(); // ✅ Reset to default handlers
|
|
1055
|
+
});
|
|
1056
|
+
```
|
|
1057
|
+
|
|
1058
|
+
---
|
|
1059
|
+
|
|
1060
|
+
## References
|
|
1061
|
+
|
|
1062
|
+
- [ESLint Flat Config](https://eslint.org/docs/latest/use/configure/configuration-files-new)
|
|
1063
|
+
- [Biome Documentation](https://biomejs.dev)
|
|
1064
|
+
- [tsup Documentation](https://tsup.egoist.dev)
|
|
1065
|
+
- [Vitest Documentation](https://vitest.dev)
|
|
1066
|
+
- [MSW Documentation](https://mswjs.io)
|
|
1067
|
+
|
|
1068
|
+
|
|
1069
|
+
|
|
1070
|
+
|
|
1071
|
+
|