2022-03-06 05:16:31 +01:00
|
|
|
{
|
|
|
|
"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" }],
|
2022-03-11 14:43:38 +01:00
|
|
|
"no-unused-vars": ["error", { "argsIgnorePattern": "^_", "varsIgnorePattern": "^_" }],
|
2022-03-11 14:32:36 +01:00
|
|
|
"no-console": "error"
|
2022-03-06 05:16:31 +01:00
|
|
|
},
|
|
|
|
"overrides": [
|
|
|
|
{
|
|
|
|
"files": ["**/*.{ts,tsx}"],
|
|
|
|
"parser": "@typescript-eslint/parser",
|
|
|
|
"plugins": ["@typescript-eslint"],
|
|
|
|
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier"]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|