-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpackage.json
More file actions
74 lines (74 loc) · 1.95 KB
/
package.json
File metadata and controls
74 lines (74 loc) · 1.95 KB
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
{
"name": "react-visibility-observer",
"version": "1.0.8",
"author": "Joni Kanerva <jhonny@jhonny.org>",
"license": "MIT",
"description": "React component using the Intersection Observer API for watching when an element is visible in the viewport.",
"keywords": [
"react",
"react-component",
"component",
"viewport",
"visible",
"track",
"screen",
"hooks",
"context"
],
"homepage": "https://github.com/jonikanerva/react-visibility-observer#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/jonikanerva/react-visibility-observer.git"
},
"bugs": {
"url": "https://github.com/jonikanerva/react-visibility-observer/issues"
},
"main": "dist/index.js",
"scripts": {
"dev": "tsc --watch",
"build": "rm -rf dist && tsc",
"lint": "yarn lint:eslint && yarn lint:prettier",
"lint:prettier": "prettier --list-different --parser typescript --config package.json 'src/**/*.{ts,tsx}'",
"lint:eslint": "yarn eslint . --ext .ts,.tsx",
"prepublish": "yarn build",
"test": "yarn lint"
},
"peerDependencies": {
"react": ">=16.8.0-0"
},
"devDependencies": {
"@types/react": "^18.0.26",
"@typescript-eslint/eslint-plugin": "^5.48.1",
"@typescript-eslint/parser": "^5.48.1",
"eslint": "^8.32.0",
"eslint-config-prettier": "^8.6.0",
"eslint-plugin-react": "^7.32.0",
"np": "^7.6.3",
"prettier": "^2.8.3",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"typescript": "^4.9.4"
},
"prettier": {
"singleQuote": true,
"semi": false
},
"eslintConfig": {
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"settings": {
"react": {
"version": "detect"
}
}
}
}