module.exports = [
{
ignores: ["node_modules/"],
},
{
languageOptions: {
ecmaVersion: "latest",
sourceType: "module",
},
linterOptions: {
reportUnusedDisableDirectives: true,
},
rules: {
"indent": ["warn", "tab"],
"quotes": ["warn", "double"],
"semi": ["warn", "never"],
"implicit-arrow-linebreak": ["warn", "beside"],
"dot-notation": "warn",
"no-unused-vars": ["warn", { "args": "none", "caughtErrors": "none" }],
"no-unneeded-ternary": "warn",
"no-mixed-operators": "warn",
"nonblock-statement-body-position": ["warn", "beside"],
"spaced-comment": ["warn", "always"],
"no-multi-spaces": "warn",
"space-infix-ops": "warn",
"comma-spacing": "warn",
"key-spacing": "warn",
"space-in-parens": "warn",
"array-bracket-spacing": "warn",
"object-curly-spacing": ["warn", "always"],
"no-trailing-spaces": "warn",
"comma-style": "warn",
"no-array-constructor": "warn",
"prefer-template": "warn",
"template-curly-spacing": "warn",
"no-new-object": "warn",
"no-useless-concat": "warn",
"no-useless-return": "warn",
"no-useless-escape": "warn",
"no-useless-constructor": "warn",
"default-param-last": "warn",
"no-new-func": "warn",
"no-dupe-class-members": "warn",
"no-duplicate-imports": "warn",
"function-paren-newline": ["warn", "multiline"],
"prefer-arrow-callback": "warn",
"arrow-spacing": "warn",
"no-empty": ["warn", { "allowEmptyCatch": true }],
"no-multiple-empty-lines": ["warn", { "max": 1 }],
"no-redeclare": "off",
"no-control-regex": "off",
},
},
]