Registry / testing / lint-my-app

lint-my-app

JSON →
library3.7.65jsnpmunverified

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.

npm install lint-my-app
INSTALL
IMPORT
SIG · LINT-MY-APP
L
lint-my-app
testingjavascriptv3.7.65
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default (Husky config)
module.exports = require('lint-my-app/husky');
import huskyConfig from 'lint-my-app/husky';
The config is a CommonJS module. Use require() in .huskyrc.js.
CLI commands
npx lint-my-app lint
npx lint-my-app --lint
Commands are subcommands: 'lint', 'fix', 'staged'. Do not use flags.
huskyrc.js
module.exports = require('lint-my-app/husky');
export { default } from 'lint-my-app/husky';
Husky expects CommonJS exports. ESM syntax will fail.

Install dependencies and configure husky with lint-my-app's default hooks.

npm install --save-dev lint-my-app husky cat > .huskyrc.js << 'EOF' module.exports = require('lint-my-app/husky'); EOF git add . && git commit -m 'init lint-my-app'
lint-my-app --version
Debug
Known issues
gotchaHusky must be installed separately as a peer dependency.
fix
Run: npm install --save-dev husky
affects: >=3.0.0
gotchaHusky v5+ requires additional configuration; lint-my-app's husky config may not work out of the box.
fix
Use husky v4 or adapt to v5's .husky directory structure.
affects: >=3.0.0
deprecatedPackage is in maintenance mode with no active development since 2020.
fix
Consider migrating to lint-staged + husky directly.
affects: >=3.7.65
gotchaOnly works with git repositories; will error if not inside a git repo.
fix
Initialize a git repository with 'git init' before using.
affects: >=3.0.0
Errors
Common errors & fixes
Error: Cannot find module 'lint-my-app/husky'
Husky config file is not correct or package is not installed.
fix
Ensure lint-my-app is installed: npm install --save-dev lint-my-app
Unknown command: --lint
Using a flag instead of a subcommand.
fix
Use: npx lint-my-app lint
husky > pre-commit hook failed (add --no-verify to bypass)
Linting failed on staged files, preventing commit.
fix
Fix the errors or bypass with --no-verify temporarily.
Upgrade
Version history
3.7.65latest on npm
Audit
Dependencies
huskyoptionalRequired peer dependency; lint-my-app provides husky configuration but does not install it automatically.
Agent activity
6 hits · last 30 days
node
6
Resources
lint-my-app — npm install lint-my-app · libregistry