mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-19 22:46:31 +00:00
add husky, lint-staged, sortpack
This commit is contained in:
parent
12624813b4
commit
c2bfe73ba4
2 changed files with 821 additions and 25 deletions
46
ui/package.json
vendored
46
ui/package.json
vendored
|
@ -1,20 +1,16 @@
|
|||
{
|
||||
"name": "lemmy",
|
||||
"version": "1.0.0",
|
||||
"description": "A simple UI for lemmy",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"start": "node fuse dev",
|
||||
"build": "node fuse prod",
|
||||
"lint": "eslint --report-unused-disable-directives --ext .js,.ts,.tsx src"
|
||||
},
|
||||
"keywords": [],
|
||||
"version": "1.0.0",
|
||||
"author": "Dessalines",
|
||||
"license": "GPL-2.0-or-later",
|
||||
"engines": {
|
||||
"node": ">=8.9.0"
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"build": "node fuse prod",
|
||||
"lint": "eslint --report-unused-disable-directives --ext .js,.ts,.tsx src",
|
||||
"start": "node fuse dev"
|
||||
},
|
||||
"engineStrict": true,
|
||||
"keywords": [],
|
||||
"dependencies": {
|
||||
"@types/autosize": "^3.0.6",
|
||||
"@types/js-cookie": "^2.2.1",
|
||||
|
@ -48,8 +44,36 @@
|
|||
"eslint-plugin-inferno": "^7.14.3",
|
||||
"eslint-plugin-jane": "^7.0.0",
|
||||
"fuse-box": "^3.1.3",
|
||||
"husky": "^3.0.9",
|
||||
"lint-staged": "^9.4.2",
|
||||
"sortpack": "^2.0.1",
|
||||
"ts-transform-classcat": "^0.0.2",
|
||||
"ts-transform-inferno": "^4.0.2",
|
||||
"typescript": "^3.5.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=8.9.0"
|
||||
},
|
||||
"engineStrict": true,
|
||||
"husky": {
|
||||
"hooks": {
|
||||
"pre-commit": "lint-staged",
|
||||
"pre-push": "npm run lint"
|
||||
}
|
||||
},
|
||||
"lint-staged": {
|
||||
"*.js": [
|
||||
"npm run lint"
|
||||
],
|
||||
"*.ts": [
|
||||
"npm run lint"
|
||||
],
|
||||
"*.tsx": [
|
||||
"npm run lint"
|
||||
],
|
||||
"package.json": [
|
||||
"sortpack",
|
||||
"git add"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
800
ui/yarn.lock
vendored
800
ui/yarn.lock
vendored
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue