mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-26 19:06:11 +01:00
33 lines
858 B
Plaintext
33 lines
858 B
Plaintext
{
|
|
"env": {
|
|
"browser": true,
|
|
"es2021": true
|
|
},
|
|
"extends": ["eslint:recommended", "preact", "prettier"],
|
|
"parser": "@typescript-eslint/parser",
|
|
"parserOptions": {
|
|
"ecmaFeatures": {
|
|
"jsx": true
|
|
},
|
|
"ecmaVersion": 12,
|
|
"sourceType": "module"
|
|
},
|
|
"rules": {
|
|
"indent": ["error", 2, { "SwitchCase": 1 }],
|
|
"comma-dangle": [
|
|
"error",
|
|
{ "objects": "always-multiline", "arrays": "always-multiline", "imports": "always-multiline" }
|
|
],
|
|
"no-unused-vars": ["error", { "argsIgnorePattern": "^_", "varsIgnorePattern": "^_" }],
|
|
"no-console": "error"
|
|
},
|
|
"overrides": [
|
|
{
|
|
"files": ["**/*.{ts,tsx}"],
|
|
"parser": "@typescript-eslint/parser",
|
|
"plugins": ["@typescript-eslint"],
|
|
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier"]
|
|
}
|
|
]
|
|
}
|