Registry / devops / lint-staged-editorconfig

lint-staged-editorconfig

JSON →
library0.1.0jsnpmunverified

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.

npm install lint-staged-editorconfig
INSTALL
IMPORT
SIG · LINT-STAGED-EDITOR
L
lint-staged-editorconfig
devopsjavascriptv0.1.0
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
module.exports = require('lint-staged-editorconfig')
import lintStagedEditorconfig from 'lint-staged-editorconfig'
Package is CommonJS-only; no named or default ES import.

Configure lint-staged to run editorconfig checker on all staged files.

// .lintstagedrc.js or package.json lint-staged config module.exports = { '*': 'lint-staged-editorconfig' }
Debug
Known issues
gotchaNo files are excluded by default; if no .editorconfigignore exists, ALL staged files must match an editorconfig rule.
fix
Create an .editorconfigignore file with patterns like 'vendor/' to ignore directories.
affects: >=0.1.0
gotchaPackage has not been updated since April 2020; may have compatibility issues with newer lint-staged or editorconfig packages.
fix
Check node_modules for peer dependency conflicts; consider forking or alternatives.
affects: 0.1.0
deprecatedThe 'editorconfig' npm package (used as a dependency) may have breaking changes in future major versions.
fix
Lock the 'editorconfig' version to 0.x to avoid breaking changes.
affects: 0.1.0
Errors
Common errors & fixes
No staged files match any editorconfig rule
Staged file is not covered by any pattern in .editorconfig or is excluded in .editorconfigignore
fix
Add a matching section to .editorconfig or add the file pattern to .editorconfigignore.
Cannot find module 'lint-staged-editorconfig'
Package not installed or not in node_modules
fix
Install with 'yarn add -D lint-staged-editorconfig' or 'npm install --save-dev lint-staged-editorconfig'.
lint-staged-editorconfig: .editorconfig file not found
No .editorconfig file in project root
fix
Create a .editorconfig file with at least one rule.
Upgrade
Version history
0.1.0latest on npm
Audit
Dependencies
editorconfigrequiredUsed to parse .editorconfig and check file coverage
Agent activity
7 hits · last 30 days
node
6
Bingbot
1
Resources
lint-staged-editorconfig — npm install lint-staged-editorconfig · libregistry