|
1 | 1 | { |
2 | 2 | "name": "react-async-component", |
3 | | - "version": "1.0.2", |
4 | | - "description": "Create Components that resolve asynchronously, with support for server side rendering and code splitting.", |
| 3 | + "version": "2.0.0-alpha", |
| 4 | + "description": |
| 5 | + "Create Components that resolve asynchronously, with support for server side rendering and code splitting.", |
5 | 6 | "license": "MIT", |
6 | 7 | "main": "commonjs/index.js", |
7 | | - "files": [ |
8 | | - "index.d.ts", |
9 | | - "*.js", |
10 | | - "*.md", |
11 | | - "dist" |
12 | | - ], |
| 8 | + "files": ["index.d.ts", "*.js", "*.md", "dist"], |
13 | 9 | "typings": "./index.d.ts", |
14 | 10 | "repository": { |
15 | 11 | "type": "git", |
|
26 | 22 | ], |
27 | 23 | "scripts": { |
28 | 24 | "build": "node ./tools/scripts/build.js", |
29 | | - "clean": "rimraf ./commonjs && rimraf ./umd && rimraf ./coverage && rimraf ./umd", |
| 25 | + "clean": |
| 26 | + "rimraf ./commonjs && rimraf ./umd && rimraf ./coverage && rimraf ./umd", |
30 | 27 | "lint": "eslint src", |
31 | 28 | "precommit": "lint-staged && npm run test", |
32 | 29 | "prepublish": "npm run build", |
|
87 | 84 | "rollup-plugin-uglify": "^3.0.0" |
88 | 85 | }, |
89 | 86 | "jest": { |
90 | | - "collectCoverageFrom": [ |
91 | | - "src/**/*.{js,jsx}" |
92 | | - ], |
93 | | - "setupFiles": [ |
94 | | - "raf/polyfill", |
95 | | - "<rootDir>/tools/tests/setup.js" |
96 | | - ], |
97 | | - "snapshotSerializers": [ |
98 | | - "<rootDir>/node_modules/enzyme-to-json/serializer" |
99 | | - ], |
100 | | - "testPathIgnorePatterns": [ |
101 | | - "<rootDir>/(coverage|dist|node_modules|tools)/" |
102 | | - ] |
| 87 | + "collectCoverageFrom": ["src/**/*.{js,jsx}"], |
| 88 | + "setupFiles": ["raf/polyfill", "<rootDir>/tools/tests/setup.js"], |
| 89 | + "snapshotSerializers": ["<rootDir>/node_modules/enzyme-to-json/serializer"], |
| 90 | + "testPathIgnorePatterns": ["<rootDir>/(coverage|dist|node_modules|tools)/"] |
103 | 91 | }, |
104 | 92 | "eslintConfig": { |
105 | 93 | "root": true, |
|
110 | 98 | "node": true, |
111 | 99 | "jest": true |
112 | 100 | }, |
113 | | - "extends": [ |
114 | | - "airbnb", |
115 | | - "prettier" |
116 | | - ], |
| 101 | + "extends": ["airbnb", "prettier"], |
117 | 102 | "rules": { |
118 | 103 | "camelcase": 0, |
119 | 104 | "import/prefer-default-export": 0, |
|
122 | 107 | "no-underscore-dangle": 0, |
123 | 108 | "react/no-array-index-key": 0, |
124 | 109 | "react/react-in-jsx-scope": 0, |
125 | | - "semi": [ |
126 | | - 2, |
127 | | - "never" |
128 | | - ], |
| 110 | + "semi": [2, "never"], |
129 | 111 | "react/forbid-prop-types": 0, |
130 | 112 | "react/jsx-filename-extension": 0, |
131 | 113 | "react/sort-comp": 0 |
132 | 114 | } |
133 | 115 | }, |
134 | | - "eslintIgnore": [ |
135 | | - "node_modules/", |
136 | | - "coverage/", |
137 | | - "dist/" |
138 | | - ], |
| 116 | + "eslintIgnore": ["node_modules/", "coverage/", "dist/"], |
139 | 117 | "prettier": { |
140 | 118 | "semi": false, |
141 | 119 | "singleQuote": true, |
142 | 120 | "trailingComma": "all" |
143 | 121 | }, |
144 | 122 | "lint-staged": { |
145 | | - "*.js": [ |
146 | | - "prettier --write \"src/**/*.js\"", |
147 | | - "git add" |
148 | | - ] |
| 123 | + "*.js": ["prettier --write \"src/**/*.js\"", "git add"] |
149 | 124 | } |
150 | 125 | } |
0 commit comments