Was ist der ideale Weg, um .EditorConfig in TYPO3-Projekten einzurichten

Sind Sie auf der Suche nach globalem Standard TYPO3 .editorconfig Code? Hier finden Sie Code-Stil von PHP, TypoScript, YAML usw., die bei der Entwicklung von TYPO3-Projekten verwendet werden.

EditorConfig hilft mehreren Entwicklern, die mit verschiedenen Editoren und IDEs an demselben Projekt arbeiten, konsistente Codierungsstile beizubehalten. Das EditorConfig-Projekt besteht aus einem Dateiformat zur Definition von Codierungsstilen und einer Sammlung von Texteditor-Plugins, die es Editoren ermöglichen, das Dateiformat zu lesen und die definierten Stile einzuhalten. EditorConfig-Dateien sind leicht lesbar und funktionieren gut mit Versionskontrollsystemen.

# EditorConfig is awesome: http://EditorConfig.org

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

# CSS-Files
[*.css]
indent_style = space
indent_size = 4

# HTML-Files
[*.html]
indent_style = space
indent_size = 4

# TMPL-Files
[*.tmpl]
indent_style = space
indent_size = 4

# TSX-Files
[*.tsx]
indent_style = space
indent_size = 4

# LESS-Files
[*.less]
indent_style = space
indent_size = 4

# JS-Files
[*.js]
indent_style = space
indent_size = 4

# PHP-Files
[*.php]
indent_style = space
indent_size = 4

# MD-Files
[*.md]
indent_style = space
indent_size = 4

# ReST-Files
[*.rst]
indent_style = space
indent_size = 3

# TypoScript
[*.typoscript,*.ts]
indent_style = space
indent_size = 4

# YML-Files
[{*.yml,*.yaml}]
indent_style = space
indent_size = 2

# package.json, composer.json or .travis.yml
[{package.json,composer.json,.travis.yml}]
indent_style = space
indent_size = 2

# SCSS
[*.scss]
indent_style = tab
indent_size = 2

Post a Comment

×
Captcha Code Kann das Bild nicht gelesen werden? Klicken Sie hier, um zu aktualisieren

Got answer to the question you were looking for?