Skip to content

Commit

Permalink
internal(types): replace ts-nocheck by ts-strict-ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
elpoelma committed Dec 13, 2024
1 parent 5cc7ca4 commit 7d41932
Show file tree
Hide file tree
Showing 37 changed files with 71 additions and 30 deletions.
3 changes: 2 additions & 1 deletion models/agendapoint.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// @ts-nocheck
// @ts-strict-ignore

import { prefixMap } from '../support/prefixes';
import { query, sparqlEscapeString, sparqlEscapeUri } from 'mu';

Expand Down
3 changes: 2 additions & 1 deletion models/attachment.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// @ts-nocheck
// @ts-strict-ignore

export default class Attachment {
static fromBinding({ uri, decision, file, type, filename, fileUuid }) {
return new Attachment({
Expand Down
3 changes: 2 additions & 1 deletion models/concept.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// @ts-nocheck
// @ts-strict-ignore

import { prefixMap } from '../support/prefixes';
import { query, sparqlEscapeString } from 'mu';

Expand Down
3 changes: 2 additions & 1 deletion models/custom-vote.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// @ts-nocheck
// @ts-strict-ignore

import { prefixMap } from '../support/prefixes';
import { sparqlEscapeUri, query } from 'mu';

Expand Down
3 changes: 2 additions & 1 deletion models/decision.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// @ts-nocheck
// @ts-strict-ignore

import { analyse } from '@lblod/marawa/rdfa-context-scanner';
import { cleanupTriples } from '../support/pre-importer';
import { editorDocumentFromUuid } from '../support/editor-document';
Expand Down
3 changes: 2 additions & 1 deletion models/intermission.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// @ts-nocheck
// @ts-strict-ignore

import { prefixMap } from '../support/prefixes';
import { query, sparqlEscapeUri } from 'mu';
import { DateTime } from 'luxon';
Expand Down
3 changes: 2 additions & 1 deletion models/mandatee.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// @ts-nocheck
// @ts-strict-ignore

export default class Mandatee {
// eslint doenst like class fields yet?
// uri;
Expand Down
3 changes: 2 additions & 1 deletion models/meeting.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// @ts-nocheck
// @ts-strict-ignore

import { prefixMap } from '../support/prefixes';
import { DateTime } from 'luxon';
import { query, sparqlEscapeString, sparqlEscapeUri } from 'mu';
Expand Down
3 changes: 2 additions & 1 deletion models/signed-resource.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// @ts-nocheck
// @ts-strict-ignore

import { prefixMap } from '../support/prefixes';
import { query, sparqlEscapeUri } from 'mu';

Expand Down
3 changes: 2 additions & 1 deletion models/standard-vote.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// @ts-nocheck
// @ts-strict-ignore

import { prefixMap } from '../support/prefixes';
import { sparqlEscapeUri, query } from 'mu';
import { whoVotesBasedOnClassifcationMap } from '../support/classification-utils';
Expand Down
2 changes: 2 additions & 0 deletions models/task.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// @ts-nocheck
// @ts-strict-ignore

import {
query,
sparqlEscapeDateTime,
Expand Down
3 changes: 2 additions & 1 deletion models/treatment.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// @ts-nocheck
// @ts-strict-ignore

import { prefixMap } from '../support/prefixes';
import { query, sparqlEscapeString, sparqlEscapeUri } from 'mu';
import Attachment from './attachment';
Expand Down
3 changes: 2 additions & 1 deletion models/versioned-agenda.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// @ts-nocheck
// @ts-strict-ignore

import { prefixMap } from '../support/prefixes';
import { hackedSparqlEscapeString } from '../support/pre-importer';

Expand Down
3 changes: 2 additions & 1 deletion models/versioned-behandeling.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// @ts-nocheck
// @ts-strict-ignore

import { query, sparqlEscapeString, sparqlEscapeUri, update, uuid } from 'mu';
import { hackedSparqlEscapeString } from '../support/pre-importer';
import { prefixMap } from '../support/prefixes';
Expand Down
3 changes: 2 additions & 1 deletion models/versioned-notulen.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// @ts-nocheck
// @ts-strict-ignore

import { uuid, query, sparqlEscapeString, update, sparqlEscapeUri } from 'mu';
import {
persistContentToFile,
Expand Down
3 changes: 2 additions & 1 deletion models/versioned-regulatory-statement.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// @ts-nocheck
// @ts-strict-ignore

import { uuid, query, sparqlEscapeString, update, sparqlEscapeUri } from 'mu';
import {
persistContentToFile,
Expand Down
2 changes: 2 additions & 0 deletions routes/preview.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// @ts-nocheck
// @ts-strict-ignore

import express from 'express';
import { uuid } from 'mu';
import { constructHtmlForAgenda } from '../support/agenda-utils';
Expand Down
3 changes: 2 additions & 1 deletion routes/publication.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// @ts-nocheck
// @ts-strict-ignore

import express from 'express';
import Meeting from '../models/meeting';
import Treatment from '../models/treatment';
Expand Down
2 changes: 2 additions & 0 deletions routes/signing.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// @ts-nocheck
// @ts-strict-ignore

import express from 'express';
import Meeting from '../models/meeting';
import Treatment from '../models/treatment';
Expand Down
1 change: 0 additions & 1 deletion routes/task.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// @ts-nocheck
import express from 'express';
import Task from '../models/task';

Expand Down
3 changes: 2 additions & 1 deletion support/agenda-utils.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// @ts-nocheck
// @ts-strict-ignore

import { PUBLISHER_TEMPLATES } from './setup-handlebars';
import { prefixes } from './prefixes';
import Meeting from '../models/meeting';
Expand Down
2 changes: 2 additions & 0 deletions support/besluit-exporter.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// @ts-nocheck
// @ts-strict-ignore

import { query, sparqlEscapeString, sparqlEscapeUri, update, uuid } from 'mu';
import {
hackedSparqlEscapeString,
Expand Down
3 changes: 2 additions & 1 deletion support/editor-document-utils.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// @ts-nocheck
// @ts-strict-ignore

import { query, sparqlEscapeUri } from 'mu';
import EditorDocument from './editor-document';

Expand Down
2 changes: 1 addition & 1 deletion support/editor-document.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @ts-nocheck
// @ts-strict-ignore

/**
* Represents an rdfa-document as entered by the user in the frontend.
Expand Down
3 changes: 2 additions & 1 deletion support/extract-utils.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// @ts-nocheck
// @ts-strict-ignore

import Treatment from '../models/treatment';
import AgendaPoint from '../models/agendapoint';
import Meeting from '../models/meeting';
Expand Down
3 changes: 2 additions & 1 deletion support/file-utils.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// @ts-nocheck
// @ts-strict-ignore

import { stat, writeFile, readFile } from 'fs/promises';
import { uuid, update } from 'mu';
import { sparqlEscapeUri, sparqlEscapeString, sparqlEscapeDateTime } from 'mu';
Expand Down
3 changes: 2 additions & 1 deletion support/notulen-utils.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// @ts-nocheck
// @ts-strict-ignore

import { query, sparqlEscapeUri } from 'mu';
import AgendaPoint from '../models/agendapoint';
import Concept from '../models/concept';
Expand Down
3 changes: 2 additions & 1 deletion support/parse-body.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// @ts-nocheck
// @ts-strict-ignore

import InvalidRequest from './invalid-request';

// basic utility function to extract attributes and relationships from a json:api request
Expand Down
3 changes: 2 additions & 1 deletion support/participant-cache.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// @ts-nocheck
// @ts-strict-ignore

import { query, sparqlEscapeUri } from 'mu';
import { prefixMap } from './prefixes';
import Mandatee from '../models/mandatee';
Expand Down
3 changes: 2 additions & 1 deletion support/pre-importer.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// @ts-nocheck
// @ts-strict-ignore

import {
query,
sparqlEscapeDateTime,
Expand Down
3 changes: 2 additions & 1 deletion support/query-utils.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// @ts-nocheck
// @ts-strict-ignore

import { query, sparqlEscapeUri } from 'mu';
import { prefixMap } from './prefixes';
import Mandatee from '../models/mandatee';
Expand Down
3 changes: 2 additions & 1 deletion support/sign-document.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// @ts-nocheck
// @ts-strict-ignore

import { update, sparqlEscapeUri, sparqlEscapeString, query } from 'mu';
import { prefixMap } from './prefixes';
import { createHash } from 'crypto';
Expand Down
3 changes: 2 additions & 1 deletion support/task-utils.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// @ts-nocheck
// @ts-strict-ignore

import Task from '../models/task';

/**
Expand Down
2 changes: 2 additions & 0 deletions test/agenda-publication-test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// @ts-nocheck
// @ts-strict-ignore

import { strict as assert, equal } from 'assert';
import { before } from 'mocha';
import { setupHandleBars } from '../support/setup-handlebars';
Expand Down
2 changes: 2 additions & 0 deletions test/decision-list-publication-test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// @ts-nocheck
// @ts-strict-ignore

import { strict as assert } from 'assert';
import { before } from 'mocha';
import { setupHandleBars } from '../support/setup-handlebars';
Expand Down
3 changes: 2 additions & 1 deletion test/helpers.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// @ts-nocheck
// @ts-strict-ignore

import fs from 'fs';
import factory from '@rdfjs/dataset';
import { Parser as ParserN3 } from 'n3';
Expand Down
2 changes: 2 additions & 0 deletions test/notulen-publication-test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// @ts-nocheck
// @ts-strict-ignore

import factory from '@rdfjs/dataset';
import { strict as assert } from 'assert';
import { before } from 'mocha';
Expand Down

0 comments on commit 7d41932

Please sign in to comment.