From 5167c2dc143547b8eb99b253e1e17d4622112ddd Mon Sep 17 00:00:00 2001 From: Extarys Date: Thu, 21 Jan 2021 18:16:22 -0500 Subject: [PATCH] add frio formatting file --- .editorconfig | 4 ++++ view/theme/frio/.eslintrc.json | 8 ++++++++ view/theme/frio/.prettierrc | 12 ++++++++++++ 3 files changed, 24 insertions(+) create mode 100644 view/theme/frio/.eslintrc.json create mode 100644 view/theme/frio/.prettierrc diff --git a/.editorconfig b/.editorconfig index 7692ac78b5..af67d04a3b 100644 --- a/.editorconfig +++ b/.editorconfig @@ -8,3 +8,7 @@ charset = utf-8 end_of_line = lf trim_trailing_whitespaces = true indent_style = tab +quote_type = single + +[*.js] +quote_type = double \ No newline at end of file diff --git a/view/theme/frio/.eslintrc.json b/view/theme/frio/.eslintrc.json new file mode 100644 index 0000000000..54b698fca1 --- /dev/null +++ b/view/theme/frio/.eslintrc.json @@ -0,0 +1,8 @@ +{ + "rules": { + "no-unused-vars": ["warn", { "args": "none", "argsIgnorePattern": "req|res|next|val" }], + "quotes": ["error", "double"], + "indent": ["error", "tab"], + "prettier/prettier": ["error"] + } +} diff --git a/view/theme/frio/.prettierrc b/view/theme/frio/.prettierrc new file mode 100644 index 0000000000..123ef3dc17 --- /dev/null +++ b/view/theme/frio/.prettierrc @@ -0,0 +1,12 @@ +{ + "printWidth": 120, + "tabWidth": 4, + "useTabs": true, + "semi": true, + "singleQuote": false, + "quoteProps": "as-needed", + "trailingComma": "all", + "bracketSpacing": true, + "arrowParens": "always", + "endOfLine": "lf" +}