Code Snippets EditorConfig

Short texts EditorConfig 🧑‍💻 Code snippets EditorConfig ✍️ Reading lists EditorConfig 👀

WordPress phpcs and php-cs-fixer

root = true [*] charset = utf-8 end_of_line = lf insert_final_newline = true trim_trailing_whitespace = true indent_style = tab [*.yml] indent_style = space indent_size = 2 [*.txt] end_of_line = crlf [*.md] trim_trailing_whitespace = false

.editorconfig with some StyleCop rules disabled

[*.cs] dotnet_style_predefined_type_for_locals_parameters_members=false:silent csharp_style_var_for_built_in_types=true:silent csharp_style_var_when_type_is_apparent=true:silent csharp_style_var_elsewhere=true:silent ## ## StyleCop.Analyzers ## # Using directive should appear within a namespace declaration dotnet_diagnostic.SA1200.severity = None # XML comment analysis is disabled due to project configuration dotnet_diagnostic.SA0001.severity = None # The file header is missing or not located at the top of the file dotnet_diagnostic.SA1633.severity = None # Use string.Empty […]

.editorconfig with StyleCop and SonarLint rule customizations

[*.cs] dotnet_style_predefined_type_for_locals_parameters_members=false:silent csharp_style_var_for_built_in_types=true:silent csharp_style_var_when_type_is_apparent=true:silent csharp_style_var_elsewhere=true:silent ## ## StyleCop.Analyzers ## # Using directive should appear within a namespace declaration dotnet_diagnostic.SA1200.severity = None # XML comment analysis is disabled due to project configuration dotnet_diagnostic.SA0001.severity = None # The file header is missing or not located at the top of the file dotnet_diagnostic.SA1633.severity = None # Use string.Empty […]

Prettier, ESLint, Husky, Lint-Staged, Editorconfig for React (Web/Native)

# look for an .editorconfig file inside this project root = true [*] charset = utf-8 end_of_line = lf indent_size = 2 indent_style = space # while saving insert_final_newline = true max_line_length = 80 # any whitespace character preceding a newline to be trimmed trim_trailing_whitespace = true [*.md] insert_final_newline = false trim_trailing_whitespace = false