express/eslint.config.mjs

18 lines
527 B
JavaScript
Raw Normal View History

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