Skip to content

chore: add ESLint config, root package.json, and fix type import ordering#16

Open
Geliogabalus wants to merge 11 commits intoclientIO:mainfrom
Geliogabalus:eslint
Open

chore: add ESLint config, root package.json, and fix type import ordering#16
Geliogabalus wants to merge 11 commits intoclientIO:mainfrom
Geliogabalus:eslint

Conversation

@Geliogabalus
Copy link
Contributor

Summary

  • Add root eslint.config.mjs with shared ESLint flat config for JS and TS files across all demos
  • Add root package.json with lint, lint:fix, build, build:force, screenshot, and screenshot:update scripts, plus ESLint devDependencies
  • Fix 252 TypeScript files to place regular imports before type imports
  • Update README.md with a Root Scripts section documenting the new npm scripts

Details

eslint.config.mjs

  • Covers .js, .jsx, .mjs and .ts, .tsx, .mts files
  • Uses @typescript-eslint/eslint-plugin flat config preset (flat/recommended)
  • Enforces 4-space indent, single quotes, semicolons, prefer-const, consistent-type-imports
  • Ignores .github/, build/, dist/, node_modules/

Type import ordering

  • Reordered imports in 252 TS/TSX files so import type statements always follow regular import statements
  • 15 files with intentional section comments (e.g. ai-agent-builder, marketing-automation) were left untouched

Test plan

  • Run npm install at the repo root
  • Run npm run lint — should report no errors on the fixed files
  • Spot-check a few TS files to confirm type imports appear after regular imports

🤖 Generated with Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant