From ce13a5c50ff0a701335f6243a1ecacae79f23e58 Mon Sep 17 00:00:00 2001 From: Christian Date: Tue, 9 Oct 2018 22:29:20 +0200 Subject: [PATCH 1/3] fix: add editorconfig and gitattributes file --- .editorconfig | 12 ++++++++++++ .gitattributes | 1 + 2 files changed, 13 insertions(+) create mode 100644 .editorconfig create mode 100644 .gitattributes diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..561cd5ef --- /dev/null +++ b/.editorconfig @@ -0,0 +1,12 @@ +root = true + +[*] +charset = utf-8 +end_of_line = lf +indent_style = space +indent_size = 2 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..6313b56c --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* text=auto eol=lf From 1a709e9bb9c2ec5072b8c28bd1e5193cf4cbcfc0 Mon Sep 17 00:00:00 2001 From: Christian Date: Tue, 9 Oct 2018 22:42:30 +0200 Subject: [PATCH 2/3] chore: add .vscode settings and extensions --- .gitignore | 1 - .vscode/extensions.json | 7 +++++++ .vscode/settings.json | 10 ++++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 .vscode/extensions.json create mode 100644 .vscode/settings.json diff --git a/.gitignore b/.gitignore index f70c5b39..5976261e 100644 --- a/.gitignore +++ b/.gitignore @@ -10,7 +10,6 @@ /false # workspace -.vscode /styleguide # misc diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 00000000..5d6cf1d2 --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,7 @@ +{ + "recommendations": [ + "eg2.tslint", + "EditorConfig.EditorConfig", + "esbenp.prettier-vscode" + ] +} diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 00000000..09687b8c --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,10 @@ +{ + // prettier + "prettier.tslintIntegration": true, + "prettier.requireConfig": true, + // tslint + "tslint.enable": true, + "tslint.configFile": "./tslint.json", + // typescript + "typescript.tsdk": "./node_modules/typescript/lib" +} From 2bfa8b74ad72a81612756fd5aebdb866d3eb8ac5 Mon Sep 17 00:00:00 2001 From: Christian Date: Tue, 9 Oct 2018 22:44:54 +0200 Subject: [PATCH 3/3] chore(readme): prettify readme --- src/components/Show/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Show/README.md b/src/components/Show/README.md index 88a2169c..ab6c21f3 100644 --- a/src/components/Show/README.md +++ b/src/components/Show/README.md @@ -15,7 +15,7 @@ const App = () => ( ``` Simple example with render.
-*Use this when you don't want your content evaluated unless an condition is true.* +_Use this when you don't want your content evaluated unless an condition is true._ ```jsx let obj = undefined;