Skip to content

Commit

Permalink
Reenable no-non-null
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Sep 16, 2023
1 parent a0defc4 commit 91465dc
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,12 @@
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
// trade off between having a warning without consequences on main
// and having no warning but non-descriptive errors when using typescript@^3.8 syntax
"warnOnUnsupportedTypeScriptVersion": false
},
"plugins": ["@typescript-eslint"],
"rules": {
// required for window.Element
"@typescript-eslint/ban-ts-ignore": "off",
// It's easily missed so we enforce and explicit eslint-disable-next-line to highlight the non-null assertion.
"@typescript-eslint/no-non-null-assertion": "error",
// I find this rule not very helpful since it prevents me from ordering
// functions in a file by importance e.g. default export at the top
"@typescript-eslint/no-use-before-define": "off",
Expand Down

0 comments on commit 91465dc

Please sign in to comment.