Skip to content

Commit a91aa27

Browse files
committed
add max warnig lint
1 parent 2155c74 commit a91aa27

File tree

3 files changed

+116
-2
lines changed

3 files changed

+116
-2
lines changed

eslint.config.js

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,18 @@ import js from "@eslint/js";
22
import globals from "globals";
33
import tseslint from "typescript-eslint";
44
import { defineConfig } from "eslint/config";
5+
import pluginSecurity from "eslint-plugin-security";
56

67
export default defineConfig([
7-
{ files: ["**/*.{js,mjs,cjs,ts,mts,cts}"], plugins: { js }, extends: ["js/recommended"], languageOptions: { globals: globals.browser } },
8+
{
9+
files: ["**/*.{js,mjs,cjs,ts,mts,cts}"],
10+
plugins: { js },
11+
extends: ["js/recommended"],
12+
},
13+
{
14+
files: ["**/*.{js,mjs,cjs,ts,mts,cts}"],
15+
languageOptions: { globals: globals.node },
16+
},
817
tseslint.configs.recommended,
9-
]);
18+
pluginSecurity.configs.recommended,
19+
]);

package-lock.json

Lines changed: 102 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,13 @@
1818
"devDependencies": {
1919
"@eslint/js": "^9.36.0",
2020
"@types/cors": "^2.8.17",
21+
"@types/eslint-plugin-security": "^3.0.0",
2122
"@types/express": "^5.0.0",
2223
"@types/node": "^22.9.0",
2324
"@vitest/coverage-v8": "^3.2.4",
2425
"drizzle-kit": "^0.28.1",
2526
"eslint": "^9.36.0",
27+
"eslint-plugin-security": "^3.0.1",
2628
"globals": "^15.15.0",
2729
"prettier": "3.6.2",
2830
"tsx": "^4.19.2",

0 commit comments

Comments
 (0)