-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: migrate to TypeScript (#150)
* refactor: migrate to TypeScript * test: add mocharc * fix: use match * chore: remove prettier * fix: to use uri
- Loading branch information
Showing
7 changed files
with
363 additions
and
62 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,6 +1,3 @@ | ||
{ | ||
"require": [ | ||
"textlint-scripts/register" | ||
], | ||
"timeout": "20000" | ||
"timeout": 20000 | ||
} |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -13,24 +13,32 @@ | |
"repository": "textlint-rule/textlint-rule-no-dead-link", | ||
"license": "MIT", | ||
"author": "nodaguti", | ||
"main": "lib/no-dead-link.js", | ||
"types": "lib/no-dead-link.d.ts", | ||
"files": [ | ||
"lib", | ||
"src" | ||
], | ||
"main": "lib/no-dead-link.js", | ||
"scripts": { | ||
"build": "textlint-scripts build", | ||
"prepublish": "yarn run --if-present build", | ||
"test": "textlint-scripts test", | ||
"watch": "textlint-scripts build --watch", | ||
"format": "prettier --write \"**/*.{js,jsx,ts,tsx,css}\"", | ||
"prepare": "git config --local core.hooksPath .githooks" | ||
"prepare": "git config --local core.hooksPath .githooks", | ||
"prepublish": "yarn run --if-present build", | ||
"test": "npm run type-check && textlint-scripts test", | ||
"type-check": "tsc --noEmit", | ||
"watch": "textlint-scripts build --watch" | ||
}, | ||
"lint-staged": { | ||
"*.{js,jsx,ts,tsx,css}": [ | ||
"prettier --write" | ||
] | ||
}, | ||
"prettier": { | ||
"printWidth": 120, | ||
"singleQuote": false, | ||
"tabWidth": 4, | ||
"trailingComma": "none" | ||
}, | ||
"dependencies": { | ||
"fs-extra": "^8.1.0", | ||
"get-url-origin": "^1.0.1", | ||
|
@@ -41,20 +49,25 @@ | |
"textlint-rule-helper": "^2.2.2" | ||
}, | ||
"devDependencies": { | ||
"@textlint/ast-node-types": "^12.2.2", | ||
"@textlint/types": "^12.2.2", | ||
"@types/minimatch": "^5.1.2", | ||
"@types/mocha": "^10.0.0", | ||
"@types/node": "^18.11.7", | ||
"@types/node-fetch": "^2.6.2", | ||
"cross-env": "^7.0.3", | ||
"lint-staged": "^13.0.3", | ||
"mocha": "^10.1.0", | ||
"prettier": "^2.7.1", | ||
"textlint": "^12.2.2", | ||
"textlint-scripts": "^12.2.2", | ||
"textlint-tester": "^12.2.2" | ||
"textlint-tester": "^12.2.2", | ||
"ts-node": "^10.9.1", | ||
"ts-node-test-register": "^10.0.0", | ||
"typescript": "^4.8.4" | ||
}, | ||
"packageManager": "[email protected]", | ||
"engines": { | ||
"node": ">=4" | ||
}, | ||
"packageManager": "[email protected]", | ||
"prettier": { | ||
"singleQuote": false, | ||
"printWidth": 120, | ||
"tabWidth": 4, | ||
"trailingComma": "none" | ||
} | ||
} |
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.