UNPKG

react-media-hook

Version:
91 lines (90 loc) 2.24 kB
{ "name": "react-media-hook", "version": "0.5.1", "main": "index.js", "types": "index.d.ts", "description": "React Hook for media query", "scripts": { "flow": "flow", "typescript": "tsc -p tsconfig.json --noEmit", "size": "size-limit", "lint": "eslint '**/*.{js,jsx}' --quiet", "run:example": "parcel ./example/index.html", "prepublish": "npm run flow && npm run lint && npm run size" }, "size-limit": [ { "ignore": [ "react" ], "limit": "442 B", "name": "useMedia", "import": { "./index.js": "{ useMedia }" } }, { "ignore": [ "react" ], "limit": "442 B", "name": "useMediaPredicate", "import": { "./index.js": "{ useMediaPredicate }" } } ], "eslintConfig": { "extends": [ "@brainhubinc/eslint-config/lib", "@brainhubinc/eslint-config/react-hooks" ] }, "files": [ "index.js", "index.js.flow", "index.d.ts" ], "repository": { "type": "git", "url": "git+ssh://git@github.com/brainhubinc/react-media-hook.git" }, "keywords": [ "react", "hook", "media" ], "author": "Ilya Lesik", "license": "MIT", "bugs": { "url": "https://github.com/brainhubinc/react-media-hook/issues" }, "homepage": "https://github.com/brainhubinc/react-media-hook#readme", "peerDependencies": { "react": ">=16.8.0" }, "devDependencies": { "@babel/core": "^7.2.2", "@babel/preset-env": "^7.2.0", "@babel/preset-react": "^7.0.0", "@brainhubinc/eslint-config": "^0.0.1", "@size-limit/file": "^11.2.0", "@size-limit/webpack": "^11.2.0", "eslint": "^5.16.0", "eslint-config-standard": "^12.0.0", "eslint-plugin-es5": "^1.4.1", "eslint-plugin-import": "^2.17.3", "eslint-plugin-import-helpers": "^0.1.4", "eslint-plugin-node": "^9.1.0", "eslint-plugin-promise": "^4.1.1", "eslint-plugin-react-hooks": "^1.6.0", "eslint-plugin-security": "^1.4.0", "eslint-plugin-standard": "^4.0.0", "flow-bin": "^0.89.0", "parcel-bundler": "^1.12.3", "react": "^16.8.6", "react-dom": "^16.8.6", "size-limit": "^11.2.0", "typescript": "^5.8.3" } }