summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2023-12-10 19:21:02 -0500
committerGitHub <noreply@github.com>2023-12-11 00:21:02 +0000
commita6c57cc4d7ffeff16320e1d27280ac752fb80e21 (patch)
tree7cbf693f2d1c6c2a29bce457876202b933b70daa
parent7cea3d9ca0e42840330f0e4bf41c8487328304a8 (diff)
Require typescript files to have the correct header (#351)
-rw-r--r--.eslintrc.json3
-rw-r--r--types/ext/request-builder.d.ts30
-rw-r--r--types/ext/script-manager.d.ts30
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 <https://www.gnu.org/licenses/>.
-*/
+ * 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 <https://www.gnu.org/licenses/>.
+ */
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 <https://www.gnu.org/licenses/>.
-*/
+ * 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 <https://www.gnu.org/licenses/>.
+ */
export type RunAt = 'document_start' | 'document_end' | 'document_idle';