{"id":41973,"library":"smartlint","title":"smartlint","description":"CLI tool that lints entire codebase with a single command, bundling multiple linters (ESLint, ls-lint, dprint, Biome). Deprecated since v7.0.0 in favor of smartlint-unix. Built-in dependencies: eslint, ls-lint, dprint, biome. Peer dependencies: @stoplight/spectral-cli, dockerfilelint, stylelint, prettier (note: some contain known security issues). Requires Node >=18.20.3. Ships TypeScript definitions.","status":"deprecated","version":"7.0.7","language":"javascript","source_language":"en","source_url":"https://github.com/dalisoft/airlight","tags":["javascript","format","git","lint","config","typescript"],"install":[{"cmd":"npm install smartlint","lang":"bash","label":"npm"},{"cmd":"yarn add smartlint","lang":"bash","label":"yarn"},{"cmd":"pnpm add smartlint","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Required for linting OpenAPI/JSON/YAML with Spectral","package":"@stoplight/spectral-cli","optional":true},{"reason":"Required for migrating Spectral rulesets","package":"@stoplight/spectral-ruleset-migrator","optional":true},{"reason":"Required for linting Dockerfiles (known security issues)","package":"dockerfilelint","optional":true},{"reason":"Required for linting CSS/SCSS with Stylelint","package":"stylelint","optional":true},{"reason":"Required for code formatting with Prettier","package":"prettier","optional":true}],"imports":[{"note":"smartlint is a CLI tool, not a Node library. Use npx or install globally.","wrong":"require('smartlint')","symbol":"smartlint (CLI)","correct":"npx smartlint --linters=eslint,prettier ."},{"note":"smartlint has no JS API; only CLI usage is supported.","wrong":"import smartlint from 'smartlint'","symbol":"default import (not supported)","correct":"Run as CLI command"},{"note":"TypeScript types are bundled for internal use only, not exported.","wrong":"import { LinterOptions } from 'smartlint'","symbol":"TypeScript types (not exposed)","correct":"N/A"}],"quickstart":{"code":"{\n  \"scripts\": {\n    \"lint\": \"npx smartlint --linters=eslint,prettier .\"\n  }\n}\n// Run: npm run lint\n// Or directly: npx smartlint --linters=eslint,prettier .","lang":"javascript","description":"Shows how to add smartlint as a script in package.json and run it to lint the codebase with ESLint and Prettier."},"warnings":[{"fix":"Replace 'smartlint' with 'smartlint-unix' in package.json and run 'npm install smartlint-unix --save-dev'.","message":"smartlint is deprecated as of v7.0.0. Use smartlint-unix instead.","severity":"deprecated","affected_versions":">=7.0.0"},{"fix":"Upgrade Node.js to >=18.20.3.","message":"smartlint v7 dropped support for Node <18.20.3. Older versions may fail to install.","severity":"breaking","affected_versions":">=7.0.0"},{"fix":"Evaluate each peer dependency for security vulnerabilities. Consider alternatives if necessary.","message":"Some peer dependencies (dockerfilelint, @stoplight/spectral-cli, etc.) contain known security issues. Review before using.","severity":"gotcha","affected_versions":"*"},{"fix":"Use npx or global installation to run the command.","message":"smartlint is a CLI-only tool. It cannot be required or imported as a module.","severity":"gotcha","affected_versions":"*"},{"fix":"Update scripts using 'markdown' linter to 'markdownlint'.","message":"The --linters argument changed default values with v6. 'markdownlint' replaced 'markdown'.","severity":"breaking","affected_versions":">=6.0.0"}],"env_vars":null,"search_vec":"'18.20.3':54 'biom':20,39 'built':31 'built-in':30 'bundl':12 'cli':2 'codebas':7 'command':11 'config':62 'contain':48 'definit':57 'depend':33,41 'deprec':21 'dockerfilelint':43 'dprint':19,38 'entir':6 'eslint':15,34 'favor':25 'format':59 'git':60 'issu':51 'javascript':58 'known':49 'lint':5,18,37,61 'linter':14 'ls':17,36 'ls-lint':16,35 'multipl':13 'node':53 'note':46 'peer':40 'prettier':45 'requir':52 'secur':50 'ship':55 'sinc':22 'singl':10 'smartlint':1,28 'smartlint-unix':27 'stoplight/spectral-cli':42 'stylelint':44 'tool':3 'typescript':56,63 'unix':29 'v7.0.0':23","created_at":"2026-06-04T18:55:00.223997+00:00","updated_at":"2026-06-04T18:55:00.223997+00:00","problems":[{"fix":"Run 'npx smartlint ...' or add 'smartlint' to scripts in package.json.","cause":"Attempting to import smartlint as a module instead of running it as a CLI.","error":"Cannot find module 'smartlint'"},{"fix":"Upgrade Node.js to >=18.20.3 or use an older smartlint version.","cause":"Node.js version is too old for smartlint v7.","error":"The engine \"node\" is incompatible with this module. Expected version \">=18.20.3\""},{"fix":"Replace 'markdown' with 'markdownlint' in the --linters argument.","cause":"Outdated linter name 'markdown' was used; renamed to 'markdownlint' in v6.","error":"Error: linter 'markdown' not found. Use --linters to specify one of: lslint, eslint, stylelint, markdownlint, jsonymllint, biome, prettier, dockerfile"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/dalisoft/airlight#readme","github":"https://github.com/dalisoft/airlight","docs":null,"changelog":null,"pypi":null,"npm":"smartlint","openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-04","next_check":"2026-09-02","install_tag":null}}