@wiggindev/hooks 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
package/.eslintrc.cjs ADDED
@@ -0,0 +1,18 @@
1
+ module.exports = {
2
+ parserOptions: {
3
+ ecmaFeatures: {
4
+ jsx: true,
5
+ },
6
+ },
7
+ settings: {
8
+ react: {
9
+ version: 'detect',
10
+ },
11
+ },
12
+ plugins: ['react'],
13
+ extends: ['plugin:react/recommended'],
14
+ rules: {
15
+ 'react/jsx-uses-react': 'error',
16
+ 'react/jsx-uses-vars': 'error',
17
+ },
18
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wiggindev/hooks",
3
3
  "description": "Various hooks that I use in my projects",
4
- "version": "0.2.1",
4
+ "version": "0.2.2",
5
5
  "author": {
6
6
  "name": "Andrew Wiggin",
7
7
  "email": "andrew@wiggin.dev",
@@ -30,7 +30,9 @@
30
30
  },
31
31
  "devDependencies": {
32
32
  "@types/react": "^18.0.9",
33
- "microbundle": "^0.15.0"
33
+ "eslint-plugin-react": "^7.29.4",
34
+ "microbundle": "^0.15.0",
35
+ "react": "^18.1.0"
34
36
  },
35
37
  "packageManager": "yarn@3.2.1",
36
38
  "publishConfig": {
package/src/index.ts CHANGED
@@ -4,3 +4,4 @@ export * from './useEventListener';
4
4
  export * from './useDocumentEventListener';
5
5
  export * from './useWindowEventListener';
6
6
  export * from './usePrevious';
7
+ export * from './useWindowDimensions';