Add eslint as linter and add linter workflow
Some checks failed
CI / CI (push) Successful in 16s
Lint Codebase / eslint (push) Failing after 12s

This commit is contained in:
SileNce5k 2024-11-05 05:26:48 +01:00
parent 85821f5fa3
commit 7bdc33b321
Signed by: SileNce
GPG key ID: B0A142BB4291B204
5 changed files with 835 additions and 5 deletions

10
eslint.config.mjs Normal file
View file

@ -0,0 +1,10 @@
import globals from "globals";
import pluginJs from "@eslint/js";
/** @type {import('eslint').Linter.Config[]} */
export default [
{files: ["**/*.js"], languageOptions: {sourceType: "commonjs"}},
{languageOptions: { globals: globals.node }},
pluginJs.configs.recommended,
];