Page MenuHomePhabricator

[misc] Introduce `.editorconfig`
ClosedPublic

Authored by atul on Mar 14 2022, 1:39 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 21, 7:27 AM
Unknown Object (File)
Tue, Nov 19, 5:50 AM
Unknown Object (File)
Fri, Nov 15, 9:00 AM
Unknown Object (File)
Fri, Nov 15, 9:00 AM
Unknown Object (File)
Thu, Nov 14, 8:53 AM
Unknown Object (File)
Thu, Nov 14, 8:53 AM
Unknown Object (File)
Fri, Nov 8, 4:46 AM
Unknown Object (File)
Thu, Oct 31, 8:34 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
Branch
landmarch14 (branched from master)
Lint
No Lint Coverage
Unit
No Test Coverage

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."