Skip to content

Commit 6e48e3a

Browse files
authored
Merge pull request #2402 from rommapp/eslint-manual-runs
Manually run eslint and update rules
2 parents 165586a + 5f80d93 commit 6e48e3a

169 files changed

Lines changed: 1905 additions & 1663 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

backend/endpoints/responses/search.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from handler.metadata.sgdb_handler import SGDBResource
2+
13
from .base import BaseModel
24

35

@@ -19,4 +21,4 @@ class SearchRomSchema(BaseModel):
1921

2022
class SearchCoverSchema(BaseModel):
2123
name: str
22-
resources: list
24+
resources: list[SGDBResource]

frontend/eslint.config.js

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@ export default tseslint.config(
2222
"dist-ssr",
2323
"coverage",
2424
"*.local",
25-
"__generated__",
25+
"src/__generated__",
2626
"*.config.js",
27+
"src/plugins/*.d.ts",
2728
],
2829
languageOptions: {
2930
parserOptions: {
@@ -38,8 +39,18 @@ export default tseslint.config(
3839
},
3940
rules: {
4041
"vue/multi-word-component-names": "off",
41-
// Vuetify supports modifier syntax of { [x: `item.${string}`]: ... }
42+
"vue/max-attributes-per-line": "off",
4243
"vue/valid-v-slot": "off",
44+
"vue/no-use-v-if-with-v-for": "off",
45+
"vue/component-name-in-template-casing": [
46+
"error",
47+
"PascalCase",
48+
{
49+
registeredComponentsOnly: true,
50+
},
51+
],
52+
"vue/prop-name-casing": ["error", "camelCase"],
53+
"vue/attribute-hyphenation": ["error", "always"],
4354
},
4455
},
4556
);

0 commit comments

Comments
 (0)