Page MenuHomePhabricator

[misc] Introduce `.editorconfig`
ClosedPublic

Authored by atul on Mar 14 2022, 1:39 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 27, 6:13 AM
Unknown Object (File)
Wed, Nov 27, 6:03 AM
Unknown Object (File)
Wed, Nov 27, 2:10 AM
Unknown Object (File)
Nov 23 2024, 1:06 PM
Unknown Object (File)
Nov 21 2024, 7:27 AM
Unknown Object (File)
Nov 19 2024, 5:50 AM
Unknown Object (File)
Nov 15 2024, 9:00 AM
Unknown Object (File)
Nov 15 2024, 9:00 AM

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