Skip to content

Commit

Permalink
Merge pull request #337 from SaekiTominaga/tsconfig/verbatim-module-s…
Browse files Browse the repository at this point in the history
…yntax

TypeScript の `verbatimModuleSyntax` オプションの有効化
  • Loading branch information
SaekiTominaga authored Jul 9, 2023
2 parents 7b12627 + 5056cc2 commit 155f74f
Show file tree
Hide file tree
Showing 26 changed files with 67 additions and 67 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"@w0s/eslint-config": "^3.0.0",
"@w0s/markuplint-config": "^2.5.0",
"@w0s/stylelint-config": "^1.2.0",
"@w0s/tsconfig": "^1.0.1",
"@w0s/tsconfig": "^1.2.0",
"ajv-cli": "^5.0.0",
"brotlin": "^1.1.0",
"cross-env": "^7.0.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/backend/node/src/ControllerInterface.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Request, Response } from 'express';
import type { Request, Response } from 'express';

export default interface ControllerInterface {
/**
Expand Down
4 changes: 2 additions & 2 deletions packages/backend/node/src/app.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import fs from 'node:fs';
import path from 'node:path';
import compression from 'compression';
import express, { NextFunction, Request, Response } from 'express';
import express, { type NextFunction, type Request, type Response } from 'express';
import Log4js from 'log4js';
import qs from 'qs';
import AkamatsuGenerator from './controller/AkamatsuGenerator.js';
Expand All @@ -15,7 +15,7 @@ import CrawlerResourceLogController from './controller/CrawlerResourceLogControl
import HttpBasicAuth from './util/HttpBasicAuth.js';
import HttpResponse from './util/HttpResponse.js';
import TokyuCarHistoryController from './controller/TokyuCarHistoryController.js';
import { W0SJp as Configure } from '../../configure/type/common.js';
import type { W0SJp as Configure } from '../../configure/type/common.js';

/* 設定ファイル読み込み */
const config = <Configure>JSON.parse(await fs.promises.readFile('configure/common.json', 'utf8'));
Expand Down
10 changes: 5 additions & 5 deletions packages/backend/node/src/controller/AkamatsuGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ import path from 'node:path';
import ejs from 'ejs';
import Sharp from 'sharp';
import StringEscapeHtml from '@saekitominaga/string-escape-html';
import { Request, Response } from 'express';
import { Result as ValidationResult, ValidationError } from 'express-validator';
import type { Request, Response } from 'express';
import type { Result as ValidationResult, ValidationError } from 'express-validator';
import HtmlStructuredData from '@w0s.jp/util/dist/HtmlStructuredData.js';
import AkamatsuGeneratorValidator from '../validator/AkamatsuGeneratorValidator.js';
import Controller from '../Controller.js';
import ControllerInterface from '../ControllerInterface.js';
import type ControllerInterface from '../ControllerInterface.js';
import HttpResponse from '../util/HttpResponse.js';
import RequestUtil from '../util/RequestUtil.js';
import { NoName as Configure } from '../../../configure/type/akamatsu-generator.js';
import { W0SJp as ConfigureCommon } from '../../../configure/type/common.js';
import type { NoName as Configure } from '../../../configure/type/akamatsu-generator.js';
import type { W0SJp as ConfigureCommon } from '../../../configure/type/common.js';

/**
* 赤松健セリフジェネレーター
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import fs from 'node:fs';
import ejs from 'ejs';
import { Request, Response } from 'express';
import type { Request, Response } from 'express';
import HtmlStructuredData from '@w0s.jp/util/dist/HtmlStructuredData.js';
import ContactValidator from '../validator/ContactValidator.js';
import Controller from '../Controller.js';
import ControllerInterface from '../ControllerInterface.js';
import type ControllerInterface from '../ControllerInterface.js';
import RequestUtil from '../util/RequestUtil.js';
import { NoName as Configure } from '../../../configure/type/contact.js';
import { W0SJp as ConfigureCommon } from '../../../configure/type/common.js';
import type { NoName as Configure } from '../../../configure/type/contact.js';
import type { W0SJp as ConfigureCommon } from '../../../configure/type/common.js';

/**
* 問い合わせ・完了
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import fs from 'node:fs';
import ejs from 'ejs';
import { Request, Response } from 'express';
import type { Request, Response } from 'express';
import HtmlStructuredData from '@w0s.jp/util/dist/HtmlStructuredData.js';
import Controller from '../Controller.js';
import ControllerInterface from '../ControllerInterface.js';
import { NoName as Configure } from '../../../configure/type/contact.js';
import { W0SJp as ConfigureCommon } from '../../../configure/type/common.js';
import type ControllerInterface from '../ControllerInterface.js';
import type { NoName as Configure } from '../../../configure/type/contact.js';
import type { W0SJp as ConfigureCommon } from '../../../configure/type/common.js';

/**
* 問い合わせ・入力
Expand Down
10 changes: 5 additions & 5 deletions packages/backend/node/src/controller/ContactSendController.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import fs from 'node:fs';
import ejs from 'ejs';
import nodemailer from 'nodemailer';
import { Request, Response } from 'express';
import { Result as ValidationResult, ValidationError } from 'express-validator';
import type { Request, Response } from 'express';
import type { Result as ValidationResult, ValidationError } from 'express-validator';
import HtmlStructuredData from '@w0s.jp/util/dist/HtmlStructuredData.js';
import ContactValidator from '../validator/ContactValidator.js';
import Controller from '../Controller.js';
import ControllerInterface from '../ControllerInterface.js';
import type ControllerInterface from '../ControllerInterface.js';
import HttpResponse from '../util/HttpResponse.js';
import RequestUtil from '../util/RequestUtil.js';
import { NoName as Configure } from '../../../configure/type/contact.js';
import { W0SJp as ConfigureCommon } from '../../../configure/type/common.js';
import type { NoName as Configure } from '../../../configure/type/contact.js';
import type { W0SJp as ConfigureCommon } from '../../../configure/type/common.js';

/**
* 問い合わせ・送信
Expand Down
8 changes: 4 additions & 4 deletions packages/backend/node/src/controller/CrawlerNewsController.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import fs from 'node:fs';
import ejs from 'ejs';
import { Request, Response } from 'express';
import type { Request, Response } from 'express';
import HtmlStructuredData from '@w0s.jp/util/dist/HtmlStructuredData.js';
import Controller from '../Controller.js';
import ControllerInterface from '../ControllerInterface.js';
import type ControllerInterface from '../ControllerInterface.js';
import CrawlerNewsDao from '../dao/CrawlerNewsDao.js';
import HttpResponse from '../util/HttpResponse.js';
import RequestUtil from '../util/RequestUtil.js';
import { NoName as Configure } from '../../../configure/type/crawler-news.js';
import { W0SJp as ConfigureCommon } from '../../../configure/type/common.js';
import type { NoName as Configure } from '../../../configure/type/crawler-news.js';
import type { W0SJp as ConfigureCommon } from '../../../configure/type/common.js';

/**
* ウェブ巡回(ニュース)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import fs from 'node:fs';
import ejs from 'ejs';
import { Request, Response } from 'express';
import type { Request, Response } from 'express';
import HtmlStructuredData from '@w0s.jp/util/dist/HtmlStructuredData.js';
import Controller from '../Controller.js';
import ControllerInterface from '../ControllerInterface.js';
import type ControllerInterface from '../ControllerInterface.js';
import CrawlerNewsDataDao from '../dao/CrawlerNewsDataDao.js';
import HttpResponse from '../util/HttpResponse.js';
import RequestUtil from '../util/RequestUtil.js';
import { NoName as Configure } from '../../../configure/type/crawler-news.js';
import { W0SJp as ConfigureCommon } from '../../../configure/type/common.js';
import type { NoName as Configure } from '../../../configure/type/crawler-news.js';
import type { W0SJp as ConfigureCommon } from '../../../configure/type/common.js';

/**
* ウェブ巡回(ニュース)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import fs from 'node:fs';
import ejs from 'ejs';
import { Request, Response } from 'express';
import type { Request, Response } from 'express';
import HtmlStructuredData from '@w0s.jp/util/dist/HtmlStructuredData.js';
import Controller from '../Controller.js';
import ControllerInterface from '../ControllerInterface.js';
import type ControllerInterface from '../ControllerInterface.js';
import CrawlerResourceDao from '../dao/CrawlerResourceDao.js';
import HttpResponse from '../util/HttpResponse.js';
import RequestUtil from '../util/RequestUtil.js';
import { NoName as Configure } from '../../../configure/type/crawler-resource.js';
import { W0SJp as ConfigureCommon } from '../../../configure/type/common.js';
import type { NoName as Configure } from '../../../configure/type/crawler-resource.js';
import type { W0SJp as ConfigureCommon } from '../../../configure/type/common.js';

/**
* ウェブ巡回(リソース)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import fs from 'node:fs';
import ejs from 'ejs';
import { Request, Response } from 'express';
import type { Request, Response } from 'express';
import * as Diff from 'diff';
import HtmlStructuredData from '@w0s.jp/util/dist/HtmlStructuredData.js';
import Controller from '../Controller.js';
import ControllerInterface from '../ControllerInterface.js';
import type ControllerInterface from '../ControllerInterface.js';
import HttpResponse from '../util/HttpResponse.js';
import RequestUtil from '../util/RequestUtil.js';
import { NoName as Configure } from '../../../configure/type/crawler-resource.js';
import { W0SJp as ConfigureCommon } from '../../../configure/type/common.js';
import type { NoName as Configure } from '../../../configure/type/crawler-resource.js';
import type { W0SJp as ConfigureCommon } from '../../../configure/type/common.js';

/**
* ウェブ巡回(リソース・ログ表示)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import fs from 'node:fs';
import dayjs from 'dayjs';
import ejs from 'ejs';
import { Request, Response } from 'express';
import { Result as ValidationResult, ValidationError } from 'express-validator';
import type { Request, Response } from 'express';
import type { Result as ValidationResult, ValidationError } from 'express-validator';
import HtmlStructuredData from '@w0s.jp/util/dist/HtmlStructuredData.js';
import Controller from '../Controller.js';
import ControllerInterface from '../ControllerInterface.js';
import type ControllerInterface from '../ControllerInterface.js';
import RequestUtil from '../util/RequestUtil.js';
import TokyuCarHistoryDao from '../dao/TokyuCarHistoryDao.js';
import TokyuCarHistoryValidator from '../validator/TokyuCarHistoryValidator.js';
import { NoName as Configure } from '../../../configure/type/tokyu-car-history.js';
import { W0SJp as ConfigureCommon } from '../../../configure/type/common.js';
import type { NoName as Configure } from '../../../configure/type/tokyu-car-history.js';
import type { W0SJp as ConfigureCommon } from '../../../configure/type/common.js';

/**
* 東急電車形態研究・車歴表
Expand Down
2 changes: 1 addition & 1 deletion packages/backend/node/src/util/HttpBasicAuth.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import basicAuth from 'basic-auth';
// @ts-expect-error: ts(7016)
import htpasswd from 'htpasswd-js';
import { Request } from 'express';
import type { Request } from 'express';

export interface Credentials {
username: string;
Expand Down
4 changes: 2 additions & 2 deletions packages/backend/node/src/util/HttpResponse.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import path from 'node:path';
import { Request, Response } from 'express';
import type { Request, Response } from 'express';
import StringEscapeHtml from '@saekitominaga/string-escape-html';
import { W0SJp as Configure } from '../../../configure/type/common.js';
import type { W0SJp as Configure } from '../../../configure/type/common.js';

type HttpAuthType = 'Basic' | 'Bearer' | 'Digest' | 'HOBA' | 'Mutual' | 'Negotiate' | 'OAuth' | 'SCRAM-SHA-1' | 'SCRAM-SHA-256' | 'vapid';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { body, Result, ValidationError, validationResult } from 'express-validator';
import { Request } from 'express';
import { NoName as Configure } from '../../../configure/type/akamatsu-generator.js';
import { body, Result, type ValidationError, validationResult } from 'express-validator';
import type { Request } from 'express';
import type { NoName as Configure } from '../../../configure/type/akamatsu-generator.js';

/**
* 赤松健セリフジェネレーター
Expand Down
6 changes: 3 additions & 3 deletions packages/backend/node/src/validator/ContactValidator.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { body, query, Result, ValidationError, validationResult } from 'express-validator';
import { Request } from 'express';
import { NoName as Configure } from '../../../configure/type/contact.js';
import { body, query, Result, type ValidationError, validationResult } from 'express-validator';
import type { Request } from 'express';
import type { NoName as Configure } from '../../../configure/type/contact.js';

/**
* 問い合わせ
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { query, Result, ValidationError, validationResult } from 'express-validator';
import { Request } from 'express';
import { NoName as Configure } from '../../../configure/type/tokyu-car-history.js';
import { query, Result, type ValidationError, validationResult } from 'express-validator';
import type { Request } from 'express';
import type { NoName as Configure } from '../../../configure/type/tokyu-car-history.js';

/**
* 東急電車形態研究・車歴表
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/node/src/BuildComponent.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import fs from 'node:fs';
import { NoName as Configure } from '../../configure/type/build.js';
import type { NoName as Configure } from '../../configure/type/build.js';

export default class BuildComponent {
protected readonly config: Configure; // Configure
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/node/src/build.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Component from './BuildComponentInterface.js';
import type Component from './BuildComponentInterface.js';

/* コンポーネント */
const COMPONENT_DIR = './build'; // 格納ディレクトリ
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/node/src/build/Css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import prettier from 'prettier';
import slash from 'slash';
import { globby } from 'globby';
import BuildComponent from '../BuildComponent.js';
import BuildComponentInterface from '../BuildComponentInterface.js';
import type BuildComponentInterface from '../BuildComponentInterface.js';
import PrettierUtil from '../util/PrettierUtil.js';

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/node/src/build/Feed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import jsdom from 'jsdom';
import prettier from 'prettier';
import xmlFormat from 'xml-formatter';
import BuildComponent from '../BuildComponent.js';
import BuildComponentInterface from '../BuildComponentInterface.js';
import type BuildComponentInterface from '../BuildComponentInterface.js';
import PrettierUtil from '../util/PrettierUtil.js';

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/node/src/build/Html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { globby } from 'globby';
import { JSDOM } from 'jsdom';
import HtmlStructuredData from '@w0s.jp/util/dist/HtmlStructuredData.js';
import BuildComponent from '../BuildComponent.js';
import BuildComponentInterface from '../BuildComponentInterface.js';
import type BuildComponentInterface from '../BuildComponentInterface.js';
import HtmlComponentAnchorAmazonAssociate from './component/HtmlAnchorAmazonAssociate.js';
import HtmlComponentAnchorIcon from './component/HtmlAnchorIcon.js';
import HtmlComponentBook from './component/HtmlBook.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/node/src/build/HtmlImageSize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { globby } from 'globby';
import { imageSize } from 'image-size';
import { JSDOM } from 'jsdom';
import BuildComponent from '../BuildComponent.js';
import BuildComponentInterface from '../BuildComponentInterface.js';
import type BuildComponentInterface from '../BuildComponentInterface.js';

/**
* HTML 中の <img> 要素の width, height 属性値が実際の画像サイズと一致しているかどうかチェックする
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/node/src/build/Sitemap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { globby } from 'globby';
import xmlFormat from 'xml-formatter';
import HtmlStructuredData from '@w0s.jp/util/dist/HtmlStructuredData.js';
import BuildComponent from '../BuildComponent.js';
import BuildComponentInterface from '../BuildComponentInterface.js';
import type BuildComponentInterface from '../BuildComponentInterface.js';
import PageUrl from '../util/PageUrl.js';

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/node/src/build/Svg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import path from 'node:path';
import slash from 'slash';
import { loadConfig, optimize } from 'svgo';
import BuildComponent from '../BuildComponent.js';
import BuildComponentInterface from '../BuildComponentInterface.js';
import type BuildComponentInterface from '../BuildComponentInterface.js';

/**
* SVG ビルド
Expand Down

0 comments on commit 155f74f

Please sign in to comment.