mirror of
https://github.com/PR0M3TH3AN/TORCH.git
synced 2026-10-27 07:51:52 +00:00
Implemented the missing scripts required by the audit-agent: - `scripts/check-file-size.mjs`: Checks for files exceeding 300 lines. - `scripts/check-innerhtml.mjs`: Checks for `innerHTML` usage. - Added `npm run lint` script using ESLint with a basic configuration. - Added `eslint` and related dependencies. This unblocks the audit-agent daily schedule. Co-authored-by: PR0M3TH3AN <[email protected]>
24 lines
435 B
JavaScript
24 lines
435 B
JavaScript
import js from "@eslint/js";
|
|
import globals from "globals";
|
|
|
|
export default [
|
|
{
|
|
ignores: ["dist/", "artifacts/", "test_logs/", "coverage/"],
|
|
},
|
|
js.configs.recommended,
|
|
{
|
|
languageOptions: {
|
|
globals: {
|
|
...globals.browser,
|
|
...globals.node,
|
|
},
|
|
ecmaVersion: "latest",
|
|
sourceType: "module",
|
|
},
|
|
rules: {
|
|
"no-unused-vars": "warn",
|
|
"no-console": "off",
|
|
},
|
|
},
|
|
];
|