Files
RSSHub/package.json
T
さくら 49de384d2e feat: add prettier and commit hooks (#144)
* feat: add prettier and commit hooks

* style(*): prettier format

* fix(eslint): parsing error: Unexpected token ...

* style(eslint): eslint --fix

* style(bilibili): fix `no-undef` and `no-unused-vars`

* style(jiandan): fix eqeqeq

* style(pixiv): disable `no-constant-condition` rule for eslint

* fix(pixiv): use template string

* style(toutiao): remove unused variables

* style(weibo): use `forEach` instead of `map`

The array has no return value, you should use `forEach` instead of `map`

* chore(hooks): add eslint hooks

* chore(hooks): switch from husky to yorkie

* style(zhihu): prettier format

* style(docs): fix vuepress custom container

https://vuepress.vuejs.org/guide/markdown.html#custom-containers

* chore(prettier): set a more reasonable `printWidth` value

* style(*): better prettier format
2018-05-17 10:52:29 +08:00

70 lines
1.5 KiB
JSON

{
"name": "rsshub",
"version": "0.0.1",
"description": "Make RSS Great Again!",
"main": "index.js",
"scripts": {
"start": "node index.js",
"docs:dev": "vuepress dev docs",
"docs:build": "vuepress build docs",
"format": "prettier \"**/*.{js,json,md}\" --write"
},
"gitHooks": {
"pre-commit": "lint-staged"
},
"lint-staged": {
"*.js": [
"eslint --fix",
"git add"
],
"*.{js,json,md}": [
"prettier --write",
"git add"
]
},
"repository": {
"type": "git",
"url": "git+https://github.com/DIYgod/RSSHub.git"
},
"keywords": [
"RSS"
],
"author": "DIYgod",
"license": "MIT",
"bugs": {
"url": "https://github.com/DIYgod/RSSHub/issues"
},
"homepage": "https://github.com/DIYgod/RSSHub#readme",
"devDependencies": {
"eslint": "4.19.1",
"eslint-config-prettier": "^2.9.0",
"eslint-plugin-prettier": "^2.6.0",
"lint-staged": "^7.1.0",
"prettier": "^1.12.1",
"vuepress": "0.8.4",
"yorkie": "^1.0.3"
},
"dependencies": {
"art-template": "4.12.2",
"axios": "0.18.0",
"cheerio": "1.0.0-rc.2",
"co-redis": "2.1.1",
"crypto": "1.0.1",
"form-data": "^2.3.2",
"googleapis": "30.0.0",
"json-bigint": "0.2.3",
"koa": "2.5.1",
"koa-favicon": "2.0.1",
"koa-router": "7.4.0",
"lru-cache": "4.1.3",
"path-to-regexp": "2.2.1",
"readall": "1.0.0",
"redis": "2.8.0",
"twit": "2.2.9",
"winston": "3.0.0-rc3"
},
"engines": {
"node": ">=10.0.0"
}
}