« get me outta code hell

Merge branch 'main' into socket-mtui - mtui - Music Text User Interface - user-friendly command line music player
about summary refs log tree commit diff
path: root/.eslintrc
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-05-13 21:54:52 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-05-13 21:54:52 -0300
commit4ea5e57d2b6c12f42ff21c4b43056021553f07a0 (patch)
tree175c5c662639496fc859fa9a4852c363a6bab11d /.eslintrc
parent84c49e453336d6105655edd08e93bab071c0fc3b (diff)
parenta36e372ba88b59e08fa938f76b261fdc2797bef2 (diff)
Merge branch 'main' into socket-mtui
And also get most of it working wow.
Diffstat (limited to '.eslintrc')
-rw-r--r--.eslintrc24
1 files changed, 24 insertions, 0 deletions
diff --git a/.eslintrc b/.eslintrc
new file mode 100644
index 0000000..f742bb8
--- /dev/null
+++ b/.eslintrc
@@ -0,0 +1,24 @@
+{
+  "env": {
+    "es2021": true,
+    "node": true
+  },
+  "extends": "eslint:recommended",
+  "parserOptions": {
+    "ecmaVersion": "latest",
+    "sourceType": "module"
+  },
+  "rules": {
+    "indent": ["off"],
+    "no-constant-condition": ["error", {
+      "checkLoops": false
+    }],
+    "no-empty": ["error", {
+      "allowEmptyCatch": true
+    }],
+    "no-unused-vars": ["error", {
+      "argsIgnorePattern": "^_",
+      "destructuredArrayIgnorePattern": "^"
+    }]
+  }
+}