/
package.json
152 lines (152 loc) · 3.92 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
{
"name": "react-sizeme",
"version": "3.0.2",
"description": "Make your React Components aware of their width and/or height!",
"license": "MIT",
"main": "dist/react-sizeme.js",
"types": "react-sizeme.d.ts",
"files": [
"*.js",
"*.md",
"dist",
"react-sizeme.d.ts"
],
"repository": {
"type": "git",
"url": "https://github.com/ctrlplusb/react-sizeme.git"
},
"keywords": [
"library"
],
"homepage": "https://github.com/ctrlplusb/react-sizeme#readme",
"author": "Sean Matheson <sean@ctrlplusb.com>",
"scripts": {
"build": "node ./tools/scripts/build.js",
"clean": "rimraf ./dist && rimraf ./coverage",
"lint": "eslint src",
"prepublish": "yarn run build",
"test": "jest",
"test:coverage": "yarn run test -- --coverage",
"test:coverage:deploy": "yarn run test:coverage && codecov"
},
"dependencies": {
"element-resize-detector": "^1.2.2",
"invariant": "^2.2.4",
"shallowequal": "^1.1.0",
"throttle-debounce": "^3.0.1"
},
"devDependencies": {
"@babel/cli": "^7.14.8",
"@babel/core": "^7.15.0",
"@babel/plugin-proposal-class-properties": "^7.14.5",
"@babel/polyfill": "^7.12.1",
"@babel/preset-env": "^7.15.0",
"@babel/preset-react": "^7.14.5",
"@babel/register": "^7.15.3",
"@types/react": "^17.0.19",
"@types/react-dom": "^17.0.9",
"@wojtekmaj/enzyme-adapter-react-17": "^0.6.3",
"app-root-dir": "1.0.2",
"babel-eslint": "^10.1.0",
"babel-jest": "^26.6.3",
"codecov": "^3.8.3",
"cross-env": "^7.0.3",
"enzyme": "^3.11.0",
"enzyme-to-json": "^3.6.2",
"eslint": "^7.32.0",
"eslint-config-airbnb": "^18.2.1",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.24.1",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-react": "^7.24.0",
"eslint-plugin-react-hooks": "^4.2.0",
"gzip-size": "^6.0.0",
"husky": "^4.3.8",
"in-publish": "^2.0.1",
"jest": "^26.6.3",
"lint-staged": "^10.5.4",
"prettier": "^2.3.2",
"pretty-bytes": "5.6.0",
"ramda": "^0.27.1",
"react": "^17.0.2",
"react-addons-test-utils": "^15.6.0",
"react-dom": "^17.0.2",
"react-test-renderer": "^17.0.2",
"readline-sync": "1.4.10",
"rimraf": "^3.0.2",
"rollup": "^2.56.3",
"rollup-plugin-babel": "^4.4.0",
"rollup-plugin-uglify": "^6.0.4",
"title-case": "^3.0.3",
"typescript": "^4.3.5",
"typings-tester": "^0.3.2"
},
"jest": {
"collectCoverageFrom": [
"src/**/*.{js,jsx}"
],
"snapshotSerializers": [
"<rootDir>/node_modules/enzyme-to-json/serializer"
],
"testPathIgnorePatterns": [
"<rootDir>/(coverage|dist|node_modules|tools)/",
"<rootDir>/src/__tests__/typescript/"
],
"testURL": "http://localhost/"
},
"eslintConfig": {
"root": true,
"parser": "babel-eslint",
"env": {
"browser": true,
"es6": true,
"node": true,
"jest": true
},
"extends": [
"airbnb",
"prettier"
],
"rules": {
"camelcase": 0,
"import/prefer-default-export": 0,
"import/no-extraneous-dependencies": 0,
"max-classes-per-file": 0,
"no-nested-ternary": 0,
"no-underscore-dangle": 0,
"react/no-array-index-key": 0,
"react/react-in-jsx-scope": 0,
"semi": [
2,
"never"
],
"react/destructuring-assignment": 0,
"react/forbid-prop-types": 0,
"react/jsx-filename-extension": 0,
"react/jsx-props-no-spreading": 0,
"react/sort-comp": 0,
"react/state-in-constructor": 0,
"react/static-property-placement": 0
}
},
"eslintIgnore": [
"node_modules/",
"dist/",
"coverage/"
],
"prettier": {
"semi": false,
"singleQuote": true,
"trailingComma": "all"
},
"lint-staged": {
"*.js": [
"prettier --write \"src/**/*.js\""
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged && yarn run test"
}
}
}