{"id":25877,"library":"lint-staged-editorconfig","title":"lint-staged-editorconfig","description":"A lint-staged plugin that validates staged files are covered by .editorconfig rules. v0.1.0 is the only release (April 2020). It runs against all staged files and fails if any file is not matched by an editorconfig rule. Helps enforce consistent editor settings across a team. Alternative: manually checking editorconfig coverage, but this automates it as part of git hooks.","status":"active","version":"0.1.0","language":"javascript","source_language":"en","source_url":"https://github.com/ahawkins/lint-staged-editorconfig","tags":["javascript"],"install":[{"cmd":"npm install lint-staged-editorconfig","lang":"bash","label":"npm"},{"cmd":"yarn add lint-staged-editorconfig","lang":"bash","label":"yarn"},{"cmd":"pnpm add lint-staged-editorconfig","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Used to parse .editorconfig and check file coverage","package":"editorconfig","optional":false}],"imports":[{"note":"Package is CommonJS-only; no named or default ES import.","wrong":"import lintStagedEditorconfig from 'lint-staged-editorconfig'","symbol":"default","correct":"module.exports = require('lint-staged-editorconfig')"}],"quickstart":{"code":"// .lintstagedrc.js or package.json lint-staged config\nmodule.exports = {\n  '*': 'lint-staged-editorconfig'\n}","lang":"javascript","description":"Configure lint-staged to run editorconfig checker on all staged files."},"warnings":[{"fix":"Create an .editorconfigignore file with patterns like 'vendor/' to ignore directories.","message":"No files are excluded by default; if no .editorconfigignore exists, ALL staged files must match an editorconfig rule.","severity":"gotcha","affected_versions":">=0.1.0"},{"fix":"Check node_modules for peer dependency conflicts; consider forking or alternatives.","message":"Package has not been updated since April 2020; may have compatibility issues with newer lint-staged or editorconfig packages.","severity":"gotcha","affected_versions":"0.1.0"},{"fix":"Lock the 'editorconfig' version to 0.x to avoid breaking changes.","message":"The 'editorconfig' npm package (used as a dependency) may have breaking changes in future major versions.","severity":"deprecated","affected_versions":"0.1.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Add a matching section to .editorconfig or add the file pattern to .editorconfigignore.","cause":"Staged file is not covered by any pattern in .editorconfig or is excluded in .editorconfigignore","error":"No staged files match any editorconfig rule"},{"fix":"Install with 'yarn add -D lint-staged-editorconfig' or 'npm install --save-dev lint-staged-editorconfig'.","cause":"Package not installed or not in node_modules","error":"Cannot find module 'lint-staged-editorconfig'"},{"fix":"Create a .editorconfig file with at least one rule.","cause":"No .editorconfig file in project root","error":"lint-staged-editorconfig: .editorconfig file not found"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}