forked from citizensadvice/react-manage-focus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
118 lines (118 loc) · 2.97 KB
/
package.json
File metadata and controls
118 lines (118 loc) · 2.97 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
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
{
"name": "@citizensadvice/react-manage-focus",
"version": "1.0.0",
"description": "React component to automatically move focus when elements are removed or added",
"type": "module",
"main": "./dist/index.js",
"files": [
"dist/*"
],
"scripts": {
"lint": "eslint . --ext .ts --ext .tsx --ext .js --ext .jsx && tsc --noEmit",
"test": "jest",
"start": "parcel ./test/index.html",
"clean": "rm -rf dist",
"build": "npm run clean && tsc --declaration --sourceMap --declarationMap --noEmitOnError",
"build:swc": "npm run clean && swc src --ignore **/*.test.{jsx,js} -d ./dist --source-maps true",
"postbuild": "node dist/index.js",
"preversion": "npm run lint",
"prepublishOnly": "npm run build"
},
"author": "github@mrdaniellewis.co.uk",
"license": "ISC",
"devDependencies": {
"@swc/cli": "^0.1.57",
"@swc/jest": "^0.2.23",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^14.4.3",
"@typescript-eslint/eslint-plugin": "^5.42.0",
"@typescript-eslint/parser": "^5.42.0",
"eslint": "^8.27.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-airbnb-typescript": "^17.0.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^27.1.4",
"eslint-plugin-jsx-a11y": "^6.6.1",
"eslint-plugin-react": "^7.31.10",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-testing-library": "^5.9.1",
"jest": "^29.2.2",
"jest-environment-jsdom": "^29.2.2",
"parcel": "^2.8.0",
"parcel-resolver-misnamed-typescript": "file:./parcel-resolver-misnamed-typescript",
"process": "^0.11.10",
"prop-types": "^15.8.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"typescript": "^4.8.4"
},
"peerDependencies": {
"prop-types": ">= 15.5.7",
"react": ">= 15"
},
"eslintConfig": {
"extends": [
"airbnb",
"airbnb/hooks",
"airbnb-typescript"
],
"env": {
"browser": true
},
"parserOptions": {
"ecmaVersion": "latest",
"project": "./tsconfig.json"
},
"rules": {
"import/prefer-default-export": "off",
"no-continue": "off",
"no-restricted-syntax": "off",
"object-curly-newline": [
"error",
{
"consistent": true
}
]
},
"overrides": [
{
"files": [
"**/*.test.{jsx,js}"
],
"env": {
"jest": true
},
"plugins": [
"jest",
"testing-library"
],
"extends": [
"plugin:jest/recommended",
"plugin:testing-library/react"
],
"rules": {
"react/prop-types": "off"
}
}
]
},
"jest": {
"restoreMocks": true,
"transform": {
"^.+\\.(t|j)sx?$": [
"@swc/jest"
]
},
"testEnvironment": "jsdom"
},
"np": {
"yarn": false
},
"publishConfig": {
"access": "public"
},
"aliases": {
"*.js": "*"
}
}