Skip to content

Commit ed96675

Browse files
committed
Implement code style
1 parent a334067 commit ed96675

File tree

1 file changed

+45
-8
lines changed

1 file changed

+45
-8
lines changed

package.json

+45-8
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313
"url": "git+https://github.com/envato/react-breakpoints.git"
1414
},
1515
"keywords": [
16+
"resize-observer",
17+
"media-queries",
18+
"element-queries",
19+
"container-queries",
20+
"breakpoints",
1621
"react-hooks",
1722
"hooks",
1823
"react",
@@ -28,18 +33,50 @@
2833
},
2934
"homepage": "https://github.com/envato/react-breakpoints#readme",
3035
"peerDependencies": {
31-
"react": "^16.12.0",
32-
"react-dom": "^16.12.0"
36+
"react": ">=16.8.0",
37+
"react-dom": ">=16.8.0"
3338
},
3439
"devDependencies": {
35-
"@babel/cli": "^7.8.4",
36-
"@babel/core": "^7.8.6",
37-
"@babel/preset-env": "^7.7.7",
38-
"@babel/preset-react": "^7.8.3",
39-
"react": "^16.12.0",
40-
"react-dom": "^16.12.0"
40+
"@typescript-eslint/eslint-plugin": "^2.34.0",
41+
"@typescript-eslint/parser": "^2.34.0",
42+
"babel-eslint": "^10.1.0",
43+
"eslint": "^6.8.0",
44+
"eslint-config-react-app": "^5.2.1",
45+
"eslint-plugin-flowtype": "^4.7.0",
46+
"eslint-plugin-import": "^2.22.1",
47+
"eslint-plugin-jsx-a11y": "^6.4.1",
48+
"eslint-plugin-react": "^7.22.0",
49+
"eslint-plugin-react-hooks": "^2.5.1",
50+
"husky": "^4.3.7",
51+
"lint-staged": "^10.5.3",
52+
"prettier": "^2.2.1",
53+
"react": "^17.0.1",
54+
"react-dom": "^17.0.1"
4155
},
4256
"dependencies": {
4357
"@envato/react-resize-observer-hook": "^1.0.1"
58+
},
59+
"eslintConfig": {
60+
"extends": "react-app"
61+
},
62+
"husky": {
63+
"hooks": {
64+
"pre-commit": "lint-staged"
65+
}
66+
},
67+
"lint-staged": {
68+
"**/*.{js,ts,tsx}": [
69+
"eslint --cache --fix",
70+
"prettier --write"
71+
]
72+
},
73+
"prettier": {
74+
"arrowParens": "avoid",
75+
"jsxSingleQuote": true,
76+
"printWidth": 120,
77+
"quoteProps": "preserve",
78+
"semi": true,
79+
"singleQuote": true,
80+
"trailingComma": "none"
4481
}
4582
}

0 commit comments

Comments
 (0)