forum-django/.eslintrc.json

42 lines
863 B
JSON

{
"parser": "@typescript-eslint/parser",
"env": {
"browser": true
},
"extends": [
"standard-with-typescript",
"plugin:@typescript-eslint/recommended"
],
"plugins": [
"@typescript-eslint"
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"project": "./tsconfig.json"
},
"rules": {
"@typescript-eslint/strict-boolean-expressions": [
"error",
{
"allowString": true,
"allowNullableBoolean": true
}
],
"@typescript-eslint/space-before-function-paren": "off",
"@typescript-eslint/keyword-spacing": "off",
"max-len": [
"error",
{
"code": 79,
"ignoreComments": true
}
],
"@typescript-eslint/consistent-type-assertions": [
"error",
{
"assertionStyle": "angle-bracket"
}
]
}
}