🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

@sheplu/editorconfig

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sheplu/editorconfig

A small CLI to manage a **consistent `.editorconfig`** across your projects.

latest
Source
npmnpm
Version
0.8.7
Version published
Weekly downloads
29
163.64%
Maintainers
1
Weekly downloads
 
Created
Source

editorconfig

A small CLI to manage a consistent .editorconfig across your projects.

  • âś… Generate a sane default .editorconfig in seconds
  • âś… Check if your existing file matches the target setup
  • 🔜 Propose updates (with confirmation) instead of blindly overwriting
  • 🔜 Compare your file against the recommended template

Why?

Keeping .editorconfig aligned across multiple repositories is boring and error-prone:

  • Some repos have no .editorconfig
  • Some have outdated or partial settings
  • People copy–paste from “somewhere” and drift over time

This CLI aims to provide a single source of truth for your preferred .editorconfig, and a few helpers to keep it in sync.

Installation

You can use it without installing, via npx:

npx @sheplu/editorconfig --mode=write

Or install it globally:

npm install -g @sheplu/editorconfig
editorconfig

Or as a dev dependency:

npm install -D @sheplu/editorconfig

Quick Start

From the root of your project:

npx @sheplu/editorconfig --mode=write

This will:

  • Create a .editorconfig file if it doesn’t exist
  • (Current behavior) Write the default template
  • (Future behavior) Ask before overwriting an existing file

Current Features

write

npx @sheplu/editorconfig --mode=write

Creates a base .editorconfig file in the current directory.

Typical content (example):

root = true

[*]
indent_style = tab
indent_size = 4
tab_width = 4
end_of_line = lf
charset = utf-8
spelling_language = en
trim_trailing_whitespace = true
insert_final_newline = true
quote_type = single
spaces_around_operators = true

check

npx @sheplu/editorconfig --mode=check

Validates your existing .editorconfig and reports any drift from the target configuration.

This command will:

  • Read your existing .editorconfig
  • Compare it against the tool’s canonical template
  • Exit with:
    • 0 if everything matches
    • 1 if differences are found

Planned / Upcoming Features

1. Interactive update / replace

npx @sheplu/editorconfig --mode=fix

2. Compare with target setup

npx @sheplu/editorconfig --mode=diff

Roadmap

  • Add diff logic and diff command
  • Add interactive fix / update command
  • Expose presets or configuration options
  • Add tests and CI examples

Additional properties can be found on the editorconfig wiki.

Documentation

Editorconfig documentation

Keywords

editorconfig

FAQs

Package last updated on 14 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts