-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from textlint/typescript
refactor(TypeScript): Convert to TypeScript
- Loading branch information
Showing
11 changed files
with
236 additions
and
1,703 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,39 +1,43 @@ | ||
{ | ||
"name": "textlint-rule-helper", | ||
"description": "Helper for textlint rule.", | ||
"version": "2.0.1", | ||
"description": "Helper for textlint rule.", | ||
"homepage": "https://github.com/textlint/textlint-rule-helper/", | ||
"bugs": { | ||
"url": "https://github.com/textlint/textlint-rule-helper/issues" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/textlint/textlint-rule-helper.git" | ||
}, | ||
"main": "lib/index.js", | ||
"license": "MIT", | ||
"author": "azu", | ||
"files": [ | ||
"lib", | ||
"src" | ||
], | ||
"main": "lib/index.js", | ||
"types": "lib/index.d.ts", | ||
"scripts": { | ||
"build": "babel src/ --out-dir lib/ --source-maps", | ||
"watch": "babel src/ --out-dir lib/ --watch --source-maps", | ||
"test": "mocha test/", | ||
"prepublish": "npm run build" | ||
"build": "cross-env NODE_ENV=production tsc -p .", | ||
"prepublish": "npm run --if-present build", | ||
"test": "mocha \"test/**/*.{js,ts}\"", | ||
"watch": "tsc -p . --watch" | ||
}, | ||
"author": "azu", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/textlint/textlint-rule-helper/issues" | ||
"dependencies": { | ||
"@textlint/ast-node-types": "^4.0.3", | ||
"unist-util-visit": "^1.1.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.1.2", | ||
"@babel/core": "^7.1.2", | ||
"@babel/preset-env": "^7.1.0", | ||
"@babel/register": "^7.0.0", | ||
"@types/mocha": "^5.2.5", | ||
"@types/node": "^10.12.18", | ||
"cross-env": "^5.2.0", | ||
"markdown-to-ast": "^6.0.3", | ||
"mocha": "^5.2.0", | ||
"textlint": "^11.0.0", | ||
"txt-ast-traverse": "^2.0.4" | ||
}, | ||
"dependencies": { | ||
"unist-util-visit": "^1.1.0" | ||
"ts-node": "^7.0.1", | ||
"ts-node-test-register": "^4.0.0", | ||
"txt-ast-traverse": "^2.0.4", | ||
"typescript": "^3.2.2" | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
// LICENSE : MIT | ||
"use strict"; | ||
import RuleHelper from "./textlint-rule-helper"; | ||
import IgnoreNodeManager from "./IgnoreNodeManager" | ||
module.exports = { | ||
export { | ||
IgnoreNodeManager, | ||
RuleHelper | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
--require @babel/register | ||
--require ts-node-test-register |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"extends": "../tsconfig.json", | ||
"compilerOptions": { | ||
"declaration": false, | ||
"noEmit": true, | ||
"allowJs": true | ||
}, | ||
"include": [ | ||
"../src/**/*", | ||
"./**/*" | ||
] | ||
} |
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"compilerOptions": { | ||
/* Basic Options */ | ||
"module": "commonjs", | ||
"moduleResolution": "node", | ||
"newLine": "LF", | ||
"outDir": "./lib/", | ||
"target": "es5", | ||
"sourceMap": true, | ||
"declaration": true, | ||
"jsx": "preserve", | ||
"lib": [ | ||
"es2017", | ||
"dom" | ||
], | ||
"esModuleInterop": true, | ||
/* Strict Type-Checking Options */ | ||
"strict": true, | ||
/* Additional Checks */ | ||
"noUnusedLocals": true, | ||
/* Report errors on unused locals. */ | ||
"noUnusedParameters": true, | ||
/* Report errors on unused parameters. */ | ||
"noImplicitReturns": true, | ||
/* Report error when not all code paths in function return a value. */ | ||
"noFallthroughCasesInSwitch": true | ||
/* Report errors for fallthrough cases in switch statement. */ | ||
}, | ||
"include": [ | ||
"src/**/*" | ||
], | ||
"exclude": [ | ||
".git", | ||
"node_modules" | ||
] | ||
} |
Oops, something went wrong.