Skip to content

Commit

Permalink
fix(eslint): resolve a conflict between ESLint and Mikro ORM
Browse files Browse the repository at this point in the history
When using reflect-metadata Mikro ORM needs property types to be defined, even if the compiler can infer them. This conflicts with an ESLint rule, so this change disables the rule for the ORM entities' directory.

Refs #422, ba132cc
  • Loading branch information
thewilkybarkid committed Nov 2, 2021
1 parent 3a0e1a9 commit 58efacb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,14 @@
"plugin:@typescript-eslint/recommended",
"prettier"
]
},
{
"files": [
"src/backend/models/entities/**"
],
"rules": {
"@typescript-eslint/no-inferrable-types": "off"
}
}
],
"rules": {
Expand Down

0 comments on commit 58efacb

Please sign in to comment.