Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
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
10 changes: 9 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
# Editor configuration, see http://editorconfig.org
root = true

[*]
charset = utf-8
insert_final_newline = true
end_of_line = lf
indent_style = space
indent_size = 4
indent_size = 2
max_line_length = 80
trim_trailing_whitespace = true

[*.md]
max_line_length = off
trim_trailing_whitespace = false
38 changes: 18 additions & 20 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,22 +1,20 @@
{
"phpVersion": "8.1",
"plugins": ["@prettier/plugin-php"],
"tabWidth": 4,
"bracketSameLine": true,
"printWidth": 80,
"singleQuote": false,
"overrides": [
{
"files": ["*.js"],
"options": {
"singleQuote": true
}
},
{
"files": ["*.md", "package.json", "package-lock.json"],
"options": {
"tabWidth": 2
}
}
]
"phpVersion": "8.1",
"plugins": ["@prettier/plugin-php"],
"bracketSameLine": false,
"bracketSpacing": true,
"printWidth": 80,
"singleQuote": false,
"semi": true,
"tabWidth": 2,
"useTabs": false,
"trailingComma": "es5",
"overrides": [
{
"files": ["*.js"],
"options": {
"singleQuote": true
}
}
]
}
5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
{
}
"eslint.validate": ["json"],
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does this line do? Is it saying to only validate the json files? Because we'd want to validate more than just json.

"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
Comment on lines +3 to +4
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens when a developer tries to save a file and they don't have the prettier extension installed?

}