69 lines
1.2 KiB
JSON
69 lines
1.2 KiB
JSON
{
|
|
"env": {
|
|
"es6": true,
|
|
"node": true
|
|
},
|
|
"extends": ["eslint:recommended"],
|
|
"parser": "@babel/eslint-parser",
|
|
"parserOptions": {
|
|
"sourceType": "module",
|
|
"ecmaVersion": 12,
|
|
"requireConfigFile": false,
|
|
"babelOptions": {
|
|
"plugins": [
|
|
"@babel/plugin-proposal-class-properties"
|
|
]
|
|
}
|
|
},
|
|
"plugins": ["@babel", "unicorn"],
|
|
"rules": {
|
|
"no-console": "off",
|
|
"indent": [
|
|
"error",
|
|
2,
|
|
{
|
|
"SwitchCase": 1
|
|
}
|
|
],
|
|
"linebreak-style": [
|
|
"error",
|
|
"unix"
|
|
],
|
|
"unicorn/prefer-module": "error",
|
|
"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"
|
|
}
|
|
}
|