webserver-framework-frontend/.eslintrc.json
Navy.gif 149166eb1c
Permission barriers
Improvements to flag list view
WIP popup for creating flags
Linter pass
2023-07-17 00:55:41 +03:00

81 lines
1.9 KiB
JSON

{
"env": {
"node": true,
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended"
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": [
"react"
],
"rules": {
"nonblock-statement-body-position": [
"warn",
"below"
],
"brace-style": [
"warn",
"allman"
],
"indent": "warn",
"no-warning-comments": [1, {
"terms": ["todo", "fixme"]
}],
"prefer-arrow-callback": "warn",
"prefer-const": "warn",
"prefer-destructuring": "warn",
"prefer-object-spread": "error",
"prefer-promise-reject-errors": "warn",
"prefer-regex-literals": "warn",
"prefer-rest-params": "warn",
"prefer-spread": "warn",
"semi": "error",
"semi-spacing": "warn",
"semi-style": [
"warn",
"last"
],
"object-curly-spacing": [
"warn",
"always"
],
"array-bracket-newline": [
"warn",
"consistent"
],
"array-bracket-spacing": [
"warn",
"always",
{
"objectsInArrays": false,
"arraysInArrays": false
}
],
"comma-spacing": [
"warn",
{
"after": true,
"before": false
}
],
"comma-style": "warn",
"no-console": "warn",
"quotes": ["error" , "single"],
"guard-for-in": "warn",
"yoda": [
"warn",
"never"
]
}
}