Skip to content
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

chore: configure Prettier and EditorConfig for consistent formatting #694

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# EditorConfig is awesome: https://EditorConfig.org

root = true

[*]
# Set the max line length to 80 characters
max_line_length = 80

# Use 2 spaces for indentation
indent_style = space
indent_size = 2

# End files with a newline
insert_final_newline = true

# Don't use tabs for indentation
tab_width = 2

# Use double quotes
quote_type = double

# Don't add trailing commas
trim_trailing_whitespace = true

# Keep spaces between brackets
space_inside_brackets = true

# Avoid parentheses for single-argument arrow functions
arrow_function_parentheses = avoid

# Don't wrap prose
wrap_prose = never

# Add semicolons at the end of statements
end_of_line = lf
11 changes: 11 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"printWidth": 80,
"tabWidth": 2,
"useTabs": false,
"singleQuote": false,
"trailingComma": "none",
"bracketSpacing": true,
"arrowParens": "avoid",
"proseWrap": "never",
"semi": true
}
Loading