-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: migrate typescript (#5092)
* refactor: esm * refactor: migrate typescript * update files * remove `use strict` * fix indentation * refactor: migrate typescript * refactor: migrate typescript * update * export from * extend/filter * post * Schema and SchemaType * NunjucksError * declare module * update tests * fix export * update * update * number_format * update highlight * update * add secondary argument when create `Permalink` instance * specify `eslint` target directory * ignore two rules for testing * use `@ts-expect-error` for avoiding compile error * use `any` for avoiding compile error * chore: add `dist/` to `.gitignore` * test(eslint): update `.eslintrc` * refactor: `var` to `const` * refactor: delete unnecessary `'use strict';` * test: use `dist/modules/types/moment/SchemaTypeMoment` instead of `warehouse.SchemaTypeMoment` * fix: export of processors * test: fix bind * test: fix processer * fix fs import * fix hexo-i18n and hexo-log * fix param order * build hexo in benchmark * fix eslint * fix export & drop travis * Update .husky/pre-commit * add spaces * refactor: ts debounce fn * fix: lint errors * fix: lint errors --------- Co-authored-by: yoshinorin <[email protected]> Co-authored-by: Baoshuo <[email protected]>
- Loading branch information
1 parent
7edbf25
commit 148ed7c
Showing
280 changed files
with
1,469 additions
and
1,237 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,13 @@ | ||
{ | ||
"extends": "hexo", | ||
"root": true | ||
} | ||
{ | ||
"root": true, | ||
"extends": "hexo/ts.js", | ||
"parserOptions": { | ||
"sourceType": "module", | ||
"ecmaVersion": 2020 | ||
}, | ||
"rules": { | ||
"@typescript-eslint/no-explicit-any": 0, | ||
"@typescript-eslint/no-var-requires": 0, | ||
"node/no-missing-require": 0 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,4 @@ package-lock.json | |
coverage/ | ||
.tmp* | ||
.vscode | ||
dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.