Skip to content

tooling: add ESLint code-style rules and pre-commit enforcement - #331

Open
laurentketterle-hub wants to merge 1 commit into
Heliobond:mainfrom
laurentketterle-hub:tooling/eslint-config-fix
Open

tooling: add ESLint code-style rules and pre-commit enforcement#331
laurentketterle-hub wants to merge 1 commit into
Heliobond:mainfrom
laurentketterle-hub:tooling/eslint-config-fix

Conversation

@laurentketterle-hub

Copy link
Copy Markdown

Summary

Expands the ESLint configuration with code-style consistency rules and enforces linting on every commit via lint-staged.

Changes

eslint.config.mjs — Added project-level rules:

  • no-console (warn, allows warn/error)
  • @typescript-eslint/no-unused-vars (error, ignores _-prefixed)
  • no-var (error)
  • prefer-const (error)
  • eqeqeq (error, strict equality)
  • no-duplicate-imports (error)
  • no-multiple-empty-lines (warn)
  • import/order (warn, alphabetized groups)

package.json — Added eslint --fix --max-warnings 0 to lint-staged so ESLint runs on every pre-commit alongside type-checking.

Closes #304

- Expand eslint.config.mjs with code-style consistency rules:
  no-console, no-unused-vars, no-var, prefer-const, eqeqeq,
  no-duplicate-imports, no-multiple-empty-lines, import/order
- Add 'eslint --fix --max-warnings 0' to lint-staged pre-commit hook
- Ensures consistent code style enforced on every commit

Closes Heliobond#304
@vercel

vercel Bot commented Aug 1, 2026

Copy link
Copy Markdown

@laurentketterle-hub is attempting to deploy a commit to the David Dada's projects Team on Vercel.

A member of the Team first needs to authorize it.

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.

tooling: ESLint config missing — inconsistent code style in PRs

1 participant