express/eslint.config.mjs

19 lines
603 B
JavaScript
Raw Permalink Normal View History

2024-06-11 19:44:33 +00:00
import globals from "globals";
import pluginJs from "@eslint/js";
export default [
2024-06-11 19:56:53 +00:00
{ files: ["**/*.js"], languageOptions: { sourceType: "commonjs" } },
{ languageOptions: { globals: { ...globals.browser, ...globals.node } } },
pluginJs.configs.recommended,
{
rules: {
"prefer-const": "off",
"no-unused-vars": "warn",
"no-multi-spaces": "warn",
"no-case-declarations": "off",
"no-multiple-empty-lines": ["warn", { max: 1 }],
quotes: ["warn", "double", { allowTemplateLiterals: true }],
},
},
];