Skip to content

Commit

Permalink
Switched formatting settings to .editorconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
targendaz2 committed May 24, 2024
1 parent ac7cde6 commit 34445af
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 16 deletions.
16 changes: 16 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
root = true

[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.{js,ts}]
charset = utf-8
indent_style = space
indent_size = 4

[*.{config.mjs,config.ts,json,markdownlintrc,md,yml}]
charset = utf-8
indent_style = space
indent_size = 2
3 changes: 2 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"davidanson.vscode-markdownlint",
"esbenp.prettier-vscode",
"orta.vscode-jest",
"github.vscode-github-actions"
"github.vscode-github-actions",
"editorconfig.editorconfig"
]
}
20 changes: 5 additions & 15 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,12 @@
{
"[javascript]": {
"editor.tabSize": 4
},
"[json]": {
"editor.tabSize": 2
},
"[markdown]": {
"editor.tabSize": 2
},
"[typescript]": {
"editor.tabSize": 4
},
"[yaml]": {
"editor.tabSize": 2
},
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"eslint.experimental.useFlatConfig": true,
"explorer.fileNesting.enabled": true,
"explorer.fileNesting.expand": false,
"explorer.fileNesting.patterns": {
"package.json": ".eslint*, .markdown*, .prettierrc*, .yarnrc*, cspell*, eslint*, jest*, webpack*, yarn.lock"
},
"jest.outputConfig": "test-results-based",
"jest.runMode": "on-demand",
"markdownlint.config": {
Expand Down

0 comments on commit 34445af

Please sign in to comment.