Skip to content

Commit

Permalink
Update eslint 9 rule configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Basssiiie committed Nov 18, 2024
1 parent 3a9a743 commit 67bc925
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,14 @@ export default tseslint.config(
},
rules: {
"@typescript-eslint/consistent-type-assertions": ["error", { assertionStyle: "angle-bracket" }],
"@typescript-eslint/prefer-nullish-coalescing": "off",
"@typescript-eslint/prefer-optional-chain": "off",
"@typescript-eslint/prefer-includes": "off", // not in es5
"@typescript-eslint/prefer-nullish-coalescing": "off", // verbose in es5
"@typescript-eslint/prefer-optional-chain": "off", // verbose in es5
"@typescript-eslint/no-inferrable-types": "warn",
"@typescript-eslint/no-unnecessary-condition": "warn",
"@typescript-eslint/no-unsafe-enum-comparison": "off",
"@typescript-eslint/no-unsafe-enum-comparison": "off", // enums are only used as labelled numbers
"@typescript-eslint/restrict-template-expressions": ["warn", { allowArray: true, allowBoolean: true, allowNullish: true, allowNumber: true }],
"@typescript-eslint/triple-slash-reference": "off",
"@typescript-eslint/triple-slash-reference": "off", // needed for openrct2 symbols
}
},
{
Expand Down

0 comments on commit 67bc925

Please sign in to comment.