summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2025-04-30 10:45:27 +0200
committerTor Andersson <tor@ccxvii.net>2025-04-30 17:50:37 +0200
commitb22ca94f482ce9374c92d4fd58d83f9f174a5cb9 (patch)
tree4f5b14a9d2696d159e33bb34f0802ebe98df83b0
parent48e39e44dbe267f8945e9d597e61fd8aa3dfb376 (diff)
downloadserver-b22ca94f482ce9374c92d4fd58d83f9f174a5cb9.tar.gz
Update eslint version.
-rw-r--r--eslint.config.js10
-rw-r--r--package.json3
2 files changed, 13 insertions, 0 deletions
diff --git a/eslint.config.js b/eslint.config.js
new file mode 100644
index 0000000..dd249a7
--- /dev/null
+++ b/eslint.config.js
@@ -0,0 +1,10 @@
+module.exports = [
+ {
+ rules: {
+ "no-constant-binary-expression": "error",
+ indent: [ "warn", "tab", { SwitchCase: 0 } ],
+ semi: [ "error", "never" ],
+ "no-unused-vars": [ "error", { vars: "all", args: "all", argsIgnorePattern: "^_" } ],
+ },
+ },
+]
diff --git a/package.json b/package.json
index cd8ba48..a6282ba 100644
--- a/package.json
+++ b/package.json
@@ -13,5 +13,8 @@
"pug": "^3.0.3",
"utf-8-validate": "^6.0.5",
"ws": "^8.18.1"
+ },
+ "devDependencies": {
+ "eslint": "^9.25.1"
}
}