diff --git a/package.json b/package.json index 9699eba..b9ceabf 100644 --- a/package.json +++ b/package.json @@ -1,27 +1,23 @@ { "name": "react-sizeme", - "version": "2.3.6", - "description": "Make your React Components aware of their dimensions and position.", + "version": "2.4.0", + "description": + "Make your React Components aware of their dimensions and position.", "license": "MIT", "main": "dist/react-sizeme.js", - "files": [ - "*.js", - "*.md", - "dist" - ], + "files": ["*.js", "*.md", "dist"], "repository": { "type": "git", "url": "https://github.com/ctrlplusb/react-sizeme.git" }, - "keywords": [ - "library" - ], + "keywords": ["library"], "homepage": "https://github.com/ctrlplusb/react-sizeme#readme", "author": "Sean Matheson ", "scripts": { "build": "node ./tools/scripts/build.js", "clean": "rimraf ./dist && rimraf ./coverage", - "example:web": "echo 'Make sure to `cd example/web && yarn install`' && cd example/web && yarn run start", + "example:web": + "echo 'Make sure to `cd example/web && yarn install`' && cd example/web && yarn run start", "lint": "eslint src", "precommit": "lint-staged && npm run test", "prepublish": "npm run build", @@ -84,15 +80,9 @@ "rollup-plugin-uglify": "^3.0.0" }, "jest": { - "collectCoverageFrom": [ - "src/**/*.{js,jsx}" - ], - "snapshotSerializers": [ - "/node_modules/enzyme-to-json/serializer" - ], - "testPathIgnorePatterns": [ - "/(coverage|dist|node_modules|tools)/" - ] + "collectCoverageFrom": ["src/**/*.{js,jsx}"], + "snapshotSerializers": ["/node_modules/enzyme-to-json/serializer"], + "testPathIgnorePatterns": ["/(coverage|dist|node_modules|tools)/"] }, "eslintConfig": { "root": true, @@ -103,10 +93,7 @@ "node": true, "jest": true }, - "extends": [ - "airbnb", - "prettier" - ], + "extends": ["airbnb", "prettier"], "rules": { "camelcase": 0, "import/prefer-default-export": 0, @@ -115,29 +102,19 @@ "no-underscore-dangle": 0, "react/no-array-index-key": 0, "react/react-in-jsx-scope": 0, - "semi": [ - 2, - "never" - ], + "semi": [2, "never"], "react/forbid-prop-types": 0, "react/jsx-filename-extension": 0, "react/sort-comp": 0 } }, - "eslintIgnore": [ - "node_modules/", - "dist/", - "coverage/" - ], + "eslintIgnore": ["node_modules/", "dist/", "coverage/"], "prettier": { "semi": false, "singleQuote": true, "trailingComma": "all" }, "lint-staged": { - "*.js": [ - "prettier --write \"src/**/*.js\"", - "git add" - ] + "*.js": ["prettier --write \"src/**/*.js\"", "git add"] } }