|
1 | 1 | { |
2 | 2 | "name": "react-sizeme", |
3 | | - "version": "2.4.2", |
4 | | - "description": "Make your React Components aware of their dimensions and position.", |
| 3 | + "version": "2.4.3", |
| 4 | + "description": |
| 5 | + "Make your React Components aware of their dimensions and position.", |
5 | 6 | "license": "MIT", |
6 | 7 | "main": "dist/react-sizeme.js", |
7 | | - "files": [ |
8 | | - "*.js", |
9 | | - "*.md", |
10 | | - "dist" |
11 | | - ], |
| 8 | + "files": ["*.js", "*.md", "dist"], |
12 | 9 | "repository": { |
13 | 10 | "type": "git", |
14 | 11 | "url": "https://github.com/ctrlplusb/react-sizeme.git" |
15 | 12 | }, |
16 | | - "keywords": [ |
17 | | - "library" |
18 | | - ], |
| 13 | + "keywords": ["library"], |
19 | 14 | "homepage": "https://github.com/ctrlplusb/react-sizeme#readme", |
20 | 15 | "author": "Sean Matheson <[email protected]>", |
21 | 16 | "scripts": { |
22 | 17 | "build": "node ./tools/scripts/build.js", |
23 | 18 | "clean": "rimraf ./dist && rimraf ./coverage", |
24 | | - "example:web": "echo 'Make sure to `cd example/web && yarn install`' && cd example/web && yarn run start", |
| 19 | + "example:web": |
| 20 | + "echo 'Make sure to `cd example/web && yarn install`' && cd example/web && yarn run start", |
25 | 21 | "lint": "eslint src", |
26 | 22 | "precommit": "lint-staged && npm run test", |
27 | 23 | "prepublish": "npm run build", |
|
84 | 80 | "rollup-plugin-uglify": "^3.0.0" |
85 | 81 | }, |
86 | 82 | "jest": { |
87 | | - "collectCoverageFrom": [ |
88 | | - "src/**/*.{js,jsx}" |
89 | | - ], |
90 | | - "snapshotSerializers": [ |
91 | | - "<rootDir>/node_modules/enzyme-to-json/serializer" |
92 | | - ], |
93 | | - "testPathIgnorePatterns": [ |
94 | | - "<rootDir>/(coverage|dist|node_modules|tools)/" |
95 | | - ] |
| 83 | + "collectCoverageFrom": ["src/**/*.{js,jsx}"], |
| 84 | + "snapshotSerializers": ["<rootDir>/node_modules/enzyme-to-json/serializer"], |
| 85 | + "testPathIgnorePatterns": ["<rootDir>/(coverage|dist|node_modules|tools)/"] |
96 | 86 | }, |
97 | 87 | "eslintConfig": { |
98 | 88 | "root": true, |
|
103 | 93 | "node": true, |
104 | 94 | "jest": true |
105 | 95 | }, |
106 | | - "extends": [ |
107 | | - "airbnb", |
108 | | - "prettier" |
109 | | - ], |
| 96 | + "extends": ["airbnb", "prettier"], |
110 | 97 | "rules": { |
111 | 98 | "camelcase": 0, |
112 | 99 | "import/prefer-default-export": 0, |
|
115 | 102 | "no-underscore-dangle": 0, |
116 | 103 | "react/no-array-index-key": 0, |
117 | 104 | "react/react-in-jsx-scope": 0, |
118 | | - "semi": [ |
119 | | - 2, |
120 | | - "never" |
121 | | - ], |
| 105 | + "semi": [2, "never"], |
122 | 106 | "react/forbid-prop-types": 0, |
123 | 107 | "react/jsx-filename-extension": 0, |
124 | 108 | "react/sort-comp": 0 |
125 | 109 | } |
126 | 110 | }, |
127 | | - "eslintIgnore": [ |
128 | | - "node_modules/", |
129 | | - "dist/", |
130 | | - "coverage/" |
131 | | - ], |
| 111 | + "eslintIgnore": ["node_modules/", "dist/", "coverage/"], |
132 | 112 | "prettier": { |
133 | 113 | "semi": false, |
134 | 114 | "singleQuote": true, |
135 | 115 | "trailingComma": "all" |
136 | 116 | }, |
137 | 117 | "lint-staged": { |
138 | | - "*.js": [ |
139 | | - "prettier --write \"src/**/*.js\"", |
140 | | - "git add" |
141 | | - ] |
| 118 | + "*.js": ["prettier --write \"src/**/*.js\"", "git add"] |
142 | 119 | } |
143 | 120 | } |
0 commit comments