aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLMBishop <13875753+LMBishop@users.noreply.github.com>2021-11-22 14:34:26 +0000
committerLMBishop <13875753+LMBishop@users.noreply.github.com>2021-11-22 14:34:26 +0000
commit87b1cd4936c6ad671c0cf6efc10f856454ac65f3 (patch)
treec2e0670c3de6e89bc91f9bad3b8a67516bec1374
parente036148e9df9c5e032cb26c42614d65a6e4b3695 (diff)
Enforce .editorconfig
-rw-r--r--.editorconfig23
-rw-r--r--.eslintrc.yml2
-rw-r--r--README.md2
-rw-r--r--app/static/css/globalstyles.css2
-rw-r--r--app/views/index.ejs2
-rw-r--r--app/views/page.ejs2
-rw-r--r--app/views/partials/header.ejs2
-rw-r--r--app/views/partials/navbar.ejs2
-rw-r--r--app/views/purge.ejs2
-rw-r--r--app/views/rebuild.ejs2
-rw-r--r--pages/contact.wiki2
-rw-r--r--pages/index.wiki2
-rw-r--r--pages/kpnx.wiki2
-rw-r--r--pages/templates/blog.wiki2
-rw-r--r--pages/test.wiki2
15 files changed, 37 insertions, 14 deletions
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 @@
</div>
</div>
</body>
-</html> \ No newline at end of file
+</html>
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 @@
</div>
</div>
</body>
-</html> \ No newline at end of file
+</html>
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 @@
███████ ███████ ██████ ██ ████ ██ ██ ██ ██ ██████ ██████ ██████ ██ ███████ ██ ██ ██████ ██
-</pre> \ No newline at end of file
+</pre>
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 @@
<div id="navbar">
<%- navbar %>
-</div> \ No newline at end of file
+</div>
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 @@
</div>
</div>
</body>
-</html> \ No newline at end of file
+</html>
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 @@
</div>
</div>
</body>
-</html> \ No newline at end of file
+</html>
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 ==
<pre>
-</pre> \ No newline at end of file
+</pre>
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 @@
<span>Blog post &bull; {{{date}}}</span><br>
-<hr> \ No newline at end of file
+<hr>
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