41 lines
1 KiB
Text
41 lines
1 KiB
Text
|
{
|
||
|
"extends": ["plugin:@typescript-eslint/recommended", "prettier"],
|
||
|
"parser": "@typescript-eslint/parser",
|
||
|
"parserOptions": {},
|
||
|
"plugins": ["@typescript-eslint"],
|
||
|
"root": true,
|
||
|
"rules": {
|
||
|
"camelcase": "error",
|
||
|
"no-console": ["error", { "allow": ["warn", "error"]}],
|
||
|
"no-empty-function": "error",
|
||
|
"no-empty": "error",
|
||
|
"no-irregular-whitespace": "warn",
|
||
|
"no-unneeded-ternary": "warn",
|
||
|
"no-var": "warn",
|
||
|
"spaced-comment": "warn",
|
||
|
"no-lonely-if": "warn",
|
||
|
"space-before-blocks": ["warn", "always"],
|
||
|
"prefer-destructuring": [
|
||
|
"warn",
|
||
|
{
|
||
|
"AssignmentExpression": {
|
||
|
"array": false,
|
||
|
"object": false
|
||
|
},
|
||
|
"VariableDeclarator": {
|
||
|
"array": false,
|
||
|
"object": true
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"enforceForRenamedProperties": false
|
||
|
}
|
||
|
],
|
||
|
"prefer-template": "warn",
|
||
|
"prefer-spread": "warn",
|
||
|
"prefer-arrow-callback": "warn",
|
||
|
"arrow-spacing": "warn",
|
||
|
"arrow-parens": ["warn", "as-needed"]
|
||
|
}
|
||
|
}
|