mirror of
https://github.com/LBRYFoundation/curate.git
synced 2025-08-23 17:37:25 +00:00
79 lines
No EOL
1.3 KiB
JSON
79 lines
No EOL
1.3 KiB
JSON
{
|
|
"env": {
|
|
"commonjs": true,
|
|
"es6": true,
|
|
"node": true
|
|
},
|
|
"extends": "eslint:recommended",
|
|
"globals": {},
|
|
"parserOptions": {
|
|
"ecmaVersion": 2020,
|
|
"sourceType": "module"
|
|
},
|
|
"rules": {
|
|
"array-bracket-spacing": [
|
|
"warn",
|
|
"never"
|
|
],
|
|
"computed-property-spacing": "warn",
|
|
"indent": [
|
|
"warn",
|
|
2
|
|
],
|
|
"keyword-spacing": [
|
|
"warn",
|
|
{
|
|
"before": true,
|
|
"after": true
|
|
}
|
|
],
|
|
"max-len": [
|
|
"warn",
|
|
{
|
|
"code": 110,
|
|
"ignoreComments": true,
|
|
"ignoreUrls": true
|
|
}
|
|
],
|
|
"no-cond-assign": [
|
|
2,
|
|
"except-parens"
|
|
],
|
|
"no-use-before-define": [
|
|
2,
|
|
{
|
|
"functions": false,
|
|
"classes": false,
|
|
"variables": false
|
|
}
|
|
],
|
|
"new-cap": 0,
|
|
"no-caller": 2,
|
|
"no-undef": 2,
|
|
"no-unused-vars": 1,
|
|
"no-empty": [
|
|
"error",
|
|
{
|
|
"allowEmptyCatch": true
|
|
}
|
|
],
|
|
"no-console": "off",
|
|
"no-multi-spaces": "warn",
|
|
"prefer-const": [
|
|
"warn",
|
|
{
|
|
"destructuring": "all"
|
|
}
|
|
],
|
|
"quotes": [
|
|
"warn",
|
|
"single"
|
|
],
|
|
"semi": [
|
|
"warn",
|
|
"always"
|
|
],
|
|
"spaced-comment": "warn",
|
|
"space-infix-ops": "warn"
|
|
}
|
|
} |