forked from jmerle/competitive-companion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
134 lines (134 loc) · 4.49 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
129
130
131
132
133
134
{
"name": "competitive-companion",
"productName": "Competitive Companion",
"version": "2.52.0",
"description": "Parses competitive programming problems and sends them to various tools like CP Editor and CPH.",
"repository": "https://github.com/jmerle/competitive-companion",
"author": "Jasper van Merle",
"license": "MIT",
"type": "module",
"private": true,
"scripts": {
"build": "pnpm run \"/^build:.*/\"",
"build:chrome": "tsx scripts/build/extension.ts chrome true false",
"build:firefox": "tsx scripts/build/extension.ts firefox true false",
"build:test": "tsx scripts/build/test.ts",
"watch:chrome": "tsx scripts/build/extension.ts chrome false true",
"watch:firefox": "tsx scripts/build/extension.ts firefox false true",
"package": "pnpm run \"/^package:.*/\"",
"package:chrome": "pnpm build:chrome && web-ext build -s build-chrome/ -a dist/ -o -n {name}-{version}-chrome.zip",
"package:firefox": "pnpm build:firefox && web-ext build -s build-firefox/ -a dist/ -o -n {name}-{version}-firefox.zip",
"generate-banners": "tsx scripts/generate-banners.ts",
"lint": "pnpm run \"/^lint:.*/\"",
"lint:eslint": "eslint --format codeframe 'src/**' 'tests/**' 'scripts/**' jest.config.ts",
"lint:prettier": "prettier --check --ignore-path .gitignore '**/*.{ts,js,html,yml,json}'",
"lint:tsc": "tsc --noEmit",
"lint:package": "pnpm build:firefox && web-ext lint -s build-firefox/ -o text",
"fix": "pnpm run --sequential \"/^fix:.*/\"",
"fix:eslint": "pnpm lint:eslint --fix",
"fix:prettier": "prettier --write --ignore-path .gitignore '**/*.{ts,js,html,yml,json}'",
"test": "pnpm build:test && jest tests/parsers.spec.ts",
"test:no-headless": "cross-env HEADLESS=false pnpm test",
"start:chrome": "tsx scripts/start/chrome.ts",
"start:firefox": "tsx scripts/start/firefox.ts",
"dev:chrome": "rimraf build-chrome && concurrently \"pnpm start:chrome\" \"pnpm watch:chrome\" -n chrome,build -c blue,yellow --kill-others",
"dev:firefox": "rimraf build-firefox && concurrently \"pnpm start:firefox\" \"pnpm watch:firefox\" -n firefox,build -c blue,yellow --kill-others"
},
"dependencies": {
"cyrillic-to-translit-js": "3.2.1",
"jszip": "3.10.1",
"nanobar": "0.4.2",
"pdfjs-dist": "4.0.379",
"snarkdown": "2.0.0"
},
"devDependencies": {
"@types/jest": "^29.5.12",
"@types/node": "^20.12.5",
"@types/webextension-polyfill": "^0.10.7",
"@typescript-eslint/eslint-plugin": "^7.6.0",
"@typescript-eslint/parser": "^7.6.0",
"chrome-launcher": "^1.1.1",
"concurrently": "^8.2.2",
"cross-env": "^7.0.3",
"esbuild": "^0.20.2",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-formatter-codeframe": "^7.32.1",
"eslint-plugin-import": "^2.29.1",
"generic-pool": "^3.9.0",
"jest": "^29.7.0",
"prettier": "^3.2.5",
"puppeteer": "^22.6.3",
"rimraf": "^5.0.5",
"ts-jest": "^29.1.2",
"ts-node": "^10.9.2",
"tsx": "^4.7.2",
"typescript": "^5.4.4",
"web-ext": "^7.11.0"
},
"eslintConfig": {
"root": true,
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
"prettier"
],
"plugins": [
"@typescript-eslint"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module"
},
"env": {
"browser": true,
"node": true
},
"ignorePatterns": [
"*.html"
],
"rules": {
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/explicit-member-accessibility": "error",
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/explicit-function-return-type": [
"error",
{
"allowExpressions": true
}
],
"@typescript-eslint/explicit-module-boundary-types": [
"error",
{
"allowArgumentsExplicitlyTypedAsAny": true
}
],
"import/order": [
"error",
{
"alphabetize": {
"order": "asc",
"caseInsensitive": true
}
}
],
"sort-imports": [
"error",
{
"ignoreCase": true,
"ignoreDeclarationSort": true
}
]
}
},
"prettier": {
"singleQuote": true,
"trailingComma": "all",
"printWidth": 120,
"arrowParens": "avoid"
}
}