« get me outta code hell

use ESM module syntax & update tui-lib - 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 13:31:58 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-05-13 13:34:21 -0300
commit43f1a1dd1b44065663a797603012394c52a9baea (patch)
tree3df4c15a1249d68541a208827e20e436ca30295a /.eslintrc
parente8a55f10dd9749ad240b165e318db0a1d2f00a9a (diff)
use ESM module syntax & update tui-lib
Exciting update! This doesn't make any substantial changes
exactly but does update the most quickly-archaic parts of
older Node code.
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": "^"
+    }]
+  }
+}