Skip to content

Commit f12becb

Browse files
committed
Run prettier
1 parent 2c62f6a commit f12becb

27 files changed

+1444
-1437
lines changed

.eslintrc.json

+3-11
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,12 @@
33
"browser": true,
44
"es2021": true
55
},
6-
"extends": [
7-
"eslint:recommended",
8-
"plugin:@typescript-eslint/recommended",
9-
"plugin:react/recommended"
10-
],
6+
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "plugin:react/recommended"],
117
"parser": "@typescript-eslint/parser",
128
"parserOptions": {
139
"ecmaVersion": "latest",
1410
"sourceType": "module"
1511
},
16-
"plugins": [
17-
"@typescript-eslint",
18-
"react"
19-
],
20-
"rules": {
21-
}
12+
"plugins": ["@typescript-eslint", "react"],
13+
"rules": {}
2214
}

README.md

+18-18
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@ You can use the [`component: browser-extension`](https://github.com/gitpod-io/gi
1515

1616
To make changes and test them using Gitpod itself:
1717

18-
- add test cases to the [unit test](https://github.com/gitpod-io/browser-extension/blob/se/plasmo/test/src/button-contributions.spec.ts#L39)
19-
- try out changes like this:
20-
1. run `pnpm build`
21-
1. run `pnpm watch-prod` and download the built binary for your system (local machine)
22-
1. run the binary anywhere on your local machine to sync the extension folder locally.
23-
1. open Chrome and go to `chrome://extensions/`
24-
1. enable `Developer mode` (top right)
25-
1. click `Load unpacked` (top left) and select the folder you just downloaded
26-
1. now you can test your changes
27-
1. repeat step 1 and 2 and [reload the extension](chrome://extensions/) whenever you want to test new changes
18+
- add test cases to the [unit test](https://github.com/gitpod-io/browser-extension/blob/se/plasmo/test/src/button-contributions.spec.ts#L39)
19+
- try out changes like this:
20+
1. run `pnpm build`
21+
1. run `pnpm watch-prod` and download the built binary for your system (local machine)
22+
1. run the binary anywhere on your local machine to sync the extension folder locally.
23+
1. open Chrome and go to `chrome://extensions/`
24+
1. enable `Developer mode` (top right)
25+
1. click `Load unpacked` (top left) and select the folder you just downloaded
26+
1. now you can test your changes
27+
1. repeat step 1 and 2 and [reload the extension](chrome://extensions/) whenever you want to test new changes
2828

2929
#### Build
3030

@@ -64,17 +64,17 @@ To release a new version, follow these steps:
6464
1. Compose a list of changes using the list of commits that were pushed since last version
6565
1. [Create a new release](https://github.com/gitpod-io/browser-extension/releases/new), listing changes:
6666

67-
```yaml
68-
### Changes
67+
```yaml
68+
### Changes
6969

70-
- Change/Fix A
71-
- Change/Fix B
72-
- Change/Fix C
70+
- Change/Fix A
71+
- Change/Fix B
72+
- Change/Fix C
7373

74-
### Credits
74+
### Credits
7575

76-
Thanks to @{EXTERNAL_CONTRIBUTOR_USERNAME} for helping! 🍊
77-
```
76+
Thanks to @{EXTERNAL_CONTRIBUTOR_USERNAME} for helping! 🍊
77+
```
7878

7979
For Firefox, our [GitHub Action](https://github.com/gitpod-io/browser-extension/blob/main/.github/workflows/submit.yml) should take care of publishing for us. You can trigger a release (either staging or production) from the [workflow's tab](https://github.com/gitpod-io/browser-extension/actions/workflows/submit.yml).
8080

package.json

+76-76
Original file line numberDiff line numberDiff line change
@@ -1,79 +1,79 @@
11
{
2-
"name": "gitpod",
3-
"displayName": "Gitpod",
4-
"version": "2.1.6",
5-
"description": "The developer platform for on-demand cloud development environments. Create software faster and more securely.",
6-
"author": "Gitpod <[email protected]>",
7-
"homepage": "https://www.gitpod.io",
8-
"scripts": {
9-
"dev": "plasmo dev --source-maps --no-minify",
10-
"watch-dev": "pnpm build-dev-tools && .bin/watch-sync serve ./build/chrome-mv3-dev",
11-
"watch-prod": "pnpm build-dev-tools && .bin/watch-sync serve ./build/chrome-mv3-prod",
12-
"build": "plasmo build --source-maps --no-minify",
13-
"test": "cd test && pnpm test",
14-
"package": "plasmo package",
15-
"format": "prettier --experimental-ternaries --write .",
16-
"build-dev-tools": "sh dev/build.sh"
17-
},
18-
"dependencies": {
19-
"@plasmohq/storage": "^1.9.0",
20-
"@tailwindcss/forms": "^0.5.6",
21-
"chrome-extension-hot-reload": "^0.2.2",
22-
"classnames": "^2.3.2",
23-
"crx-hotreload": "^1.0.6",
24-
"plasmo": "^0.84.2",
25-
"react": "^18.2.0",
26-
"react-dom": "^18.2.0",
27-
"validator": "^13.11.0",
28-
"webext-additional-permissions": "^2.4.0",
29-
"webext-content-scripts": "^2.5.5",
30-
"webext-detect-page": "^4.1.1",
31-
"webext-domain-permission-toggle": "^4.1.0",
32-
"webext-dynamic-content-scripts": "v9",
33-
"webext-patterns": "^1.3.0",
34-
"webext-polyfill-kinda": "^1.0.2",
35-
"webext-tools": "^1.1.4",
36-
"webextension-polyfill": "^0.10.0"
37-
},
38-
"devDependencies": {
39-
"@ianvs/prettier-plugin-sort-imports": "4.1.0",
40-
"@types/chai": "^4.3.6",
41-
"@types/chrome": "0.0.243",
42-
"@types/mocha": "^10.0.1",
43-
"@types/node": "20.5.0",
44-
"@types/react": "18.2.20",
45-
"@types/react-dom": "18.2.7",
46-
"@types/validator": "^13.11.1",
47-
"@types/webextension-polyfill": "^0.10.7",
48-
"@typescript-eslint/eslint-plugin": "^6.7.0",
49-
"@typescript-eslint/parser": "^6.7.0",
50-
"autoprefixer": "^10.4.15",
51-
"chai": "^4.3.8",
52-
"eslint": "^8.49.0",
53-
"eslint-plugin-react": "^7.33.2",
54-
"htmlnano": "2.0.3",
55-
"mocha": "^10.2.0",
56-
"postcss": "^8.4.31",
57-
"prettier": "3.2.5",
58-
"puppeteer": "^21.1.1",
59-
"source-map-support": "^0.5.21",
60-
"tailwindcss": "^3.3.3",
61-
"ts-node": "^10.9.1",
62-
"typescript": "5.3.3"
63-
},
64-
"manifest": {
65-
"optional_host_permissions": [
66-
"*://*/*"
67-
],
68-
"permissions": [
69-
"scripting",
70-
"contextMenus",
71-
"activeTab"
72-
],
73-
"browser_specific_settings": {
74-
"gecko": {
75-
"id": "{dbcc42f9-c979-4f53-8a95-a102fbff3bbe}"
76-
}
2+
"name": "gitpod",
3+
"displayName": "Gitpod",
4+
"version": "2.1.6",
5+
"description": "The developer platform for on-demand cloud development environments. Create software faster and more securely.",
6+
"author": "Gitpod <[email protected]>",
7+
"homepage": "https://www.gitpod.io",
8+
"scripts": {
9+
"dev": "plasmo dev --source-maps --no-minify",
10+
"watch-dev": "pnpm build-dev-tools && .bin/watch-sync serve ./build/chrome-mv3-dev",
11+
"watch-prod": "pnpm build-dev-tools && .bin/watch-sync serve ./build/chrome-mv3-prod",
12+
"build": "plasmo build --source-maps --no-minify",
13+
"test": "cd test && pnpm test",
14+
"package": "plasmo package",
15+
"format": "prettier --experimental-ternaries --write .",
16+
"build-dev-tools": "sh dev/build.sh"
17+
},
18+
"dependencies": {
19+
"@plasmohq/storage": "^1.9.0",
20+
"@tailwindcss/forms": "^0.5.6",
21+
"chrome-extension-hot-reload": "^0.2.2",
22+
"classnames": "^2.3.2",
23+
"crx-hotreload": "^1.0.6",
24+
"plasmo": "^0.84.2",
25+
"react": "^18.2.0",
26+
"react-dom": "^18.2.0",
27+
"validator": "^13.11.0",
28+
"webext-additional-permissions": "^2.4.0",
29+
"webext-content-scripts": "^2.5.5",
30+
"webext-detect-page": "^4.1.1",
31+
"webext-domain-permission-toggle": "^4.1.0",
32+
"webext-dynamic-content-scripts": "v9",
33+
"webext-patterns": "^1.3.0",
34+
"webext-polyfill-kinda": "^1.0.2",
35+
"webext-tools": "^1.1.4",
36+
"webextension-polyfill": "^0.10.0"
37+
},
38+
"devDependencies": {
39+
"@ianvs/prettier-plugin-sort-imports": "4.1.0",
40+
"@types/chai": "^4.3.6",
41+
"@types/chrome": "0.0.243",
42+
"@types/mocha": "^10.0.1",
43+
"@types/node": "20.5.0",
44+
"@types/react": "18.2.20",
45+
"@types/react-dom": "18.2.7",
46+
"@types/validator": "^13.11.1",
47+
"@types/webextension-polyfill": "^0.10.7",
48+
"@typescript-eslint/eslint-plugin": "^6.7.0",
49+
"@typescript-eslint/parser": "^6.7.0",
50+
"autoprefixer": "^10.4.15",
51+
"chai": "^4.3.8",
52+
"eslint": "^8.49.0",
53+
"eslint-plugin-react": "^7.33.2",
54+
"htmlnano": "2.0.3",
55+
"mocha": "^10.2.0",
56+
"postcss": "^8.4.31",
57+
"prettier": "3.2.5",
58+
"puppeteer": "^21.1.1",
59+
"source-map-support": "^0.5.21",
60+
"tailwindcss": "^3.3.3",
61+
"ts-node": "^10.9.1",
62+
"typescript": "5.3.3"
63+
},
64+
"manifest": {
65+
"optional_host_permissions": [
66+
"*://*/*"
67+
],
68+
"permissions": [
69+
"scripting",
70+
"contextMenus",
71+
"activeTab"
72+
],
73+
"browser_specific_settings": {
74+
"gecko": {
75+
"id": "{dbcc42f9-c979-4f53-8a95-a102fbff3bbe}"
76+
}
77+
}
7778
}
78-
}
7979
}

postcss.config.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
module.exports = {
55
plugins: {
66
tailwindcss: {},
7-
autoprefixer: {}
8-
}
9-
}
7+
autoprefixer: {},
8+
},
9+
};

src/background.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import browser from "webextension-polyfill";
2-
import 'webext-dynamic-content-scripts';
2+
3+
import "webext-dynamic-content-scripts";
4+
35
import addDomainPermissionToggle from "webext-domain-permission-toggle";
46

57
(async () => {
@@ -13,4 +15,4 @@ browser.runtime.onInstalled.addListener((details) => {
1315
});
1416
browser.runtime.setUninstallURL("https://www.gitpod.io/extension-uninstall?track=true");
1517

16-
export { }
18+
export {};

0 commit comments

Comments
 (0)