From c87ba7d4269b46b99eb127662ab7eb40915f05c9 Mon Sep 17 00:00:00 2001 From: Henrik Giesel Date: Thu, 4 Nov 2021 02:42:51 +0100 Subject: [PATCH] Set "no-non-null-assertion: off" by default (#1475) --- ts/.eslintrc.js | 1 + ts/change-notetype/lib.ts | 4 ---- ts/deck-options/TextInputModal.svelte | 3 --- ts/deck-options/lib.ts | 4 ---- ts/editable/mathjax-element.ts | 1 - ts/editor/index.ts | 1 - ts/graphs/added.ts | 1 - ts/graphs/buttons.ts | 1 - ts/graphs/calendar.ts | 4 ---- ts/graphs/card-counts.ts | 1 - ts/graphs/ease.ts | 1 - ts/graphs/future-due.ts | 1 - ts/graphs/graph-helpers.ts | 1 - ts/graphs/histogram-graph.ts | 1 - ts/graphs/hours.ts | 1 - ts/graphs/intervals.ts | 1 - ts/graphs/reviews.ts | 1 - ts/lib/dom.ts | 4 ---- ts/lib/promise.ts | 4 ---- ts/lib/wrap.ts | 4 ---- ts/reviewer/index.ts | 1 - ts/sveltelib/node-store.ts | 4 ---- 22 files changed, 1 insertion(+), 44 deletions(-) diff --git a/ts/.eslintrc.js b/ts/.eslintrc.js index ef8cdf3ff..9ac39c7ab 100644 --- a/ts/.eslintrc.js +++ b/ts/.eslintrc.js @@ -11,6 +11,7 @@ module.exports = { "prefer-const": "warn", "no-nested-ternary": "warn", "@typescript-eslint/ban-ts-comment": "warn", + "@typescript-eslint/no-non-null-assertion": "off", "@typescript-eslint/no-unused-vars": [ "warn", { argsIgnorePattern: "^_", varsIgnorePattern: "^_" }, diff --git a/ts/change-notetype/lib.ts b/ts/change-notetype/lib.ts index 3bc334a03..37a97c5bc 100644 --- a/ts/change-notetype/lib.ts +++ b/ts/change-notetype/lib.ts @@ -1,10 +1,6 @@ // Copyright: Ankitects Pty Ltd and contributors // License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html -/* eslint -@typescript-eslint/no-non-null-assertion: "off", - */ - import { Notetypes } from "../lib/proto"; import { postRequest } from "../lib/postrequest"; import { readable, Readable } from "svelte/store"; diff --git a/ts/deck-options/TextInputModal.svelte b/ts/deck-options/TextInputModal.svelte index 6ff079e2b..3ee08523e 100644 --- a/ts/deck-options/TextInputModal.svelte +++ b/ts/deck-options/TextInputModal.svelte @@ -3,9 +3,6 @@ Copyright: Ankitects Pty Ltd and contributors License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html -->