@zumerbox/lint-preset

May 4, 2026 · View on GitHub

Bundled ESLint, Stylelint and Prettier presets, exposed as ready-to-run binaries. No config setup needed in the consumer project.

This package replaces and consolidates four previously separate packages:

Old packageNew binary
@zumerbox/js-lintlint-js
@zumerbox/css-lintlint-css
@zumerbox/scss-lintlint-scss
@zumerbox/code-formatformat

The old packages are deprecated on npm.

Install

npm install @zumerbox/lint-preset --save-dev

Or run on demand without installing:

npx @zumerbox/lint-preset lint-js

Usage

npx lint-js [paths] [eslint flags]      # ESLint with bundled config
npx lint-css [stylelint flags]          # Stylelint over **/*.css
npx lint-scss [stylelint flags]         # Stylelint over **/*.scss
npx format [prettier flags]             # Prettier --check (add --write to fix)

The format binary checks {.,docs,src,bin,test,mocks,app}/**/*.{js,html,md} by default.

What's in each preset

  • ESLint — extends eslint:recommended and prettier. Envs: browser, node, es2021, jest. sourceType: module.
  • Stylelint (CSS) — extends stylelint-config-standard.
  • Stylelint (SCSS) — extends stylelint-config-standard-scss.
  • Prettier — no semicolons, single quotes, 2-space indent, printWidth: 80, trailingComma: 'none'.

License

MIT