diff options
-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" } } |