Skip to content

Commit ea5caf2

Browse files
committed
chore: updates and migrate eslint
1 parent c9a606b commit ea5caf2

File tree

5 files changed

+2981
-2509
lines changed

5 files changed

+2981
-2509
lines changed

.eslintignore

-1
This file was deleted.

.eslintrc.cjs

-29
This file was deleted.

eslint.config.mjs

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
import eslint from "@eslint/js";
2+
3+
export default [
4+
{
5+
files: ["**/*.js"],
6+
ignores: [
7+
"node_modules/**/*",
8+
"build/**/*",
9+
"dist/**/*",
10+
".output/**/*",
11+
"docs/**/*",
12+
],
13+
rules: {
14+
...eslint.configs.recommended.rules,
15+
"indent": ["error", 2, { "SwitchCase": 1 }],
16+
"linebreak-style": ["error", "windows"],
17+
"quotes": ["error", "double"],
18+
"semi": ["error", "always"],
19+
"camelcase": "off",
20+
"arrow-spacing": ["error", { "before": true, "after": true }],
21+
"no-console": ["error", {
22+
"allow": ["info", "warn"]
23+
}],
24+
"brace-style": ["error", "stroustrup", { "allowSingleLine": true }],
25+
"no-multi-spaces": "error",
26+
"space-before-blocks": "error",
27+
"no-trailing-spaces": "error",
28+
"no-undef": "off"
29+
}
30+
}
31+
];

package.json

+13-12
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,20 @@
2222
"vercel:dev": "(rm -rf docs || rd /s /q docs) && vercel dev",
2323
"test": "vitest run --reporter=verbose --coverage",
2424
"docs": "jsdoc -c jsdoc.conf.json -r",
25-
"lint": "eslint --ext .ts,.js --fix --ignore-path .gitignore ."
25+
"lint": "eslint --fix"
2626
},
2727
"devDependencies": {
28-
"@vitest/coverage-v8": "^1.2.2",
29-
"clean-jsdoc-theme": "^4.2.17",
30-
"dotenv": "^16.4.1",
31-
"eslint": "^8.56.0",
32-
"express": "^4.18.2",
28+
"@vitest/coverage-v8": "^1.6.0",
29+
"clean-jsdoc-theme": "^4.3.0",
30+
"dotenv": "^16.4.5",
31+
"eslint": "^9.5.0",
32+
"express": "^4.19.2",
3333
"hbs": "^4.2.0",
34-
"jsdoc": "^4.0.2",
35-
"ofetch": "^1.3.3",
36-
"supertest": "^6.3.4",
37-
"vercel": "^33.4.1",
38-
"vitest": "^1.2.2"
39-
}
34+
"jsdoc": "^4.0.3",
35+
"ofetch": "^1.3.4",
36+
"supertest": "^7.0.0",
37+
"vercel": "^34.2.7",
38+
"vitest": "^1.6.0"
39+
},
40+
"packageManager": "[email protected]"
4041
}

0 commit comments

Comments
 (0)