Website/.eslintrc.json

63 Zeilen
1.6 KiB
JSON

2023-12-23 15:36:22 +01:00
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:astro/recommended",
"plugin:svelte/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"overrides": [
{
"files": ["*.astro"],
"parser": "astro-eslint-parser",
"parserOptions": {
"sourceType": "module"
},
"rules": {
"astro/no-conflict-set-directives": "error",
"astro/no-unused-define-vars-in-style": "error"
}
}
],
"rules": {
"comma-spacing": ["error", { "before": false, "after": true }],
"no-multiple-empty-lines": ["error", { "max": 1, "maxEOF": 1 }],
"indent": [
"error",
4
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"double"
],
"semi": [
"error",
"always"
2024-02-11 11:16:23 +01:00
],
"no-console": "error",
"no-debugger": "error",
"no-alert": "error",
"no-undef": "error",
"no-var": "error",
"no-const-assign": "error",
"comma-dangle": ["error", "always-multiline"],
"no-unneeded-ternary": "error",
"multiline-ternary": ["error", "always-multiline"]
2023-12-23 15:36:22 +01:00
}
}