Skip to content

Fix lint script setup - #9

Open
mojobeeping wants to merge 1 commit into
addyosmani:mainfrom
mojobeeping:mojobeep/fix-lint-setup
Open

Fix lint script setup#9
mojobeeping wants to merge 1 commit into
addyosmani:mainfrom
mojobeeping:mojobeep/fix-lint-setup

Conversation

@mojobeeping

Copy link
Copy Markdown

Summary

  • add ESLint 9 flat-config tooling so the existing npm run lint script can run from a fresh install
  • add a minimal ESM/Node flat config for src/ and test/
  • remove dead imports and locals surfaced by the recommended lint rules

Fixes #2.

Verification

  • rm -rf node_modules
  • npm ci --ignore-scripts --no-audit --no-fund
  • npm run lint
  • npm test
  • git diff --check

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.

npm run lint is broken: eslint is not in devDependencies and no config exists

1 participant