18 lines
527 B
JavaScript
18 lines
527 B
JavaScript
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"
|
|
}
|
|
}
|
|
]; |