Skip to content
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

14 changes: 0 additions & 14 deletions .eslintrc.yml

This file was deleted.

35 changes: 35 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import globals from "globals";

export default [{
ignores: ["**/coverage", "**/node_modules"],
}, {
languageOptions: {
globals: {
...globals.node,
},
},

rules: {
"eol-last": "error",
eqeqeq: ["error", "allow-null"],

indent: ["error", 2, {
MemberExpression: "off",
SwitchCase: 1,
}],

"no-trailing-spaces": "error",

"no-unused-vars": ["error", {
vars: "all",
args: "none",
caughtErrors: "none",
ignoreRestSiblings: true,
}],

"no-restricted-globals": ["error", {
name: "Buffer",
message: "Use `import { Buffer } from \"node:buffer\"` instead of the global Buffer.",
}],
},
}];
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"cookie-parser": "1.4.7",
"cookie-session": "2.1.1",
"ejs": "^3.1.10",
"eslint": "8.47.0",
"eslint": "9.39.1",
"express-session": "^1.18.1",
"hbs": "4.2.0",
"marked": "^15.0.3",
Expand Down