forked from jmerle/cg-local-ext
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
119 lines (119 loc) · 3.85 KB
/
package.json
File metadata and controls
119 lines (119 loc) · 3.85 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
119
{
"name": "cg-local-ext",
"productName": "CG Local",
"version": "1.2.0",
"description": "Synchronizes the CodinGame IDE with a local file so you can use your own editor.",
"repository": "https://github.com/jmerle/cg-local-ext",
"author": "Jasper van Merle",
"license": "MIT",
"type": "module",
"private": true,
"scripts": {
"build": "pnpm run \"/^build:.*/\"",
"build:chrome": "tsx scripts/build.ts chrome true false",
"build:firefox": "tsx scripts/build.ts firefox true false",
"watch:chrome": "tsx scripts/build.ts chrome false true",
"watch:firefox": "tsx scripts/build.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",
"lint": "pnpm run \"/^lint:.*/\"",
"lint:eslint": "eslint --format codeframe 'src/**' 'scripts/**'",
"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}'",
"start:chrome": "tsx scripts/chrome.ts",
"start:firefox": "tsx scripts/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": {
"eventemitter3": "^5.0.1"
},
"devDependencies": {
"@types/node": "^20.14.2",
"@types/webextension-polyfill": "^0.12.1",
"@typescript-eslint/eslint-plugin": "^8.7.0",
"@typescript-eslint/parser": "^8.7.0",
"chrome-launcher": "^1.1.2",
"concurrently": "^9.0.1",
"esbuild": "^0.24.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-formatter-codeframe": "^7.32.1",
"eslint-plugin-import": "^2.30.0",
"prettier": "^3.3.3",
"rimraf": "^6.0.1",
"tsx": "^4.19.1",
"typescript": "^5.6.2",
"web-ext": "^8.3.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"
}
}