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