Page MenuHomePhabricator

[misc] Introduce `.editorconfig`
ClosedPublic

Authored by atul on Mar 14 2022, 1:39 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Feb 17, 3:57 AM
Unknown Object (File)
Mon, Feb 3, 10:46 AM
Unknown Object (File)
Mon, Feb 3, 10:45 AM
Unknown Object (File)
Sun, Feb 2, 1:38 AM
Unknown Object (File)
Sun, Feb 2, 1:38 AM
Unknown Object (File)
Tue, Jan 21, 12:18 PM
Unknown Object (File)
Jan 19 2025, 6:03 AM
Unknown Object (File)
Jan 15 2025, 8:10 PM

Details

Summary

Set default indent style to space with default indent size of 2

(Additional rules can be put up as separate diffs)

Worked with VSCode after installing EditorConfig extension: https://marketplace.visualstudio.com/items?itemName=EditorConfig.EditorConfig

It looks like the nano/vim/emacs people will need to install some plugins to get it to work for them

Test Plan

Here it is working in VSCode (did a python file so existing eslint/prettier/whatever config wouldn't interfere)

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

atul published this revision for review.Mar 14 2022, 1:42 PM
atul edited the summary of this revision. (Show Details)
atul edited the test plan for this revision. (Show Details)
This revision is now accepted and ready to land.Mar 14 2022, 8:25 PM
This revision was landed with ongoing or failed builds.Mar 15 2022, 7:31 AM
This revision was automatically updated to reflect the committed changes.

Add a root = true at the top. From docs "root: special property that should be specified at the top of the file outside of any sections. Set to true to stop .editorconfig files search on current file."