Lint all the things
This commit is contained in:
@@ -1,10 +1,14 @@
|
||||
import globals from "globals";
|
||||
import pluginJs from "@eslint/js";
|
||||
|
||||
|
||||
/** @type {import('eslint').Linter.Config[]} */
|
||||
/** @type {import("eslint").Linter.Config[]} */
|
||||
export default [
|
||||
{files: ["**/*.js"], languageOptions: {sourceType: "commonjs"}},
|
||||
{languageOptions: { globals: globals.node }},
|
||||
pluginJs.configs.recommended,
|
||||
{
|
||||
ignores: ["client/**", "_reference/**", "firebase/**", "node_modules/**", "dist/**", "build/**", "dev-dist/**"]
|
||||
},
|
||||
{ files: ["**/*.js"], languageOptions: { sourceType: "commonjs" } },
|
||||
{ files: ["**/*.test.js"], languageOptions: { sourceType: "module" } },
|
||||
|
||||
{ languageOptions: { globals: globals.node } },
|
||||
pluginJs.configs.recommended
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user