mrmBot-Matrix/.eslintrc.json

61 lines
1.1 KiB
JSON

{
"env": {
"es6": true,
"node": true
},
"extends": ["eslint:recommended", "plugin:promise/recommended"],
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2019
},
"plugins": ["promise"],
"rules": {
"no-console": "off",
"indent": [
"error",
2,
{
"SwitchCase": 1
}
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"warn",
"double"
],
"semi": [
"warn",
"always"
],
"keyword-spacing": [
"error", {
"before": true,
"after": true
}
],
"space-before-blocks": [
"error", {
"functions": "always",
"keywords": "always",
"classes": "always"
}
],
"space-before-function-paren": [
"error", {
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}
],
"prefer-const": [
"error", {
"destructuring": "any",
"ignoreReadBeforeAssign": false
}
],
"prefer-template": "error"
}
}