|
1 | 1 | { |
2 | 2 | "name": "react-async-component", |
3 | | - "version": "1.0.0-beta.3", |
4 | | - "description": "Create Components that resolve asynchronously, with support for server side rendering and code splitting.", |
| 3 | + "version": "1.0.0", |
| 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 | | - "*.js", |
9 | | - "*.md", |
10 | | - "umd", |
11 | | - "commonjs" |
12 | | - ], |
| 8 | + "files": ["*.js", "*.md", "umd", "commonjs"], |
13 | 9 | "typings": "./index.d.ts", |
14 | 10 | "repository": { |
15 | 11 | "type": "git", |
|
28 | 24 | "precommit": "lint-staged && npm run test", |
29 | 25 | "build": "babel-node ./tools/scripts/build.js", |
30 | 26 | "check": "npm run lint && npm run test", |
31 | | - "clean": "rimraf ./commonjs && rimraf ./umd && rimraf ./coverage && rimraf ./flow-coverage && rimraf ./umd", |
| 27 | + "clean": |
| 28 | + "rimraf ./commonjs && rimraf ./umd && rimraf ./coverage && rimraf ./flow-coverage && rimraf ./umd", |
32 | 29 | "lint": "eslint src,tools", |
33 | 30 | "prepublish": "npm run build", |
34 | 31 | "test": "jest", |
|
85 | 82 | "webpack-hot-middleware": "^2.19.1" |
86 | 83 | }, |
87 | 84 | "jest": { |
88 | | - "collectCoverageFrom": [ |
89 | | - "src/**/*.{js,jsx}" |
90 | | - ], |
91 | | - "snapshotSerializers": [ |
92 | | - "<rootDir>/node_modules/enzyme-to-json/serializer" |
93 | | - ], |
| 85 | + "collectCoverageFrom": ["src/**/*.{js,jsx}"], |
| 86 | + "snapshotSerializers": ["<rootDir>/node_modules/enzyme-to-json/serializer"], |
94 | 87 | "testPathIgnorePatterns": [ |
95 | 88 | "<rootDir>/(commonjs|coverage|flow-typed|node_modules|tools|umd)/" |
96 | 89 | ] |
97 | 90 | }, |
98 | 91 | "lint-staged": { |
99 | | - "src/**/*.js": [ |
100 | | - "prettier --write", |
101 | | - "git add" |
102 | | - ] |
| 92 | + "src/**/*.js": ["prettier --write", "git add"] |
103 | 93 | }, |
104 | 94 | "eslintConfig": { |
105 | 95 | "root": true, |
|
113 | 103 | "extends": "airbnb", |
114 | 104 | "rules": { |
115 | 105 | "array-callback-return": 0, |
116 | | - "arrow-parens": [ |
117 | | - "error", |
118 | | - "as-needed" |
119 | | - ], |
| 106 | + "arrow-parens": ["error", "as-needed"], |
120 | 107 | "camelcase": 0, |
121 | 108 | "import/prefer-default-export": 0, |
122 | 109 | "import/no-extraneous-dependencies": 0, |
|
127 | 114 | "no-nested-ternary": 0, |
128 | 115 | "react/no-array-index-key": 0, |
129 | 116 | "react/react-in-jsx-scope": 0, |
130 | | - "semi": [ |
131 | | - 2, |
132 | | - "never" |
133 | | - ], |
| 117 | + "semi": [2, "never"], |
134 | 118 | "react/forbid-prop-types": 0, |
135 | 119 | "react/jsx-filename-extension": 0, |
136 | 120 | "react/sort-comp": 0 |
|
0 commit comments