-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
116 lines (116 loc) · 2.54 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
{
"name": "@yukioru/react-library",
"version": "1.0.1",
"description": "Template for creating a React UI library",
"keywords": [
"react",
"template",
"library"
],
"author": "Andrey Kondalov",
"license": "MIT",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"type": "module",
"files": [
"dist"
],
"publishConfig": {
"access": "public"
},
"tsup": {
"dts": true,
"format": [
"esm"
],
"clean": true,
"minify": true,
"external": [
"react",
"react-dom"
],
"splitting": true,
"treeshake": true,
"entryPoints": [
"src/index.ts"
]
},
"eslintConfig": {
"env": {
"browser": true,
"es2021": true
},
"extends": [
"plugin:react/recommended",
"standard-with-typescript",
"plugin:import/typescript",
"plugin:prettier/recommended"
],
"parser": "@typescript-eslint/parser",
"overrides": [],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"project": "./tsconfig.json"
},
"plugins": [
"react",
"prettier"
],
"rules": {
"@typescript-eslint/triple-slash-reference": "off"
}
},
"prettier": {
"arrowParens": "avoid",
"bracketSameLine": true,
"singleQuote": true,
"jsxSingleQuote": false,
"trailingComma": "all",
"tabWidth": 2,
"useTabs": false,
"semi": true,
"printWidth": 80
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"eslint --quiet --fix",
"prettier --write --ignore-unknown"
],
"*.{json,html}": [
"prettier --write --ignore-unknown"
]
},
"scripts": {
"prepare": "husky install",
"dev": "ladle serve",
"preview": "ladle preview",
"build": "npm run build:lib && npm run build:docs",
"build:lib": "tsup",
"build:docs": "ladle build -o docs --base ./",
"lint": "eslint .",
"lint:fix": "eslint --fix .",
"prettier": "prettier --write ."
},
"devDependencies": {
"@ladle/react": "^4.0.2",
"@types/react": "^18.2.45",
"@types/react-dom": "^18.2.17",
"@typescript-eslint/parser": "^6.14.0",
"eslint-config-prettier": "^9.1.0",
"eslint-config-standard-with-typescript": "^42.0.0",
"eslint-plugin-prettier": "^5.0.1",
"eslint-plugin-react": "^7.33.2",
"husky": "^8.0.3",
"lint-staged": "^15.2.0",
"prettier": "^3.1.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"tsup": "^8.0.1",
"typescript": "^5.3.3"
},
"peerDependencies": {
"react": "^18",
"react-dom": "^18"
}
}