diff --git a/frontend/eslint.config.mjs b/frontend/eslint.config.mjs index 96de58a..ceba2ee 100644 --- a/frontend/eslint.config.mjs +++ b/frontend/eslint.config.mjs @@ -2,51 +2,54 @@ import eslint from "@eslint/js"; import tseslint from "typescript-eslint"; import unusedImports from "eslint-plugin-unused-imports"; -export default tseslint.config({ - plugins: { - "unused-imports": unusedImports - }, - extends: [eslint.configs.recommended, tseslint.configs.all], - ignores: [ - "**/types.ts", - "**/*.test.ts", - "**/dist/**/*", - "**/*.mjs", - "**/*.js" - ], - rules: { - "no-unused-vars": "off", - "@typescript-eslint/no-unused-vars": "off", - "@typescript-eslint/no-floating-promises": "error", - "@typescript-eslint/parameter-properties": "off", - "@typescript-eslint/require-await": "off", - "@typescript-eslint/class-methods-use-this": "off", - "@typescript-eslint/consistent-return": "off", - "@typescript-eslint/no-unsafe-argument": "off", - "@typescript-eslint/max-params": [ - "error", - { - max: 5 - } - ], - "unused-imports/no-unused-imports": "error", - "@typescript-eslint/no-magic-numbers": "off", - "@typescript-eslint/prefer-readonly-parameter-types": "off", - "@typescript-eslint/naming-convention": "off", - "unused-imports/no-unused-vars": [ - "warn", - { - vars: "all", - varsIgnorePattern: "^_", - args: "after-used", - argsIgnorePattern: "^_" - } +export default [ + { + ignores: [ + "sync-client/src/services/types.ts", + "**/dist/", + "**/*.mjs", + "**/*.js" ] }, - languageOptions: { - parserOptions: { - projectService: true, - tsconfigRootDir: import.meta.dirname + ...tseslint.config({ + plugins: { + "unused-imports": unusedImports + }, + extends: [eslint.configs.recommended, tseslint.configs.all], + rules: { + "no-unused-vars": "off", + "@typescript-eslint/restrict-template-expressions": "off", + "@typescript-eslint/no-unused-vars": "off", + "@typescript-eslint/no-floating-promises": "error", + "@typescript-eslint/parameter-properties": "off", + "@typescript-eslint/require-await": "off", + "@typescript-eslint/class-methods-use-this": "off", + "@typescript-eslint/consistent-return": "off", + "@typescript-eslint/no-unsafe-argument": "off", + "@typescript-eslint/max-params": [ + "error", + { + max: 6 + } + ], + "@typescript-eslint/no-magic-numbers": "off", + "@typescript-eslint/prefer-readonly-parameter-types": "off", + "@typescript-eslint/naming-convention": "off", + "unused-imports/no-unused-vars": [ + "warn", + { + vars: "all", + varsIgnorePattern: "^_", + args: "after-used", + argsIgnorePattern: "^_" + } + ] + }, + languageOptions: { + parserOptions: { + projectService: true, + tsconfigRootDir: import.meta.dirname + } } - } -}); + }) +];