Added eslint.

Removed old linter.

Signed-off-by: Armored Dragon <publicmail@armoreddragon.com>
pull/6/head^2
Armored Dragon 2024-07-08 13:17:53 -05:00
parent 0dd6a7fa00
commit f4bf5c37d9
Signed by: ArmoredDragon
GPG Key ID: C7207ACC3382AD8B
3 changed files with 1008 additions and 3 deletions

4
eslint.config.mjs Normal file
View File

@ -0,0 +1,4 @@
import globals from "globals";
import pluginJs from "@eslint/js";
export default [{ files: ["**/*.js"], languageOptions: { sourceType: "commonjs" } }, { languageOptions: { globals: globals.browser } }, { rules: { "no-unused-vars": "error", "no-undef": "error", indent: ["error", "tab", { tabWidth: 4 }] } }, pluginJs.configs.recommended];

1004
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -19,6 +19,9 @@
"author": "Armored Dragon", "author": "Armored Dragon",
"license": "GPL-3.0", "license": "GPL-3.0",
"devDependencies": { "devDependencies": {
"@eslint/js": "^9.6.0",
"eslint": "^9.6.0",
"globals": "^15.8.0",
"nodemon": "^3.0.1" "nodemon": "^3.0.1"
}, },
"dependencies": { "dependencies": {