add prettier
This commit is contained in:
parent
e644bc5d89
commit
6f93834990
1 changed files with 12 additions and 1 deletions
|
@ -4,7 +4,8 @@
|
||||||
"description": "LBRY UI",
|
"description": "LBRY UI",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1",
|
"test": "echo \"Error: no test specified\" && exit 1",
|
||||||
"dev": "webpack-dev-server --devtool eval --progress --colors --inline"
|
"dev": "webpack-dev-server --devtool eval --progress --colors --inline",
|
||||||
|
"precommit": "lint-staged"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"lbry"
|
"lbry"
|
||||||
|
@ -52,11 +53,21 @@
|
||||||
"eslint-plugin-import": "^2.2.0",
|
"eslint-plugin-import": "^2.2.0",
|
||||||
"eslint-plugin-jsx-a11y": "^2.2.3",
|
"eslint-plugin-jsx-a11y": "^2.2.3",
|
||||||
"eslint-plugin-react": "^6.7.1",
|
"eslint-plugin-react": "^6.7.1",
|
||||||
|
"husky": "^0.13.4",
|
||||||
"json-loader": "^0.5.4",
|
"json-loader": "^0.5.4",
|
||||||
|
"lint-staged": "^3.6.0",
|
||||||
"node-sass": "^3.13.0",
|
"node-sass": "^3.13.0",
|
||||||
|
"prettier": "^1.4.2",
|
||||||
"webpack": "^1.13.3",
|
"webpack": "^1.13.3",
|
||||||
"webpack-dev-server": "^2.4.4",
|
"webpack-dev-server": "^2.4.4",
|
||||||
"webpack-notifier": "^1.5.0",
|
"webpack-notifier": "^1.5.0",
|
||||||
"webpack-target-electron-renderer": "^0.4.0"
|
"webpack-target-electron-renderer": "^0.4.0"
|
||||||
|
},
|
||||||
|
"lint-staged": {
|
||||||
|
"gitDir": "../",
|
||||||
|
"js/**/*.{jsx,js}": [
|
||||||
|
"prettier --use-tabs --single-quote --write",
|
||||||
|
"git add"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue