-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
111 lines (111 loc) · 2.58 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
{
"name": "@swarm-city/ui-library",
"version": "0.8.0",
"scripts": {
"build": "vite build",
"prepack": "json -f package.json -I -e \"delete this.devDependencies; delete this.dependencies\"",
"storybook": "start-storybook -p 6006",
"build-storybook": "build-storybook",
"lint": "eslint . --ext .ts,.tsx && prettier -c .",
"lint:fix": "eslint . --ext .ts,.tsx --fix && prettier -w ."
},
"devDependencies": {
"@babel/preset-env": "^7.19.4",
"@babel/preset-typescript": "^7.18.6",
"@mdx-js/react": "^2.1.5",
"@storybook/addon-a11y": "^6.5.12",
"@storybook/addon-essentials": "^6.5.12",
"@storybook/addon-links": "^6.5.12",
"@storybook/builder-vite": "^0.2.4",
"@storybook/react": "^6.5.12",
"@typescript-eslint/eslint-plugin": "^5.40.0",
"@typescript-eslint/parser": "^5.40.0",
"@vitejs/plugin-react": "^2.1.0",
"autoprefixer": "^10.4.12",
"dset": "^3.1.2",
"eslint": "^8.25.0",
"eslint-config-prettier": "^8.5.0",
"eslint-config-react": "^1.1.7",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.31.10",
"eslint-plugin-unicorn": "^44.0.2",
"json": "^11.0.0",
"postcss-nesting": "^10.2.0",
"simple-git-hooks": "^2.8.0",
"typescript": "^4.8.4",
"vite": "^3.1.8",
"vite-plugin-dts": "^1.6.6"
},
"license": "MIT",
"files": [
"dist"
],
"main": "./dist/ui-library.umd.js",
"module": "./dist/ui-library.es.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": "./dist/ui-library.es.js",
"require": "./dist/ui-library.umd.js"
},
"./dist/style.css": "./dist/style.css"
},
"dependencies": {
"classnames": "^2.3.2"
},
"peerDependencies": {
"react": "18.x",
"react-dom": "18.x"
},
"eslintConfig": {
"extends": [
"react",
"prettier",
"plugin:prettier/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/jsx-runtime"
],
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint",
"unicorn"
],
"rules": {
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_"
}
],
"no-duplicate-imports": "off",
"@typescript-eslint/no-duplicate-imports": [
"error"
],
"unicorn/filename-case": [
"error",
{
"case": "kebabCase"
}
],
"react/react-in-jsx-scope": "off"
},
"settings": {
"react": {
"version": "detect"
},
"jest": {
"version": 27
}
}
},
"eslintIgnore": [
"build/*"
],
"simple-git-hooks": {
"pre-commit": "npx lint-staged"
},
"lint-staged": {
"*.{js,jsx,json,ts,tsx,css,md,html}": "prettier --write"
}
}