diff --git a/.editorconfig b/.editorconfig index ffb7278020..8780ab7d12 100644 --- a/.editorconfig +++ b/.editorconfig @@ -2,19 +2,10 @@ root = true [*] indent_style = tab -indent_size = 2 end_of_line = lf -insert_final_newline = false +insert_final_newline = true trim_trailing_whitespace = true charset = utf-8 -[*.js] -insert_final_newline = true -indent_style = tab - -[*.json] -indent_style = tab - -[*.css] -insert_final_newline = true -indent_style = tab \ No newline at end of file +[*.yml] +indent_style = space diff --git a/.prettierrc.json b/.prettierrc.json new file mode 100644 index 0000000000..e20202190f --- /dev/null +++ b/.prettierrc.json @@ -0,0 +1,8 @@ +{ + "useTabs": true, + "singleQuote": false, + "semi": true, + "endOfLine": "lf", + "arrowParens": "always", + "printWidth": 100 +} \ No newline at end of file diff --git a/package.json b/package.json index fa04e72957..fc32f88ae9 100644 --- a/package.json +++ b/package.json @@ -71,7 +71,7 @@ "node-fetch": "^2.6.8", "node-retrieve-globals": "^2.0.6", "pagefind": "^1.0.3", - "prettier": "^2.8.4", + "prettier": "^3.1.1", "semver": "^7.5.4", "short-hash": "^1.0.0", "slugify": "^1.6.5",