editorConfigの導入メモ
1976 ワード
EditorConfig
プロジェクトのタブ/スペース, 2/4タブ, 改行コードなどをエディタまたぎで設定・統一できるツール。
EditorConfig http://editorconfig.org/
とりあえず、reactで書いてるプロジェクトに下記ファイルをルートにぶっこむ
.editorconfig
root = true
[*]
indent_style = space
end_of_line = lf
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.js,*.jsx]
insert_final_newline = false
[*.md]
trim_trailing_whitespace = false
エディタへの導入
vim
deinユーザーなら下記を追加
~/.vim/rc/dein.toml
[[plugins]]
repo = 'editorconfig/editorconfig-vim'
atom
apm install editorconfig
vscode
# パレット起動
cmd+shift+P
ext install EditorConfig
# パレット起動
cmd+shift+P
ext install EditorConfig
Author And Source
この問題について(editorConfigの導入メモ), 我々は、より多くの情報をここで見つけました https://qiita.com/Jey/items/15b535dc13dd7c9538e9著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .