|
1 | 1 | { |
2 | 2 | "name": "react-tree-walker", |
3 | | - "version": "2.1.3", |
4 | | - "description": "Walk a React element tree, executing a provided function against each node.", |
| 3 | + "version": "2.2.0", |
| 4 | + "description": |
| 5 | + "Walk a React element tree, executing a provided function against each node.", |
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 | "repository": { |
14 | 10 | "type": "git", |
15 | 11 | "url": "https://github.com/ctrlplusb/react-tree-walker.git" |
16 | 12 | }, |
17 | 13 | "homepage": "https://github.com/ctrlplusb/react-tree-walker#readme", |
18 | 14 | "author": "Sean Matheson <[email protected]>", |
19 | | - "keywords": [ |
20 | | - "react", |
21 | | - "react-element", |
22 | | - "util", |
23 | | - "tree", |
24 | | - "visitor" |
25 | | - ], |
| 15 | + "keywords": ["react", "react-element", "util", "tree", "visitor"], |
26 | 16 | "scripts": { |
27 | 17 | "precommit": "lint-staged && npm run test", |
28 | 18 | "build": "babel-node ./tools/scripts/build.js", |
29 | 19 | "check": "npm run lint && npm run test", |
30 | | - "clean": "rimraf ./commonjs && rimraf ./umd && rimraf ./coverage && rimraf ./umd", |
| 20 | + "clean": |
| 21 | + "rimraf ./commonjs && rimraf ./umd && rimraf ./coverage && rimraf ./umd", |
31 | 22 | "lint": "eslint src", |
32 | 23 | "prepublish": "npm run build", |
33 | 24 | "test": "jest", |
|
80 | 71 | "webpack-hot-middleware": "^2.19.1" |
81 | 72 | }, |
82 | 73 | "jest": { |
83 | | - "collectCoverageFrom": [ |
84 | | - "src/**/*.{js,jsx}" |
85 | | - ], |
86 | | - "snapshotSerializers": [ |
87 | | - "<rootDir>/node_modules/enzyme-to-json/serializer" |
88 | | - ], |
| 74 | + "collectCoverageFrom": ["src/**/*.{js,jsx}"], |
| 75 | + "snapshotSerializers": ["<rootDir>/node_modules/enzyme-to-json/serializer"], |
89 | 76 | "testPathIgnorePatterns": [ |
90 | 77 | "<rootDir>/(commonjs|coverage|flow-typed|node_modules|tools|umd)/" |
91 | 78 | ] |
92 | 79 | }, |
93 | 80 | "lint-staged": { |
94 | | - "src/**/*.js": [ |
95 | | - "prettier --write", |
96 | | - "git add" |
97 | | - ] |
| 81 | + "src/**/*.js": ["prettier --write", "git add"] |
98 | 82 | }, |
99 | 83 | "eslintConfig": { |
100 | 84 | "root": true, |
|
105 | 89 | "node": true, |
106 | 90 | "jest": true |
107 | 91 | }, |
108 | | - "extends": [ |
109 | | - "airbnb", |
110 | | - "prettier" |
111 | | - ], |
| 92 | + "extends": ["airbnb", "prettier"], |
112 | 93 | "rules": { |
113 | 94 | "camelcase": 0, |
114 | 95 | "import/prefer-default-export": 0, |
115 | 96 | "import/no-extraneous-dependencies": 0, |
116 | 97 | "no-underscore-dangle": 0, |
117 | 98 | "react/no-array-index-key": 0, |
118 | 99 | "react/react-in-jsx-scope": 0, |
119 | | - "semi": [ |
120 | | - 2, |
121 | | - "never" |
122 | | - ], |
| 100 | + "semi": [2, "never"], |
123 | 101 | "react/forbid-prop-types": 0, |
124 | 102 | "react/jsx-filename-extension": 0, |
125 | 103 | "react/sort-comp": 0 |
|
0 commit comments