From 862fe9d2f2f7f950f1d40ccf4ff102a88c963fd0 Mon Sep 17 00:00:00 2001 From: Wolvan Date: Sat, 1 Jan 2022 04:06:13 +0100 Subject: [PATCH] Allow browser JS to be written for the frontend ESLint in this project is by default configured to lint NodeJS source code. The `./frontend` folder contains browser source code though, so a new `.eslintrc` sets that for the frontend folder. --- frontend/.eslintrc.json | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 frontend/.eslintrc.json diff --git a/frontend/.eslintrc.json b/frontend/.eslintrc.json new file mode 100644 index 0000000..676509a --- /dev/null +++ b/frontend/.eslintrc.json @@ -0,0 +1,8 @@ +{ + "env": { + "browser": true, + "commonjs": false, + "es6": true, + "node": false + } +}