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 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" +} 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;