-
-
Notifications
You must be signed in to change notification settings - Fork 25
/
package.json
91 lines (91 loc) · 2.34 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
{
"name": "github-url-detection",
"version": "6.1.0",
"description": "Which GitHub page are you on? Is it an issue? Is it a list? Perfect for your WebExtension or userscript.",
"keywords": [
"github",
"page",
"routes",
"detect",
"test",
"extension"
],
"repository": "refined-github/github-url-detection",
"funding": "https://github.com/sponsors/fregante",
"license": "MIT",
"author": "Federico Brigante <[email protected]> (https://fregante.com)",
"sideEffects": false,
"type": "module",
"main": "distribution/index.js",
"module": "distribution/index.js",
"files": [
"distribution/index.js",
"distribution/index.d.ts"
],
"scripts": {
"ava": "ava --timeout 30s",
"build": "run-p build:*",
"build:vite": "vite build",
"build:typescript": "tsc --declaration --emitDeclarationOnly",
"demo:build": "vite build demo --config demo/vite.config.js",
"demo:test": "svelte-check",
"demo:watch": "vite serve demo --config demo/vite.config.js",
"prepack": "npm run build",
"test": "run-p build ava xo",
"watch": "run-p watch:typescript demo:watch # vite watch doesn’t generate the lib, so just use the demo",
"watch:typescript": "tsc --watch --noEmit",
"watch:ava": "run-p 'ava -- --watch' 'watch:typescript -- --watch'",
"xo": "xo"
},
"xo": {
"envs": [
"browser"
],
"overrides": [
{
"files": [
"*.ts"
],
"rules": {
"ava/assertion-arguments": "off",
"@typescript-eslint/dot-notation": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-non-null-asserted-optional-chain": "off",
"@typescript-eslint/naming-convention": "off",
"n/prefer-global/process": "off"
}
}
],
"rules": {
"camelcase": "off"
}
},
"ava": {
"extensions": {
"ts": "module"
},
"nodeArguments": [
"--loader=esbuild-node-loader",
"--experimental-specifier-resolution=node"
]
},
"devDependencies": {
"@sindresorhus/tsconfig": "^3.0.1",
"@sveltejs/vite-plugin-svelte": "^1.0.1",
"ava": "^4.3.1",
"esbuild-node-loader": "^0.8.0",
"github-reserved-names": "^2.0.4",
"npm-run-all": "^4.1.5",
"strip-indent": "^4.0.0",
"svelte": "^3.49.0",
"svelte-check": "^2.8.0",
"tslib": "^2.4.0",
"typescript": "^4.7.4",
"vite": "^3.0.2",
"xo": "^0.51.0"
},
"engines": {
"node": ">=14"
}
}