From a6c57cc4d7ffeff16320e1d27280ac752fb80e21 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sun, 10 Dec 2023 19:21:02 -0500 Subject: Require typescript files to have the correct header (#351) --- .eslintrc.json | 3 ++- types/ext/request-builder.d.ts | 30 +++++++++++++++--------------- types/ext/script-manager.d.ts | 30 +++++++++++++++--------------- 3 files changed, 32 insertions(+), 31 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index d0320792..9f1c3255 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -546,7 +546,8 @@ }, { "files": [ - "*.js" + "*.js", + "*.ts" ], "rules": { "header/header": [ diff --git a/types/ext/request-builder.d.ts b/types/ext/request-builder.d.ts index b231bcd7..41ab5227 100644 --- a/types/ext/request-builder.d.ts +++ b/types/ext/request-builder.d.ts @@ -1,18 +1,18 @@ /* -* Copyright (C) 2023 Yomitan Authors -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 3 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see . -*/ + * Copyright (C) 2023 Yomitan Authors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ export type ProgressCallback = (complete: boolean) => void; diff --git a/types/ext/script-manager.d.ts b/types/ext/script-manager.d.ts index 89337152..c82fa9cb 100644 --- a/types/ext/script-manager.d.ts +++ b/types/ext/script-manager.d.ts @@ -1,19 +1,19 @@ /* -* Copyright (C) 2023 Yomitan Authors -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 3 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program. If not, see . -*/ + * Copyright (C) 2023 Yomitan Authors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ export type RunAt = 'document_start' | 'document_end' | 'document_idle'; -- cgit v1.2.3