|
1 | 1 | {
|
2 | 2 | "name": "react-async-component",
|
3 | 3 | "version": "1.0.2",
|
4 |
| - "description": |
5 |
| - "Create Components that resolve asynchronously, with support for server side rendering and code splitting.", |
| 4 | + "description": "Create Components that resolve asynchronously, with support for server side rendering and code splitting.", |
6 | 5 | "license": "MIT",
|
7 | 6 | "main": "commonjs/index.js",
|
8 |
| - "files": ["index.d.ts", "*.js", "*.md", "umd", "commonjs"], |
| 7 | + "files": [ |
| 8 | + "index.d.ts", |
| 9 | + "*.js", |
| 10 | + "*.md", |
| 11 | + "umd", |
| 12 | + "commonjs" |
| 13 | + ], |
9 | 14 | "typings": "./index.d.ts",
|
10 | 15 | "repository": {
|
11 | 16 | "type": "git",
|
|
24 | 29 | "precommit": "lint-staged && npm run test",
|
25 | 30 | "build": "babel-node ./tools/scripts/build.js",
|
26 | 31 | "check": "npm run lint && npm run test",
|
27 |
| - "clean": |
28 |
| - "rimraf ./commonjs && rimraf ./umd && rimraf ./coverage && rimraf ./flow-coverage && rimraf ./umd", |
| 32 | + "clean": "rimraf ./commonjs && rimraf ./umd && rimraf ./coverage && rimraf ./flow-coverage && rimraf ./umd", |
29 | 33 | "lint": "eslint src,tools",
|
30 | 34 | "prepublish": "npm run build",
|
31 | 35 | "test": "jest",
|
|
74 | 78 | "raf": "^3.4.0",
|
75 | 79 | "ramda": "^0.25.0",
|
76 | 80 | "react": "^16.0.0",
|
77 |
| - "react-async-bootstrapper": "^1.1.1", |
| 81 | + "react-async-bootstrapper": "^1.1.2", |
78 | 82 | "react-dom": "^16.0.0",
|
79 | 83 | "react-test-renderer": "^16.0.0",
|
80 | 84 | "readline-sync": "1.4.7",
|
|
85 | 89 | "webpack-hot-middleware": "^2.19.1"
|
86 | 90 | },
|
87 | 91 | "jest": {
|
88 |
| - "collectCoverageFrom": ["src/**/*.{js,jsx}"], |
89 |
| - "setupFiles": ["raf/polyfill", "<rootDir>/tools/tests/setup.js"], |
90 |
| - "snapshotSerializers": ["<rootDir>/node_modules/enzyme-to-json/serializer"], |
| 92 | + "collectCoverageFrom": [ |
| 93 | + "src/**/*.{js,jsx}" |
| 94 | + ], |
| 95 | + "setupFiles": [ |
| 96 | + "raf/polyfill", |
| 97 | + "<rootDir>/tools/tests/setup.js" |
| 98 | + ], |
| 99 | + "snapshotSerializers": [ |
| 100 | + "<rootDir>/node_modules/enzyme-to-json/serializer" |
| 101 | + ], |
91 | 102 | "testPathIgnorePatterns": [
|
92 | 103 | "<rootDir>/(commonjs|coverage|flow-typed|node_modules|tools|umd)/"
|
93 | 104 | ]
|
94 | 105 | },
|
95 | 106 | "lint-staged": {
|
96 |
| - "src/**/*.js": ["prettier --write", "git add"] |
| 107 | + "src/**/*.js": [ |
| 108 | + "prettier --write", |
| 109 | + "git add" |
| 110 | + ] |
97 | 111 | },
|
98 | 112 | "eslintConfig": {
|
99 | 113 | "root": true,
|
|
104 | 118 | "node": true,
|
105 | 119 | "jest": true
|
106 | 120 | },
|
107 |
| - "extends": ["airbnb", "prettier"], |
| 121 | + "extends": [ |
| 122 | + "airbnb", |
| 123 | + "prettier" |
| 124 | + ], |
108 | 125 | "rules": {
|
109 | 126 | "camelcase": 0,
|
110 | 127 | "import/prefer-default-export": 0,
|
|
113 | 130 | "no-underscore-dangle": 0,
|
114 | 131 | "react/no-array-index-key": 0,
|
115 | 132 | "react/react-in-jsx-scope": 0,
|
116 |
| - "semi": [2, "never"], |
| 133 | + "semi": [ |
| 134 | + 2, |
| 135 | + "never" |
| 136 | + ], |
117 | 137 | "react/forbid-prop-types": 0,
|
118 | 138 | "react/jsx-filename-extension": 0,
|
119 | 139 | "react/sort-comp": 0
|
|
0 commit comments