mrmBot-Matrix/.eslintrc.json

70 lines
1.2 KiB
JSON
Raw Normal View History

2019-09-13 20:02:41 +00:00
{
"env": {
"es2020": true,
2019-09-13 20:02:41 +00:00
"node": true
},
"extends": ["eslint:recommended"],
"parser": "@babel/eslint-parser",
2019-09-13 20:02:41 +00:00
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 12,
"requireConfigFile": false,
"babelOptions": {
"plugins": [
"@babel/plugin-proposal-class-properties"
]
}
2019-09-13 20:02:41 +00:00
},
"plugins": ["@babel", "unicorn"],
2019-09-13 20:02:41 +00:00
"rules": {
"no-console": "off",
"indent": [
"error",
2,
{
"SwitchCase": 1
}
],
"linebreak-style": [
"error",
"unix"
],
"unicorn/prefer-module": "error",
2019-09-13 20:02:41 +00:00
"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"
}
}