Skip to content

Commit

Permalink
refactor(deps): use textlint-scripts (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
azu authored Jul 30, 2019
1 parent a6dd6c2 commit 2c3602f
Show file tree
Hide file tree
Showing 4 changed files with 1,622 additions and 1,256 deletions.
13 changes: 0 additions & 13 deletions .babelrc

This file was deleted.

70 changes: 34 additions & 36 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,33 @@
"name": "textlint-rule-no-dead-link",
"version": "4.4.3",
"description": "A textlint rule to check if all links are alive",
"engines": {
"node": ">=4"
},
"main": "lib/no-dead-link.js",
"scripts": {
"build": "babel src -d lib --source-maps",
"prepublish": "npm run --if-present build",
"test": "npm-run-all lint mocha",
"lint": "eslint --fix src test",
"mocha": "mocha",
"prettier": "prettier --write \"**/*.{js,json,md}\""
},
"files": [
"lib",
"src"
],
"keywords": [
"textlint",
"rule"
"rule",
"textlint"
],
"author": "nodaguti",
"license": "MIT",
"bugs": "https://github.com/textlint-rule/textlint-rule-no-dead-link/issues",
"homepage": "https://github.com/textlint-rule/textlint-rule-no-dead-link",
"bugs": "https://github.com/textlint-rule/textlint-rule-no-dead-link/issues",
"repository": "textlint-rule/textlint-rule-no-dead-link",
"dependencies": {
"fs-extra": "^8.0.1",
"get-url-origin": "^1.0.1",
"minimatch": "^3.0.4",
"node-fetch": "^2.6.0",
"textlint-rule-helper": "^2.1.1"
"license": "MIT",
"author": "nodaguti",
"files": [
"lib",
"src"
],
"main": "lib/no-dead-link.js",
"scripts": {
"build": "textlint-scripts build",
"lint": "eslint --fix src test",
"unittest": "textlint-scripts test",
"prettier": "prettier --write \"**/*.{js,json,md}\"",
"prepublish": "npm run --if-present build",
"test": "npm-run-all lint unittest",
"watch": "textlint-scripts build --watch"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.js": [
Expand All @@ -44,26 +40,28 @@
"git add"
]
},
"dependencies": {
"fs-extra": "^8.0.1",
"get-url-origin": "^1.0.1",
"minimatch": "^3.0.4",
"node-fetch": "^2.6.0",
"textlint-rule-helper": "^2.1.1"
},
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-core": "^6.26.3",
"babel-preset-env": "^1.7.0",
"eslint": "^4.13.1",
"eslint-config-airbnb-base": "^12.1.0",
"eslint-config-prettier": "^2.9.0",
"eslint-plugin-immutable": "^1.0.0",
"eslint-plugin-import": "^2.8.0",
"husky": "^2.4.1",
"lint-staged": "^8.2.1",
"mocha": "^6.1.4",
"npm-run-all": "^4.1.5",
"prettier": "^1.18.2",
"textlint": "^11.2.5",
"textlint-tester": "^5.1.6"
"textlint-scripts": "^3.0.0-beta.1",
"textlint-tester": "^5.1.9"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
"engines": {
"node": ">=4"
}
}
2 changes: 1 addition & 1 deletion test/mocha.opts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
--require babel-core/register
--require textlint-scripts/register
--timeout 20000
Loading

0 comments on commit 2c3602f

Please sign in to comment.