{"id":24874,"library":"aberlaas-lint","title":"Aberlaas Lint","description":"Aberlaas Lint is a CLI tool and library for linting files in JavaScript/TypeScript projects. As part of the Aberlaas toolkit (v2.27.4), it consolidates ESLint, Prettier, and other linters into a single command. It provides opinionated defaults but allows customization via config files. The library is primarily used via the `aberlaas lint` CLI command, but also exports a `lint` function for programmatic use. It targets Node.js and requires ESM. Version 2.x is stable; releases follow changes in underlying linters.","status":"active","version":"2.27.4","language":"javascript","source_language":"en","source_url":"https://github.com/pixelastic/aberlaas","tags":["javascript"],"install":[{"cmd":"npm install aberlaas-lint","lang":"bash","label":"npm"},{"cmd":"yarn add aberlaas-lint","lang":"bash","label":"yarn"},{"cmd":"pnpm add aberlaas-lint","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Configuration dependency for linting rules","package":"@aberlaas/config","optional":false},{"reason":"Core linting engine","package":"eslint","optional":false},{"reason":"Code formatting","package":"prettier","optional":false}],"imports":[{"note":"ESM-only package; CommonJS require will throw.","wrong":"const { lint } = require('aberlaas-lint')","symbol":"lint","correct":"import { lint } from 'aberlaas-lint'"},{"note":"Default export also available, but named is preferred.","wrong":"const lint = require('aberlaas-lint')","symbol":"lint (default)","correct":"import lint from 'aberlaas-lint'"},{"note":"Named export for accessing default config.","wrong":"import config from 'aberlaas-lint'","symbol":"config","correct":"import { config } from 'aberlaas-lint'"}],"quickstart":{"code":"import { lint } from 'aberlaas-lint';\n\nconst result = await lint({\n  cwd: process.cwd(),\n  fix: true,\n  files: ['src/**/*.js'],\n});\nconsole.log(result);","lang":"typescript","description":"Programmatic usage: lint files with optional auto-fix."},"warnings":[{"fix":"Use `@aberlaas/lint` instead.","message":"Package renamed from `aberlaas-lint` to `@aberlaas/lint` in v3","severity":"breaking","affected_versions":">=3.0.0"},{"fix":"Run `npx aberlaas lint` in your project.","message":"Deprecated: Use `aberlaas lint` CLI command instead of direct import.","severity":"deprecated","affected_versions":">=2.0.0"},{"fix":"Update Node.js to 14+.","message":"Requires Node.js >=14; fails silently on older versions.","severity":"gotcha","affected_versions":">=2.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run `npm install aberlaas-lint` and ensure ESM (type: 'module' in package.json) or `.mjs` extension.","cause":"Missing dependency or wrong import path.","error":"Cannot find module 'aberlaas-lint' or its corresponding type declarations."},{"fix":"Change to `import { lint } from 'aberlaas-lint'` and use ESM context.","cause":"Using CommonJS require() on an ESM-only package.","error":"TypeError: (0 , aberlaas_lint.lint) is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}