diff options
author | Tor Andersson <tor@ccxvii.net> | 2025-04-30 10:45:27 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2025-04-30 17:50:37 +0200 |
commit | b22ca94f482ce9374c92d4fd58d83f9f174a5cb9 (patch) | |
tree | 4f5b14a9d2696d159e33bb34f0802ebe98df83b0 | |
parent | 48e39e44dbe267f8945e9d597e61fd8aa3dfb376 (diff) | |
download | server-b22ca94f482ce9374c92d4fd58d83f9f174a5cb9.tar.gz |
Update eslint version.
-rw-r--r-- | eslint.config.js | 10 | ||||
-rw-r--r-- | package.json | 3 |
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" } } |