Usage In order to lint all commited files for newlines just add the following to your lintstaged config: "lint-staged": { "*": "npx newline-linter" }