- Add .editorconfig, .eslintrc.json, .prettierrc, .prettierignore, .dockerignore, .gitignore - Add Makefile with lint, fmt, fmt-check, secret-scan, test (skip) targets - Add package.json with eslint@^8.56.0, eslint-plugin-security, prettier - Add tools/secret-scan.sh - Fix unused variable (fs -> _fs) - Auto-format with prettier - make check passes clean (0 errors, 11 warnings)
19 lines
460 B
JSON
19 lines
460 B
JSON
{
|
|
"env": {
|
|
"node": true,
|
|
"es2020": true
|
|
},
|
|
"parserOptions": {
|
|
"ecmaVersion": 2020
|
|
},
|
|
"plugins": ["security"],
|
|
"extends": ["eslint:recommended"],
|
|
"rules": {
|
|
"no-unused-vars": ["error", { "argsIgnorePattern": "^_", "varsIgnorePattern": "^_" }],
|
|
"no-console": "warn",
|
|
"security/detect-object-injection": "warn",
|
|
"security/detect-non-literal-fs-filename": "warn",
|
|
"security/detect-eval-with-expression": "error"
|
|
}
|
|
}
|