An almost zero-config lint-staged configuration for JavaScript/TypeScript projects. Versions 4.x are the latest stable releases, updated frequently to keep peer dependencies current (e.g., Biome, ESLint, Prettier, Stylelint). This package is now deprecated in favor of lefthook for better performance and flexibility. It provides pre-configured lint stages for multiple languages (JS, TS, CSS, Markdown, Dockerfile, etc.) and is designed to work out of the box with the Airlight ecosystem of lint configurations.
npm install lint-staged-config-airlightNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Create a lint-staged config file that invokes the airlight configuration for specified languages.
Migrate to lefthook and remove lint-staged-config-airlight from dependencies.
Ensure all peer dependencies are installed and at the correct versions. Check package.json or README for exact version ranges.
Always call the function: require('lintstaged-config-airlight')(languages).Use CommonJS require() or configure a bundler that handles CJS interop.
Ensure your project uses CommonJS (type: 'commonjs' in package.json or .cjs extension). If you need ESM, use a dynamic import: const config = await import('lintstaged-config-airlight');Change module.exports = require('lintstaged-config-airlight') to module.exports = require('lintstaged-config-airlight')();Call the imported default: import config from 'lintstaged-config-airlight'; const finalConfig = config(['js']);