docbrown/package.json
Nick Taylor d67c2437bc Dx/add prettier code (#188)
* Added prettier for front-end code formatting.

* Prettier runs on JSX too now

Modified supported extensions for running prettier.

* Added some documentation in the README about prettier, husky and lint-staged.

* package-lock.json updated.

* Keep lint-staged package-manager agnostic (#196)

* Remove code-breaking comma
2018-04-09 14:05:18 -07:00

79 lines
2.2 KiB
JSON

{
"name": "Dev.to",
"version": "1.0.0",
"description": "Where programmers share ideas and help each other grow",
"main": "index.js",
"directories": {
"doc": "docs",
"lib": "lib",
"test": "test"
},
"scripts": {
"test": "jest app/javascript/ --coverage",
"test:watch": "jest app/javascript/ --coverage --watch",
"storybook": "start-storybook -p 6006 -c app/javascript/.storybook",
"build-storybook": "build-storybook -c app/javascript/.storybook",
"precommit": "lint-staged"
},
"lint-staged": {
"*.{js,jsx}": [
"prettier --write",
"eslint --fix",
"git add"
],
"*.json": [
"prettier --write",
"git add"
]
},
"prettier": {
"singleQuote": true,
"trailingComma": "all",
"printWidth": 80
},
"repository": {
"type": "git",
"url": "git+https://github.com/thepracticaldev/dev.to_private.git"
},
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/thepracticaldev/dev.to_private/issues"
},
"homepage": "https://github.com/thepracticaldev/dev.to_private#readme",
"devDependencies": {
"@storybook/addon-actions": "^3.3.15",
"@storybook/addon-links": "^3.3.15",
"@storybook/addons": "^3.3.15",
"@storybook/react": "^3.3.15",
"babel-core": "^6.26.0",
"babel-jest": "^22.1.0",
"babel-preset-env": "^1.6.1",
"babel-preset-preact": "^1.1.0",
"eslint": "^4.9.0",
"eslint-config-airbnb": "^16.1.0",
"eslint-config-airbnb-base": "^12.0.0",
"eslint-config-prettier": "^2.9.0",
"eslint-plugin-ignore-erb": "^0.1.1",
"eslint-plugin-import": "^2.10.0",
"eslint-plugin-jsx-a11y": "^6.0.2",
"eslint-plugin-react": "^7.4.0",
"husky": "^0.14.3",
"jest": "^22.1.2",
"jest-fetch-mock": "^1.4.0",
"lint-staged": "^7.0.2",
"preact-compat": "^3.18.0",
"preact-render-spy": "^1.2.1",
"preact-render-to-json": "^3.6.6",
"prettier": "^1.11.1",
"webpack-dev-server": "^2.9.1"
},
"dependencies": {
"@rails/webpacker": "^3.0.1",
"babel-plugin-transform-react-jsx": "^6.24.1",
"preact": "^8.2.5",
"prop-types": "^15.6.0",
"pusher-js": "^4.2.2",
"sendbird": "^3.0.52"
}
}