
Oxlint Has Free Linting 50x Faster Than ESLint — Here's Why Projects Are Switching
ESLint is slow. On large codebases, it takes minutes. Oxlint written in Rust does the same job in seconds. What is Oxlint? Oxlint is a JavaScript/TypeScript linter written in Rust by the Oxc project. It is 50-100x faster than ESLint and catches many of the same issues. Quick Start npx oxlint@latest That is it. No config file needed. It works out of the box. Speed Comparison Project: 10,000 TypeScript files ESLint: 45 seconds Oxlint: 0.8 seconds 50x faster. On CI, this means faster builds and quicker feedback. What It Catches // Catches: no-unused-vars const unused = 42 ; // Catches: no-debugger debugger ; // Catches: no-console (configurable) console . log ( " debug " ); // Catches: eqeqeq if ( x == null ) {} // Should be === // Catches: no-empty try {} catch ( e ) {} // Catches: no-constant-condition if ( true ) {} // Catches: no-self-compare if ( x === x ) {} Configuration // .oxlintrc.json (optional) { "rules" : { "no-console" : "warn" , "no-debugger" : "error" , "eqeqeq" : "error"
Continue reading on Dev.to JavaScript
Opens in a new tab



