generated from StabilityNexus/Template-Repo
-
-
Notifications
You must be signed in to change notification settings - Fork 15
add editorconfig #62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
add editorconfig #62
Changes from 1 commit
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,114 @@ | ||
| # EditorConfig helps maintain consistent coding styles across different editors and IDEs | ||
| # Documentation: https://editorconfig.org/ | ||
| # for more information scroll to the bottom of this file. | ||
|
|
||
| # Top-most EditorConfig file | ||
| root = true | ||
|
|
||
| # Universal settings for all files | ||
| [*] | ||
| charset = utf-8 | ||
| end_of_line = lf | ||
| insert_final_newline = true | ||
| trim_trailing_whitespace = true | ||
| indent_style = space | ||
| indent_size = 2 | ||
|
|
||
| # Markdown files | ||
| [*.md] | ||
| # Trailing whitespace is significant in Markdown (two spaces = line break) | ||
| trim_trailing_whitespace = false | ||
|
|
||
| # YAML files | ||
| [*.{yml,yaml}] | ||
| indent_size = 2 | ||
| indent_style = space | ||
|
|
||
| # JSON files | ||
| [*.json] | ||
| indent_size = 2 | ||
| indent_style = space | ||
|
|
||
| # JavaScript/TypeScript | ||
| [*.{js,jsx,ts,tsx}] | ||
| indent_size = 2 | ||
| indent_style = space | ||
|
|
||
| # Python files | ||
| [*.py] | ||
| indent_size = 4 | ||
| indent_style = space | ||
|
|
||
| # Java files | ||
| [*.java] | ||
| indent_size = 4 | ||
| indent_style = space | ||
|
|
||
| # C/C++ files | ||
| [*.{c,cpp,h,hpp}] | ||
| indent_size = 4 | ||
| indent_style = space | ||
|
|
||
| # Shell scripts | ||
| [*.sh] | ||
| indent_size = 2 | ||
| indent_style = space | ||
|
|
||
| # Makefiles (must use tabs) | ||
| [Makefile] | ||
| indent_style = tab | ||
|
|
||
| [*.mk] | ||
| indent_style = tab | ||
|
|
||
| # Configuration files | ||
| [*.{toml,ini,cfg}] | ||
| indent_size = 2 | ||
| indent_style = space | ||
|
|
||
| # XML/HTML files | ||
| [*.{xml,html,svg}] | ||
| indent_size = 2 | ||
| indent_style = space | ||
|
|
||
| # CSS/SCSS/LESS files | ||
| [*.{css,scss,sass,less}] | ||
| indent_size = 2 | ||
| indent_style = space | ||
|
|
||
| # Package manager files | ||
| [{package.json,package-lock.json}] | ||
| indent_size = 2 | ||
| indent_style = space | ||
|
|
||
| [{*.gradle,*.gradle.kts}] | ||
| indent_size = 4 | ||
| indent_style = space | ||
coderabbitai[bot] marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
|
|
||
|
|
||
kpj2006 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| # For full list of Supported Editors: https://editorconfig.org/#pre-installed | ||
| # | ||
| # Common Properties: | ||
| # ------------------ | ||
| # - indent_style: "space" or "tab" | ||
| # - indent_size: number of columns for each indentation level | ||
| # - end_of_line: "lf", "cr", or "crlf" | ||
| # - charset: "utf-8", "utf-16be", "utf-16le", "latin1" | ||
| # - trim_trailing_whitespace: true or false | ||
| # - insert_final_newline: true or false | ||
| # - max_line_length: number (not supported by all editors) | ||
| # | ||
| # File Pattern Matching: | ||
| # ---------------------- | ||
| # - * : matches any string of characters (except path separator) | ||
| # - ** : matches any string of characters | ||
| # - ? : matches any single character | ||
| # - [name] : matches any single character in name | ||
| # - [!name] : matches any single character not in name | ||
| # - {s1,s2,s3} : matches any of the strings given (comma-separated) | ||
| # | ||
| # For more information and queries: | ||
| # - Official Documentation: https://editorconfig.org/ | ||
| # - Specification: https://github.com/editorconfig/editorconfig/wiki/EditorConfig-Properties | ||
| # - Plugin Downloads: https://editorconfig.org/#download | ||
kpj2006 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.