Fix these errors in @tags.ts [{ "resource":…
- User
Fix these errors in @tags.ts
[{ "resource": "/Users/[user]/Desktop/Code/obsidian-magic/packages/types/src/models/tags.ts", "owner": "eslint", "code": { "value": "@typescript-eslint/no-redundant-type-constituents", "target": { "mid": 1, "path": "/rules/no-redundant-type-constituents", "scheme": "https", "authority": "typescript-eslint.io" } }, "severity": 8, "message": "\"software-development\" is overridden by string in this union type.", "source": "eslint", "startLineNumber": 27, "startColumn": 5, "endLineNumber": 27, "endColumn": 27, "modelVersionId": 1 },{ "resource": "/Users/[user]/Desktop/Code/obsidian-magic/packages/types/src/models/tags.ts", "owner": "eslint", "code": { "value": "@typescript-eslint/no-redundant-type-constituents", "target": { "mid": 1, "path": "/rules/no-redundant-type-constituents", "scheme": "https", "authority": "typescript-eslint.io" } }, "severity": 8, "message": ""philosophy" is overridden by string in this union type.", "source": "eslint", "startLineNumber": 28, "startColumn": 5, "endLineNumber": 28, "endColumn": 17, "modelVersionId": 1 },{ "resource": "/Users/[user]/Desktop/Code/obsidian-magic/packages/types/src/models/tags.ts", "owner": "eslint", "code": { "value": "@typescript-eslint/no-redundant-type-constituents", "target": { "mid": 1, "path": "/rules/no-redundant-type-constituents", "scheme": "https", "authority": "typescript-eslint.io" } }, "severity": 8, "message": "\"design\" is overridden by string in this union type.", "source": "eslint", "startLineNumber": 29, "startColumn": 5, "endLineNumber": 29, "endColumn": 13, "modelVersionId": 1 },{ "resource": "/Users/[user]/Desktop/Code/obsidian-magic/packages/types/src/models/tags.ts", "owner": "eslint", "code": { "value": "@typescript-eslint/no-redundant-type-constituents", "target": { "mid": 1, "path": "/rules/no-redundant-type-constituents", "scheme": "https", "authority": "typescript-eslint.io" } }, "severity": 8, "message": ""psychology" is overridden by string in this union type.", "source": "eslint", "startLineNumber": 30, "startColumn": 5, "endLineNumber": 30, "endColumn": 17, "modelVersionId": 1 },{ "resource": "/Users/[user]/Desktop/Code/obsidian-magic/packages/types/src/models/tags.ts", "owner": "eslint", "code": { "value": "@typescript-eslint/no-redundant-type-constituents", "target": { "mid": 1, "path": "/rules/no-redundant-type-constituents", "scheme": "https", "authority": "typescript-eslint.io" } }, "severity": 8, "message": "\"business\" is overridden by string in this union type.", "source": "eslint", "startLineNumber": 31, "startColumn": 5, "endLineNumber": 31, "endColumn": 15, "modelVersionId": 1 },{ "resource": "/Users/[user]/Desktop/Code/obsidian-magic/packages/types/src/models/tags.ts", "owner": "eslint", "code": { "value": "@typescript-eslint/no-redundant-type-constituents", "target": { "mid": 1, "path": "/rules/no-redundant-type-constituents", "scheme": "https", "authority": "typescript-eslint.io" } }, "severity": 8, "message": ""science" is overridden by string in this union type.", "source": "eslint", "startLineNumber": 32, "startColumn": 5, "endLineNumber": 32, "endColumn": 14, "modelVersionId": 1 },{ "resource": "/Users/[user]/Desktop/Code/obsidian-magic/packages/types/src/models/tags.ts", "owner": "eslint", "code": { "value": "@typescript-eslint/no-redundant-type-constituents", "target": { "mid": 1, "path": "/rules/no-redundant-type-constituents", "scheme": "https", "authority": "typescript-eslint.io" } }, "severity": 8, "message": ""entertainment" is overridden by string in this union type.", "source": "eslint", "startLineNumber": 34, "startColumn": 5, "endLineNumber": 34, "endColumn": 20, "modelVersionId": 1 },{ "resource": "/Users/[user]/Desktop/Code/obsidian-magic/packages/types/src/models/tags.ts", "owner": "eslint", "code": { "value": "@typescript-eslint/no-redundant-type-constituents", "target": { "mid": 1, "path": "/rules/no-redundant-type-constituents", "scheme": "https", "authority": "typescript-eslint.io" } }, "severity": 8, "message": ""health" is overridden by string in this union type.", "source": "eslint", "startLineNumber": 36, "startColumn": 5, "endLineNumber": 36, "endColumn": 13, "modelVersionId": 1 },{ "resource": "/Users/[user]/Desktop/Code/obsidian-magic/packages/types/src/models/tags.ts", "owner": "eslint", "code": { "value": "@typescript-eslint/no-redundant-type-constituents", "target": { "mid": 1, "path": "/rules/no-redundant-type-constituents", "scheme": "https", "authority": "typescript-eslint.io" } }, "severity": 8, "message": ""finance" is overridden by string in this union type.", "source": "eslint", "startLineNumber": 38, "startColumn": 5, "endLineNumber": 38, "endColumn": 14, "modelVersionId": 1 },{ "resource": "/Users/[user]/Desktop/Code/obsidian-magic/packages/types/src/models/tags.ts", "owner": "eslint", "code": { "value": "@typescript-eslint/no-redundant-type-constituents", "target": { "mid": 1, "path": "/rules/no-redundant-type-constituents", "scheme": "https", "authority": "typescript-eslint.io" } }, "severity": 8, "message": ""writing" is overridden by string in this union type.", "source": "eslint", "startLineNumber": 40, "startColumn": 5, "endLineNumber": 40, "endColumn": 14, "modelVersionId": 1 },{ "resource": "/Users/[user]/Desktop/Code/obsidian-magic/packages/types/src/models/tags.ts", "owner": "eslint", "code": { "value": "@typescript-eslint/no-redundant-type-constituents", "target": { "mid": 1, "path": "/rules/no-redundant-type-constituents", "scheme": "https", "authority": "typescript-eslint.io" } }, "severity": 8, "message": ""beginner" is overridden by string in this union type.", "source": "eslint", "startLineNumber": 206, "startColumn": 5, "endLineNumber": 206, "endColumn": 15, "modelVersionId": 1 },{ "resource": "/Users/[user]/Desktop/Code/obsidian-magic/packages/types/src/models/tags.ts", "owner": "eslint", "code": { "value": "@typescript-eslint/no-redundant-type-constituents", "target": { "mid": 1, "path": "/rules/no-redundant-type-constituents", "scheme": "https", "authority": "typescript-eslint.io" } }, "severity": 8, "message": ""comparison" is overridden by string in this union type.", "source": "eslint", "startLineNumber": 208, "startColumn": 5, "endLineNumber": 208, "endColumn": 17, "modelVersionId": 1 },{ "resource": "/Users/[user]/Desktop/Code/obsidian-magic/packages/types/src/models/tags.ts", "owner": "eslint", "code": { "value": "@typescript-eslint/no-redundant-type-constituents", "target": { "mid": 1, "path": "/rules/no-redundant-type-constituents", "scheme": "https", "authority": "typescript-eslint.io" } }, "severity": 8, "message": ""critique" is overridden by string in this union type.", "source": "eslint", "startLineNumber": 210, "startColumn": 5, "endLineNumber": 210, "endColumn": 15, "modelVersionId": 1 },{ "resource": "/Users/[user]/Desktop/Code/obsidian-magic/packages/types/src/models/tags.ts", "owner": "eslint", "code": { "value": "@typescript-eslint/no-redundant-type-constituents", "target": { "mid": 1, "path": "/rules/no-redundant-type-constituents", "scheme": "https", "authority": "typescript-eslint.io" } }, "severity": 8, "message": ""history" is overridden by string in this union type.", "source": "eslint", "startLineNumber": 212, "startColumn": 5, "endLineNumber": 212, "endColumn": 14, "modelVersionId": 1 },{ "resource": "/Users/[user]/Desktop/Code/obsidian-magic/packages/types/src/models/tags.ts", "owner": "eslint", "code": { "value": "@typescript-eslint/no-redundant-type-constituents", "target": { "mid": 1, "path": "/rules/no-redundant-type-constituents", "scheme": "https", "authority": "typescript-eslint.io" } }, "severity": 8, "message": ""trends" is overridden by string in this union type.", "source": "eslint", "startLineNumber": 214, "startColumn": 5, "endLineNumber": 214, "endColumn": 13, "modelVersionId": 1 },{ "resource": "/Users/[user]/Desktop/Code/obsidian-magic/packages/types/src/models/tags.ts", "owner": "eslint", "code": { "value": "@typescript-eslint/no-redundant-type-constituents", "target": { "mid": 1, "path": "/rules/no-redundant-type-constituents", "scheme": "https", "authority": "typescript-eslint.io" } }, "severity": 8, "message": ""ethics" is overridden by string in this union type.", "source": "eslint", "startLineNumber": 216, "startColumn": 5, "endLineNumber": 216, "endColumn": 13, "modelVersionId": 1 },{ "resource": "/Users/[user]/Desktop/Code/obsidian-magic/packages/types/src/models/tags.ts", "owner": "eslint", "code": { "value": "@typescript-eslint/no-redundant-type-constituents", "target": { "mid": 1, "path": "/rules/no-redundant-type-constituents", "scheme": "https", "authority": "typescript-eslint.io" } }, "severity": 8, "message": ""tools" is overridden by string in this union type.", "source": "eslint", "startLineNumber": 218, "startColumn": 5, "endLineNumber": 218, "endColumn": 12, "modelVersionId": 1 },{ "resource": "/Users/[user]/Desktop/Code/obsidian-magic/packages/types/src/models/tags.ts", "owner": "eslint", "code": { "value": "@typescript-eslint/no-redundant-type-constituents", "target": { "mid": 1, "path": "/rules/no-redundant-type-constituents", "scheme": "https", "authority": "typescript-eslint.io" } }, "severity": 8, "message": ""resources" is overridden by string in this union type.", "source": "eslint", "startLineNumber": 220, "startColumn": 5, "endLineNumber": 220, "endColumn": 16, "modelVersionId": 1 },{ "resource": "/Users/[user]/Desktop/Code/obsidian-magic/packages/types/src/models/tags.ts", "owner": "eslint", "code": { "value": "@typescript-eslint/no-redundant-type-constituents", "target": { "mid": 1, "path": "/rules/no-redundant-type-constituents", "scheme": "https", "authority": "typescript-eslint.io" } }, "severity": 8, "message": ""problem-solving" is overridden by string in this union type.", "source": "eslint", "startLineNumber": 222, "startColumn": 5, "endLineNumber": 222, "endColumn": 22, "modelVersionId": 1 },{ "resource": "/Users/[user]/Desktop/Code/obsidian-magic/packages/types/src/models/tags.ts", "owner": "eslint", "code": { "value": "@typescript-eslint/no-redundant-type-constituents", "target": { "mid": 1, "path": "/rules/no-redundant-type-constituents", "scheme": "https", "authority": "typescript-eslint.io" } }, "severity": 8, "message": ""productivity" is overridden by string in this union type.", "source": "eslint", "startLineNumber": 224, "startColumn": 5, "endLineNumber": 224, "endColumn": 19, "modelVersionId": 1 },{ "resource": "/Users/[user]/Desktop/Code/obsidian-magic/packages/types/src/models/tags.ts", "owner": "eslint", "code": { "value": "@typescript-eslint/no-redundant-type-constituents", "target": { "$mid": 1, "path": "/rules/no-redundant-type-constituents", "scheme": "https", "authority": "typescript-eslint.io" } }, "severity": 8, "message": ""communication" is overridden by string in this union type.", "source": "eslint", "startLineNumber": 225, "startColumn": 5, "endLineNumber": 225, "endColumn": 20, "modelVersionId": 1 }]
- Assistant
Your Lordship, the linter is complaining about redundant type constituents in your union types. When a specific string literal is included alongside the
stringtype in a union, the specific literals become redundant since already covers all possible string values. Let me fix these issues for you: