-
Notifications
You must be signed in to change notification settings - Fork 41
/
package.json
128 lines (128 loc) · 3.12 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
{
"name": "react-magnifier",
"version": "3.0.4",
"description": "React image zoom component",
"keywords": [
"react",
"component",
"image",
"zoom",
"magnify",
"magnifier",
"magnifying glass"
],
"author": {
"name": "Samuel Meuli",
"email": "[email protected]",
"url": "https://samuelmeuli.com"
},
"repository": "github:samuelmeuli/react-magnifier",
"homepage": "https://react-magnifier.samuelmeuli.com",
"license": "MIT",
"files": [
"./dist/"
],
"main": "./dist/Magnifier.js",
"module": "./dist/Magnifier.es.js",
"types": "./dist/Magnifier.d.ts",
"scripts": {
"start": "npm-run-all build:rollup --parallel start:*",
"start:rollup": "rollup --config --sourcemap --watch",
"start:storybook": "start-storybook --port 3000",
"build": "run-s build:*",
"build:clean": "rm -rf ./dist/ ./dist-storybook/",
"build:rollup": "rollup --config",
"build:storybook": "build-storybook --output-dir ./dist-storybook/",
"test": "tsc --noEmit",
"lint:css": "stylelint --fix --max-warnings 0",
"lint:ts": "eslint --ext .ts,.tsx --fix --max-warnings 0",
"format": "prettier --write",
"version": "yarn build",
"release": "np"
},
"dependencies": {
"@types/lodash.debounce": "^4.0.6",
"@types/lodash.throttle": "^4.1.6",
"@types/react": "^16.9.23",
"lodash.debounce": "^4.0.8",
"lodash.throttle": "^4.1.1"
},
"peerDependencies": {
"react": "^16.0.0"
},
"devDependencies": {
"@babel/core": "^7.8.4",
"@samuelmeuli/eslint-config": "~6.0.0",
"@samuelmeuli/prettier-config": "^1.0.0",
"@samuelmeuli/stylelint-config": "~3.0.0",
"@samuelmeuli/tsconfig": "^1.0.0",
"@storybook/react": "^5.3.14",
"@typescript-eslint/eslint-plugin": "^2.21.0",
"@typescript-eslint/parser": "^2.21.0",
"babel-loader": "^8.0.6",
"eslint": "6.8.0",
"eslint-config-airbnb": "18.0.1",
"eslint-config-prettier": "^6.10.0",
"eslint-plugin-import": "^2.20.1",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-react": "^7.18.3",
"eslint-plugin-react-hooks": "^1.7.0",
"husky": "^4.2.3",
"lint-staged": "^10.0.8",
"np": "~6.1.0",
"npm-run-all": "^4.1.3",
"postcss": "^7.0.27",
"prettier": "^1.19.1",
"react": "^16.12.0",
"react-dom": "^16.12.0",
"rollup": "^1.31.1",
"rollup-plugin-postcss": "^2.1.1",
"rollup-plugin-typescript2": "^0.26.0",
"sass": "^1.26.1",
"stylelint": "^12.0.0",
"typescript": "^3.8.2"
},
"eslintConfig": {
"root": true,
"extends": "@samuelmeuli/eslint-config/typescript-react",
"env": {
"browser": true,
"node": true
},
"rules": {
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": [
"./.storybook/**/*.js",
"./rollup.config.js",
"./stories/**/*.jsx"
]
}
],
"react/jsx-sort-default-props": "off"
}
},
"stylelint": {
"extends": "@samuelmeuli/stylelint-config"
},
"prettier": "@samuelmeuli/prettier-config",
"lint-staged": {
"*.{ts,tsx}": [
"yarn lint:ts",
"yarn format"
],
"*.{css,sass,scss}": [
"yarn lint:css",
"yarn format"
],
"*.{html,js,json,jsx,md,vue,yaml,yml}": [
"yarn format"
]
},
"husky": {
"hooks": {
"pre-commit": "yarn test && lint-staged"
}
}
}