Disable the `no-non-null-assertion` rule
authorAlexander Ebert <ebert@woltlab.com>
Thu, 29 Oct 2020 17:25:51 +0000 (18:25 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Fri, 30 Oct 2020 11:26:17 +0000 (12:26 +0100)
.eslintrc.js

index d908dc7669db9a72301cd8867513f793af056265..e1f7b93bce21a2dca6efd47b5e2aa96af96ef5c5 100644 (file)
@@ -1,16 +1,19 @@
 module.exports = {
-       root: true,
-       parser: "@typescript-eslint/parser",
-       parserOptions: {
-               tsconfigRootDir: __dirname,
-               project: ['./tsconfig.json']
-       },
-       plugins: ["@typescript-eslint"],
-       extends: [
-               "eslint:recommended",
-               "plugin:@typescript-eslint/recommended",
-               "plugin:@typescript-eslint/recommended-requiring-type-checking",
-               "prettier",
-               "prettier/@typescript-eslint",
-       ],
+  root: true,
+  parser: "@typescript-eslint/parser",
+  parserOptions: {
+    tsconfigRootDir: __dirname,
+    project: ["./tsconfig.json"]
+  },
+  plugins: ["@typescript-eslint"],
+  extends: [
+    "eslint:recommended",
+    "plugin:@typescript-eslint/recommended",
+    "plugin:@typescript-eslint/recommended-requiring-type-checking",
+    "prettier",
+    "prettier/@typescript-eslint"
+  ],
+  rules: {
+    "@typescript-eslint/no-non-null-assertion": 0
+  }
 };