summaryrefslogtreecommitdiffstats
path: root/ui/package.json
diff options
context:
space:
mode:
authorDessalines <tyhou13@gmx.com>2019-10-18 16:49:12 -0700
committerDessalines <tyhou13@gmx.com>2019-10-18 16:49:12 -0700
commit412d447de2c5bcf55b4cf2d34714b8b43c28af31 (patch)
treec246dd48188d29ad8430fa87d8f4b38bee869eb2 /ui/package.json
parent344cd58f3299ecc3d2b335035bf7851d5288eb01 (diff)
parent7836e29c379a15eab9a11ea329546119d7c20178 (diff)
Merge branch 'chore/eslint' of https://github.com/zacanger/lemmy into zacanger-chore/eslint
Diffstat (limited to 'ui/package.json')
-rw-r--r--ui/package.json46
1 files changed, 37 insertions, 9 deletions
diff --git a/ui/package.json b/ui/package.json
index 3537a2ac..df5e0757 100644
--- a/ui/package.json
+++ b/ui/package.json
@@ -1,19 +1,16 @@
{
"name": "lemmy",
- "version": "1.0.0",
"description": "A simple UI for lemmy",
+ "version": "1.0.0",
+ "author": "Dessalines",
+ "license": "GPL-2.0-or-later",
"main": "index.js",
"scripts": {
- "start": "node fuse dev",
- "build": "node fuse prod"
+ "build": "node fuse prod",
+ "lint": "eslint --report-unused-disable-directives --ext .js,.ts,.tsx src",
+ "start": "node fuse dev"
},
"keywords": [],
- "author": "Dessalines",
- "license": "GPL-2.0-or-later",
- "engines": {
- "node": ">=8.9.0"
- },
- "engineStrict": true,
"dependencies": {
"@types/autosize": "^3.0.6",
"@types/js-cookie": "^2.2.1",
@@ -43,9 +40,40 @@
},
"devDependencies": {
"@types/i18next": "^12.1.0",
+ "eslint": "^6.5.1",
+ "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"
+ ]
}
}