Skip to content

Commit

Permalink
build: set @ts-nocheck to bypass type checking
Browse files Browse the repository at this point in the history
until all types are fixed
  • Loading branch information
AnYiEE committed Nov 20, 2023
1 parent aacc399 commit 5dfa36e
Show file tree
Hide file tree
Showing 52 changed files with 52 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/DisamAssist/modules/core.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck

Check warning on line 1 in src/DisamAssist/modules/core.js

View workflow job for this annotation

GitHub Actions / lint

Do not use "@ts-nocheck" because it alters compilation errors
import {cfg} from './config';
import {txt} from './messages';

Expand Down
1 change: 1 addition & 0 deletions src/EasyArchive/EasyArchive.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck

Check warning on line 1 in src/EasyArchive/EasyArchive.js

View workflow job for this annotation

GitHub Actions / lint

Do not use "@ts-nocheck" because it alters compilation errors
import {easy_archive_lang} from './modules/i18n';

(function easyArchive() {
Expand Down
1 change: 1 addition & 0 deletions src/EasyArchive/modules/i18n.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck

Check warning on line 1 in src/EasyArchive/modules/i18n.js

View workflow job for this annotation

GitHub Actions / lint

Do not use "@ts-nocheck" because it alters compilation errors
export const easy_archive_lang = () => {
const {localize} = window.i18n;
window.easy_archive.lang = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck

Check warning on line 1 in src/Edittools-customizeToolbar/Edittools-customizeToolbar.js

View workflow job for this annotation

GitHub Actions / lint

Do not use "@ts-nocheck" because it alters compilation errors
const customizeToolbar = (customizer) => {
/* Check if we are in edit mode and the required modules are available and then customize the toolbar */
if (['edit', 'submit'].includes(mw.config.get('wgAction')) && mw.user.options.get('usebetatoolbar')) {
Expand Down
1 change: 1 addition & 0 deletions src/Edittools-delh/modules/core.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck

Check warning on line 1 in src/Edittools-delh/modules/core.js

View workflow job for this annotation

GitHub Actions / lint

Do not use "@ts-nocheck" because it alters compilation errors
const getVfdText = (code, comment) => {
return {
label: comment,
Expand Down
1 change: 1 addition & 0 deletions src/Edittools-refToolbar/modules/RefToolbar2.0.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck

Check warning on line 1 in src/Edittools-refToolbar/modules/RefToolbar2.0.js

View workflow job for this annotation

GitHub Actions / lint

Do not use "@ts-nocheck" because it alters compilation errors
import {getMessage} from './util';
import {refToolbarBase} from './RefToolbarBase';
import {refToolbarConfig} from './RefToolbarConfig';
Expand Down
1 change: 1 addition & 0 deletions src/Edittools-refToolbar/modules/RefToolbarBase.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck

Check warning on line 1 in src/Edittools-refToolbar/modules/RefToolbarBase.js

View workflow job for this annotation

GitHub Actions / lint

Do not use "@ts-nocheck" because it alters compilation errors
import {getMessage} from './util';

export const refToolbarBase = () => {
Expand Down
1 change: 1 addition & 0 deletions src/Edittools-refToolbar/modules/RefToolbarConfig.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck

Check warning on line 1 in src/Edittools-refToolbar/modules/RefToolbarConfig.js

View workflow job for this annotation

GitHub Actions / lint

Do not use "@ts-nocheck" because it alters compilation errors
/**
* Sitewide options for the the Cite toolbar button:
* All options should be specified
Expand Down
2 changes: 1 addition & 1 deletion src/Edittools-refToolbar/modules/util.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const getMessage = (key, ...args) => {
export const getMessage = (/** @type {string} */ key, /** @type {string[]} */ ...args) => {
// Messages that can be used here:
// * see RefToobarMessages.js
// * for more information
Expand Down
1 change: 1 addition & 0 deletions src/Edittools-vector/Edittools-vector.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck

Check warning on line 1 in src/Edittools-vector/Edittools-vector.js

View workflow job for this annotation

GitHub Actions / lint

Do not use "@ts-nocheck" because it alters compilation errors
const edittoolsVector = () => {
window.customizeToolbar(function () {
this.wikiEditor('addToToolbar', {
Expand Down
1 change: 1 addition & 0 deletions src/Edittools-vplus/Edittools-vplus.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck

Check warning on line 1 in src/Edittools-vplus/Edittools-vplus.js

View workflow job for this annotation

GitHub Actions / lint

Do not use "@ts-nocheck" because it alters compilation errors
const edittoolsVplus = () => {
window.customizeToolbar(function () {
this.wikiEditor('addToToolbar', {
Expand Down
1 change: 1 addition & 0 deletions src/HotCat/HotCat.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
import './modules/check';
import {hotCatLocalDefaults} from './modules/localDefaults';
import {hotCatMessages} from './modules/messages';
Expand Down
1 change: 1 addition & 0 deletions src/HotCat/modules/check.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
/**
* CheckCategories HotCat Extension –
* removes the template when categorizing (prompts before) with HotCat and
Expand Down
1 change: 1 addition & 0 deletions src/HotCat/modules/localDefaults.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
export const hotCatLocalDefaults = () => {
if (typeof HotCat !== 'undefined') {
HotCat.messages.cat_removed = '已移除[[Category:$1]]';
Expand Down
1 change: 1 addition & 0 deletions src/HotCat/modules/messages.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
export const hotCatMessages = () => {
if (typeof HotCat !== 'undefined') {
HotCat.messages.commit = '保存';
Expand Down
1 change: 1 addition & 0 deletions src/Navigation_popups/Navigation_popups.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
import {popupStrings} from './modules/string';
import {popups} from './modules/core';

Expand Down
1 change: 1 addition & 0 deletions src/Navigation_popups/modules/core.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
export const popups = () => {
// STARTFILE: main.js
// Fix later
Expand Down
1 change: 1 addition & 0 deletions src/PrintOptions/PrintOptions.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
(function printOptions() {
let windowManager;
let printDialog;
Expand Down
1 change: 1 addition & 0 deletions src/ProveIt/modules/core.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
export const ProveIt = {
/**
* Template data of the templates
Expand Down
1 change: 1 addition & 0 deletions src/ToolsRedirect/modules/bio-latin-names.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
export const toolsRedirect_bio_latin_names = () => {
const prefixRegex = /[学學]名\s*:?\s*$/;
const colonRegex = /^\s*[::]?\s*$/;
Expand Down
1 change: 1 addition & 0 deletions src/ToolsRedirect/modules/core.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
const origPageName = mw.config.get('wgPageName');
const scriptPath = mw.config.get('wgScriptPath');
const nsNumber = mw.config.get('wgNamespaceNumber');
Expand Down
1 change: 1 addition & 0 deletions src/ToolsRedirect/modules/courtesy-and-art-names.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
export const toolsRedirect_courtesy_and_art_names = () => {
const prefixRegex = /[号字號]\s*$/;
const {findRedirectCallback} = window.toolsRedirect;
Expand Down
1 change: 1 addition & 0 deletions src/ToolsRedirect/modules/opt-bolds.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
export const toolsRedirect_opt_bolds = () => {
window.toolsRedirect.findRedirectBySelector('div#mw-content-text p > b');
};
1 change: 1 addition & 0 deletions src/Twinkle/modules/friendlytag.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
/*! Twinkle.js - friendlytag.js */
(function friendlytag($) {
/**
Expand Down
1 change: 1 addition & 0 deletions src/Twinkle/modules/friendlytalkback.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
/*! Twinkle.js - friendlytalkback.js */
(function friendlytalkback($) {
/**
Expand Down
1 change: 1 addition & 0 deletions src/Twinkle/modules/twinkle.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
/*! Twinkle.js - twinkle.js */
(function twinkle($) {
// Wrap with anonymous function
Expand Down
1 change: 1 addition & 0 deletions src/Twinkle/modules/twinklearv.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
/*! Twinkle.js - twinklearv.js */
(function twinklearv($) {
/**
Expand Down
1 change: 1 addition & 0 deletions src/Twinkle/modules/twinklebatchdelete.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
/*! Twinkle.js - twinklebatchdelete.js */
(function twinklebatchdelete($) {
/**
Expand Down
1 change: 1 addition & 0 deletions src/Twinkle/modules/twinklebatchprotect.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
/*! Twinkle.js - twinklebatchprotect.js */
(function twinklebatchprotect($) {
/**
Expand Down
1 change: 1 addition & 0 deletions src/Twinkle/modules/twinklebatchundelete.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
/*! Twinkle.js - twinklebatchundelete.js */
(function twinklebatchundelete($) {
/**
Expand Down
1 change: 1 addition & 0 deletions src/Twinkle/modules/twinkleblock.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
/*! Twinkle.js - twinkleblock.js */
(function twinkleblock($) {
const api = new mw.Api({
Expand Down
1 change: 1 addition & 0 deletions src/Twinkle/modules/twinkleclose.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
/*! Twinkle.js - twinkleclose.js */
(function twinkleclose($) {
/**
Expand Down
1 change: 1 addition & 0 deletions src/Twinkle/modules/twinkleconfig.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
/*! Twinkle.js - twinkleconfig.js */
(function twinkleconfig($) {
/**
Expand Down
1 change: 1 addition & 0 deletions src/Twinkle/modules/twinklecopyvio.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
/*! Twinkle.js - twinklecopyvio.js */
(function twinklecopyvio() {
/**
Expand Down
1 change: 1 addition & 0 deletions src/Twinkle/modules/twinklediff.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
/*! Twinkle.js - twinklediff.js */
(function twinklediff($) {
/**
Expand Down
1 change: 1 addition & 0 deletions src/Twinkle/modules/twinklefluff.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
/*! Twinkle.js - twinklefluff.js */
(function twinklefluff($) {
/**
Expand Down
1 change: 1 addition & 0 deletions src/Twinkle/modules/twinkleimage.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
/*! Twinkle.js - twinkleimage.js */
(function twinkleimage() {
/**
Expand Down
1 change: 1 addition & 0 deletions src/Twinkle/modules/twinkleprotect.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
/*! Twinkle.js - twinkleprotect.js */
(function twinkleprotect($) {
/**
Expand Down
1 change: 1 addition & 0 deletions src/Twinkle/modules/twinklespeedy.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
/*! Twinkle.js - twinklespeedy.js */
(function twinklespeedy($) {
/**
Expand Down
1 change: 1 addition & 0 deletions src/Twinkle/modules/twinklestub.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
/*! Twinkle.js - twinklestub.js */
(function twinklestub($) {
/**
Expand Down
1 change: 1 addition & 0 deletions src/Twinkle/modules/twinkleunlink.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
/*! Twinkle.js - twinkleunlink.js */
(function twinkleunlink($) {
/**
Expand Down
1 change: 1 addition & 0 deletions src/Twinkle/modules/twinklewarn.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
/*! Twinkle.js - twinklewarn.js */
(function twinklewarn($) {
/**
Expand Down
1 change: 1 addition & 0 deletions src/Twinkle/modules/twinklexfd.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
/*! Twinkle.js - twinklexfd.js */
(function twinklexfd($) {
/**
Expand Down
1 change: 1 addition & 0 deletions src/UserRightsManager/UserRightsManager.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
import {initDialog} from './modules/core';
import {pagePermissions} from './modules/constant';

Expand Down
1 change: 1 addition & 0 deletions src/UserRightsManager/modules/core.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
import {pagePermissions, permissionNames, tagLine, templates} from './constant';

const pageName = mw.config.get('wgPageName');
Expand Down
1 change: 1 addition & 0 deletions src/Wikicache/modules/core.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
import {messages} from './messages';

let autoSaveId = null;
Expand Down
1 change: 1 addition & 0 deletions src/Wikicache/modules/messages.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
export const messages = {
'no-reminder': '不再提醒',
more: wgULS('更多信息', '更多資訊'),
Expand Down
1 change: 1 addition & 0 deletions src/Wikiplus/Wikiplus.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
(() => {
if (!(mw.config.get('wgAction') === 'view' && mw.config.get('wgIsArticle'))) {
return;
Expand Down
1 change: 1 addition & 0 deletions src/Wikiplus/modules/core.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
(function Wikiplus() {
/*! Wikiplus - 4.0.11 | Eridanus Sora (妹空酱) | CC-BY-SA-4.0 <qwbk.cc/H:CC-BY-SA-4.0> */
const t = {
Expand Down
1 change: 1 addition & 0 deletions src/Wikiplus/modules/highlight.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
(async () => {
/*! Wikiplus-highlight | Bhsd, 机智的小鱼君 | GPL-3.0 <qwbk.cc/H:GPL-3.0> */
'use strict';
Expand Down
1 change: 1 addition & 0 deletions src/morebits/morebits.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
/*! Twinkle.js - morebits.js */
/**
* A library full of lots of goodness for user scripts on MediaWiki wikis.
Expand Down
1 change: 1 addition & 0 deletions src/select2/select2.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-nocheck
((A) => {
'function' == typeof define && define.amd ? define(['jquery'], A) : A(jQuery);
})((A) => {
Expand Down

0 comments on commit 5dfa36e

Please sign in to comment.