mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-30 19:09:13 +01:00
58 lines
1.2 KiB
JavaScript
58 lines
1.2 KiB
JavaScript
|
module.exports = {
|
||
|
root: true,
|
||
|
env: { browser: true, es2021: true, "vitest-globals/env": true },
|
||
|
extends: [
|
||
|
"eslint:recommended",
|
||
|
"plugin:@typescript-eslint/recommended",
|
||
|
"plugin:react-hooks/recommended",
|
||
|
"plugin:prettier",
|
||
|
],
|
||
|
ignorePatterns: ["dist", ".eslintrc.cjs"],
|
||
|
parser: "@typescript-eslint/parser",
|
||
|
parserOptions: {
|
||
|
ecmaFeatures: {
|
||
|
jsx: true,
|
||
|
},
|
||
|
ecmaVersion: "latest",
|
||
|
sourceType: "module",
|
||
|
},
|
||
|
settings: {
|
||
|
jest: {
|
||
|
version: 27,
|
||
|
},
|
||
|
},
|
||
|
ignorePatterns: ["*.d.ts"],
|
||
|
plugins: ["react-refresh"],
|
||
|
rules: {
|
||
|
"react-refresh/only-export-components": [
|
||
|
"warn",
|
||
|
{ allowConstantExport: true },
|
||
|
],
|
||
|
"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",
|
||
|
],
|
||
|
},
|
||
|
],
|
||
|
};
|