From 87b1cd4936c6ad671c0cf6efc10f856454ac65f3 Mon Sep 17 00:00:00 2001 From: LMBishop <13875753+LMBishop@users.noreply.github.com> Date: Mon, 22 Nov 2021 14:34:26 +0000 Subject: Enforce .editorconfig --- .editorconfig | 23 +++++++++++++++++++++++ .eslintrc.yml | 2 +- README.md | 2 +- app/static/css/globalstyles.css | 2 +- app/views/index.ejs | 2 +- app/views/page.ejs | 2 +- app/views/partials/header.ejs | 2 +- app/views/partials/navbar.ejs | 2 +- app/views/purge.ejs | 2 +- app/views/rebuild.ejs | 2 +- pages/contact.wiki | 2 +- pages/index.wiki | 2 +- pages/kpnx.wiki | 2 +- pages/templates/blog.wiki | 2 +- pages/test.wiki | 2 +- 15 files changed, 37 insertions(+), 14 deletions(-) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..581917f --- /dev/null +++ b/.editorconfig @@ -0,0 +1,23 @@ +# http://editorconfig.org +root = true + +[*] +end_of_line = lf +insert_final_newline = true + +[app/**.*js] +charset = utf-8 +indent_style = space +indent_size = 4 + +[*.yml] +indent_style = space +indent_size = 2 + +[node_modules/**] +charset = unset +end_of_line = unset +insert_final_newline = unset +trim_trailing_whitespace = unset +indent_style = unset +indent_size = unset diff --git a/.eslintrc.yml b/.eslintrc.yml index a1f38b0..495c107 100644 --- a/.eslintrc.yml +++ b/.eslintrc.yml @@ -17,4 +17,4 @@ rules: - single semi: - error - - always \ No newline at end of file + - always diff --git a/README.md b/README.md index b008f1c..2d787f3 100644 --- a/README.md +++ b/README.md @@ -4,4 +4,4 @@ This repository hosts the source code which (eventually) powers my website: http The web app runs on NodeJS using [Express](https://www.npmjs.com/package/express) and renders web pages with [ejs](https://www.npmjs.com/package/ejs). It parses content pages written in a markup language (currently [Wikitext](https://en.wikipedia.org/wiki/Help:Wikitext)) from the `pages/` directory and renders them as HTML. ## Building -Instructions to build and deploy the web app will be written here whenever it is finished. \ No newline at end of file +Instructions to build and deploy the web app will be written here whenever it is finished. diff --git a/app/static/css/globalstyles.css b/app/static/css/globalstyles.css index 599c836..774c6ca 100644 --- a/app/static/css/globalstyles.css +++ b/app/static/css/globalstyles.css @@ -97,4 +97,4 @@ a { .box { border: solid 1px #fff; padding: 10px; -} \ No newline at end of file +} diff --git a/app/views/index.ejs b/app/views/index.ejs index ca674f0..f47b830 100644 --- a/app/views/index.ejs +++ b/app/views/index.ejs @@ -15,4 +15,4 @@ - \ No newline at end of file + diff --git a/app/views/page.ejs b/app/views/page.ejs index 4422157..41ee1e2 100644 --- a/app/views/page.ejs +++ b/app/views/page.ejs @@ -17,4 +17,4 @@ - \ No newline at end of file + diff --git a/app/views/partials/header.ejs b/app/views/partials/header.ejs index 6582e36..6820afa 100644 --- a/app/views/partials/header.ejs +++ b/app/views/partials/header.ejs @@ -8,4 +8,4 @@ ███████ ███████ ██████ ██ ████ ██ ██ ██ ██ ██████ ██████ ██████ ██ ███████ ██ ██ ██████ ██ - \ No newline at end of file + diff --git a/app/views/partials/navbar.ejs b/app/views/partials/navbar.ejs index 2664d48..ff0c84d 100644 --- a/app/views/partials/navbar.ejs +++ b/app/views/partials/navbar.ejs @@ -1,3 +1,3 @@ \ No newline at end of file + diff --git a/app/views/purge.ejs b/app/views/purge.ejs index 54fc49b..04bae61 100644 --- a/app/views/purge.ejs +++ b/app/views/purge.ejs @@ -21,4 +21,4 @@ - \ No newline at end of file + diff --git a/app/views/rebuild.ejs b/app/views/rebuild.ejs index 62076cf..9f9cfaa 100644 --- a/app/views/rebuild.ejs +++ b/app/views/rebuild.ejs @@ -20,4 +20,4 @@ - \ No newline at end of file + diff --git a/pages/contact.wiki b/pages/contact.wiki index 7f5f652..25d3d6b 100644 --- a/pages/contact.wiki +++ b/pages/contact.wiki @@ -11,4 +11,4 @@ You can contact me on: == PGP signature ==
 
-
\ No newline at end of file + diff --git a/pages/index.wiki b/pages/index.wiki index b162672..8286e6f 100644 --- a/pages/index.wiki +++ b/pages/index.wiki @@ -25,4 +25,4 @@ https://leonardobishop.com/~nextbus/ This new website is built in NodeJS and these pages are witten in wikitext. -The source code for this website is available on [https://github.com/LMBishop/website GitHub], for everyone to rip apart and laugh at how poorly written it is. (If you do have suggestions on how to improve it though, please do let me know!) \ No newline at end of file +The source code for this website is available on [https://github.com/LMBishop/website GitHub], for everyone to rip apart and laugh at how poorly written it is. (If you do have suggestions on how to improve it though, please do let me know!) diff --git a/pages/kpnx.wiki b/pages/kpnx.wiki index 90d274c..31154b9 100644 --- a/pages/kpnx.wiki +++ b/pages/kpnx.wiki @@ -95,4 +95,4 @@ The station's digital signal is [[Multiplex (TV)|multiplexed]]: |- style="background-color:#cee0f2" ! scope="row" | [[KASW|61.2]] | Grit || [[Grit (TV network)|Grit]] (KASW) -|} \ No newline at end of file +|} diff --git a/pages/templates/blog.wiki b/pages/templates/blog.wiki index fe2ea6d..92b60bd 100644 --- a/pages/templates/blog.wiki +++ b/pages/templates/blog.wiki @@ -1,2 +1,2 @@ Blog post • {{{date}}}
-
\ No newline at end of file +
diff --git a/pages/test.wiki b/pages/test.wiki index 6f4ab97..1e19d18 100644 --- a/pages/test.wiki +++ b/pages/test.wiki @@ -7,4 +7,4 @@ This is a test page * somewhere else == Heading == -Content \ No newline at end of file +Content -- cgit v1.2.3-70-g09d2