1
0
Fork 0
mirror of https://codeberg.org/beerbrawl/beerbrawl.git synced 2024-09-22 21:20:52 +02:00
beerbrawl/frontend/.eslintrc.json
Christoph Heiss ccde24d598
feat(#24): frontend: add eslint-plugin-unused-imports to eslint
Signed-off-by: Christoph Heiss <e11907069@student.tuwien.ac.at>
2024-06-08 21:34:12 +02:00

42 lines
1.3 KiB
JSON

{
"root": true,
"ignorePatterns": ["projects/**/*", "dist/**/*", ".angular/**/*", "openapi-generated/**/*"],
"plugins": ["@typescript-eslint", "eslint-plugin-unused-imports"],
"extends": ["prettier"],
"overrides": [
{
"files": ["*.ts"],
"parserOptions": {
"project": ["tsconfig.json"],
"createDefaultProgram": true
},
"extends": ["plugin:@angular-eslint/template/process-inline-templates"],
"rules": {
"@typescript-eslint/dot-notation": "off",
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/explicit-member-accessibility": [
"off",
{
"accessibility": "explicit"
}
],
"@typescript-eslint/no-unused-vars": "off",
"brace-style": ["error", "1tbs"],
"id-blacklist": "off",
"id-match": "off",
"no-underscore-dangle": "off",
"jsdoc/newline-after-description": "off",
"unused-imports/no-unused-imports": "error"
}
},
{
"parser": "@angular-eslint/template-parser",
"files": ["*.html"],
"extends": ["plugin:@angular-eslint/template/recommended"],
"rules": {
"@angular-eslint/template/prefer-control-flow": "error"
}
}
]
}