Page MenuHomePhabricator

[misc] Introduce `.editorconfig`
ClosedPublic

Authored by atul on Mar 14 2022, 1:39 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Oct 27, 5:28 AM
Unknown Object (File)
Sun, Oct 27, 5:28 AM
Unknown Object (File)
Sun, Oct 27, 5:28 AM
Unknown Object (File)
Sun, Oct 27, 5:28 AM
Unknown Object (File)
Sun, Oct 27, 5:28 AM
Unknown Object (File)
Sun, Oct 27, 5:27 AM
Unknown Object (File)
Sun, Oct 27, 5:18 AM
Unknown Object (File)
Tue, Oct 8, 12:57 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
landmarch15 (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."