{"id":25874,"library":"lint-my-app","title":"lint-my-app","description":"lint-my-app is a zero-config linting tool that wraps lint-staged and husky to automatically fix staged files on commit and lint the entire codebase on push. It ships with sensible defaults (using ESLint, stylelint, prettier, and more) and respects existing configuration in your project. As of v3.7.65, it requires Node.js >=12.8.0 and has frequent releases but is in maintenance mode. It differs from alternatives like lint-staged alone by bundling husky configuration and providing built-in linting commands.","status":"maintenance","version":"3.7.65","language":"javascript","source_language":"en","source_url":"https://github.com/saiichihashimoto/lint-my-app","tags":["javascript","check","code","eslint","fix","fixjson","format","imagemin","lint"],"install":[{"cmd":"npm install lint-my-app","lang":"bash","label":"npm"},{"cmd":"yarn add lint-my-app","lang":"bash","label":"yarn"},{"cmd":"pnpm add lint-my-app","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Required peer dependency; lint-my-app provides husky configuration but does not install it automatically.","package":"husky","optional":true}],"imports":[{"note":"The config is a CommonJS module. Use require() in .huskyrc.js.","wrong":"import huskyConfig from 'lint-my-app/husky';","symbol":"default (Husky config)","correct":"module.exports = require('lint-my-app/husky');"},{"note":"Commands are subcommands: 'lint', 'fix', 'staged'. Do not use flags.","wrong":"npx lint-my-app --lint","symbol":"CLI commands","correct":"npx lint-my-app lint"},{"note":"Husky expects CommonJS exports. ESM syntax will fail.","wrong":"export { default } from 'lint-my-app/husky';","symbol":"huskyrc.js","correct":"module.exports = require('lint-my-app/husky');"}],"quickstart":{"code":"npm install --save-dev lint-my-app husky\n\ncat > .huskyrc.js << 'EOF'\nmodule.exports = require('lint-my-app/husky');\nEOF\n\ngit add . && git commit -m 'init lint-my-app'","lang":"javascript","description":"Install dependencies and configure husky with lint-my-app's default hooks."},"warnings":[{"fix":"Run: npm install --save-dev husky","message":"Husky must be installed separately as a peer dependency.","severity":"gotcha","affected_versions":">=3.0.0"},{"fix":"Use husky v4 or adapt to v5's .husky directory structure.","message":"Husky v5+ requires additional configuration; lint-my-app's husky config may not work out of the box.","severity":"gotcha","affected_versions":">=3.0.0"},{"fix":"Consider migrating to lint-staged + husky directly.","message":"Package is in maintenance mode with no active development since 2020.","severity":"deprecated","affected_versions":">=3.7.65"},{"fix":"Initialize a git repository with 'git init' before using.","message":"Only works with git repositories; will error if not inside a git repo.","severity":"gotcha","affected_versions":">=3.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Ensure lint-my-app is installed: npm install --save-dev lint-my-app","cause":"Husky config file is not correct or package is not installed.","error":"Error: Cannot find module 'lint-my-app/husky'"},{"fix":"Use: npx lint-my-app lint","cause":"Using a flag instead of a subcommand.","error":"Unknown command: --lint"},{"fix":"Fix the errors or bypass with --no-verify temporarily.","cause":"Linting failed on staged files, preventing commit.","error":"husky > pre-commit hook failed (add --no-verify to bypass)"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}