Skip to content

Commit 22c1cf4

Browse files
author
Akos Kitta
committed
chore: format resources 💄
Signed-off-by: Akos Kitta <[email protected]>
1 parent 00d5dcb commit 22c1cf4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+1157
-1002
lines changed

Diff for: .eslintrc.js

+61-61
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,66 @@
11
module.exports = {
2-
parser: '@typescript-eslint/parser', // Specifies the ESLint parser
3-
parserOptions: {
4-
ecmaVersion: 2020, // Allows for the parsing of modern ECMAScript features
5-
sourceType: 'module', // Allows for the use of imports
6-
ecmaFeatures: {
7-
jsx: true, // Allows for the parsing of JSX
8-
},
2+
parser: '@typescript-eslint/parser', // Specifies the ESLint parser
3+
parserOptions: {
4+
ecmaVersion: 2020, // Allows for the parsing of modern ECMAScript features
5+
sourceType: 'module', // Allows for the use of imports
6+
ecmaFeatures: {
7+
jsx: true, // Allows for the parsing of JSX
98
},
10-
ignorePatterns: [
11-
'node_modules/*',
12-
'**/node_modules/*',
13-
'.node_modules/*',
14-
'.github/*',
15-
'.browser_modules/*',
16-
'docs/*',
17-
'scripts/*',
18-
'electron-app/lib/*',
19-
'electron-app/src-gen/*',
20-
'electron-app/gen-webpack*.js',
21-
'!electron-app/webpack.config.js',
22-
'plugins/*',
23-
'arduino-ide-extension/src/node/cli-protocol',
24-
],
25-
settings: {
26-
react: {
27-
version: 'detect', // Tells eslint-plugin-react to automatically detect the version of React to use
28-
},
9+
},
10+
ignorePatterns: [
11+
'node_modules/*',
12+
'**/node_modules/*',
13+
'.node_modules/*',
14+
'.github/*',
15+
'.browser_modules/*',
16+
'docs/*',
17+
'scripts/*',
18+
'electron-app/lib/*',
19+
'electron-app/src-gen/*',
20+
'electron-app/gen-webpack*.js',
21+
'!electron-app/webpack.config.js',
22+
'plugins/*',
23+
'arduino-ide-extension/src/node/cli-protocol',
24+
],
25+
settings: {
26+
react: {
27+
version: 'detect', // Tells eslint-plugin-react to automatically detect the version of React to use
2928
},
30-
extends: [
31-
'plugin:@typescript-eslint/recommended', // Uses the recommended rules from the @typescript-eslint/eslint-plugin
32-
'plugin:react/recommended', // Uses the recommended rules from @eslint-plugin-react
33-
'plugin:react-hooks/recommended', // Uses recommended rules from react hooks
34-
'plugin:prettier/recommended',
35-
'prettier', // Uses eslint-config-prettier to disable ESLint rules from @typescript-eslint/eslint-plugin that would conflict with prettier
29+
},
30+
extends: [
31+
'plugin:@typescript-eslint/recommended', // Uses the recommended rules from the @typescript-eslint/eslint-plugin
32+
'plugin:react/recommended', // Uses the recommended rules from @eslint-plugin-react
33+
'plugin:react-hooks/recommended', // Uses recommended rules from react hooks
34+
'plugin:prettier/recommended',
35+
'prettier', // Uses eslint-config-prettier to disable ESLint rules from @typescript-eslint/eslint-plugin that would conflict with prettier
36+
],
37+
plugins: ['prettier', 'unused-imports'],
38+
rules: {
39+
'@typescript-eslint/no-unused-expressions': 'off',
40+
'@typescript-eslint/no-namespace': 'off',
41+
'@typescript-eslint/no-var-requires': 'off',
42+
'@typescript-eslint/no-empty-function': 'warn',
43+
'@typescript-eslint/no-empty-interface': 'warn',
44+
'no-unused-vars': 'off',
45+
'unused-imports/no-unused-imports': 'error',
46+
'unused-imports/no-unused-vars': [
47+
'warn',
48+
{
49+
vars: 'all',
50+
varsIgnorePattern: '^_',
51+
args: 'after-used',
52+
argsIgnorePattern: '^_',
53+
},
3654
],
37-
plugins: ['prettier', 'unused-imports'],
38-
rules: {
39-
'@typescript-eslint/no-unused-expressions': 'off',
40-
'@typescript-eslint/no-namespace': 'off',
41-
'@typescript-eslint/no-var-requires': 'off',
42-
'@typescript-eslint/no-empty-function': 'warn',
43-
'@typescript-eslint/no-empty-interface': 'warn',
44-
'no-unused-vars': 'off',
45-
'unused-imports/no-unused-imports': 'error',
46-
'unused-imports/no-unused-vars': [
47-
'warn',
48-
{
49-
vars: 'all',
50-
varsIgnorePattern: '^_',
51-
args: 'after-used',
52-
argsIgnorePattern: '^_',
53-
},
54-
],
55-
'react/display-name': 'warn',
56-
eqeqeq: ['error', 'smart'],
57-
'guard-for-in': 'off',
58-
'id-blacklist': 'off',
59-
'id-match': 'off',
60-
'no-underscore-dangle': 'off',
61-
'no-unused-expressions': 'off',
62-
'no-var': 'error',
63-
radix: 'error',
64-
'prettier/prettier': 'warn',
65-
},
55+
'react/display-name': 'warn',
56+
eqeqeq: ['error', 'smart'],
57+
'guard-for-in': 'off',
58+
'id-blacklist': 'off',
59+
'id-match': 'off',
60+
'no-underscore-dangle': 'off',
61+
'no-unused-expressions': 'off',
62+
'no-var': 'error',
63+
radix: 'error',
64+
'prettier/prettier': 'warn',
65+
},
6666
};

Diff for: .github/ISSUE_TEMPLATE/bug-report.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Bug report
22
description: Report a problem with the code or documentation in this repository.
33
labels:
4-
- "type: imperfection"
4+
- 'type: imperfection'
55
body:
66
- type: textarea
77
id: description

Diff for: .github/ISSUE_TEMPLATE/feature-request.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Feature request
22
description: Suggest an enhancement to this project.
33
labels:
4-
- "type: enhancement"
4+
- 'type: enhancement'
55
body:
66
- type: textarea
77
id: description

Diff for: .github/PULL_REQUEST_TEMPLATE.md

+7-4
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
### Motivation
2+
23
<!-- Why this pull request? -->
34

45
### Change description
6+
57
<!-- What does your code do? -->
68

79
### Other information
10+
811
<!-- Any additional information that could help the review process -->
912

1013
### Reviewer checklist
1114

12-
* [ ] PR addresses a single concern.
13-
* [ ] The PR has no duplicates (please search among the [Pull Requests](https://github.com/arduino/arduino-ide/pulls) before creating one)
14-
* [ ] PR title and description are properly filled.
15-
* [ ] Docs have been added / updated (for bug fixes / features)
15+
- [ ] PR addresses a single concern.
16+
- [ ] The PR has no duplicates (please search among the [Pull Requests](https://github.com/arduino/arduino-ide/pulls) before creating one)
17+
- [ ] PR title and description are properly filled.
18+
- [ ] Docs have been added / updated (for bug fixes / features)

Diff for: .github/dependabot.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ updates:
1212
schedule:
1313
interval: daily
1414
labels:
15-
- "topic: infrastructure"
15+
- 'topic: infrastructure'

Diff for: .github/label-configuration-files/labels.yml

+16-16
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
# Used by the "Sync Labels" workflow
22
# See: https://github.com/Financial-Times/github-label-sync#label-config-file
33

4-
- name: "topic: accessibility"
5-
color: "00ffff"
4+
- name: 'topic: accessibility'
5+
color: '00ffff'
66
description: Enabling the use of the software by everyone
7-
- name: "topic: CLI"
8-
color: "00ffff"
7+
- name: 'topic: CLI'
8+
color: '00ffff'
99
description: Related to Arduino CLI
10-
- name: "topic: cloud"
11-
color: "00ffff"
10+
- name: 'topic: cloud'
11+
color: '00ffff'
1212
description: Related to Arduino Cloud and cloud sketches
13-
- name: "topic: debugger"
14-
color: "00ffff"
13+
- name: 'topic: debugger'
14+
color: '00ffff'
1515
description: Related to the integrated debugger
16-
- name: "topic: language server"
17-
color: "00ffff"
16+
- name: 'topic: language server'
17+
color: '00ffff'
1818
description: Related to the Arduino Language Server
19-
- name: "topic: serial monitor"
20-
color: "00ffff"
19+
- name: 'topic: serial monitor'
20+
color: '00ffff'
2121
description: Related to the Serial Monitor
22-
- name: "topic: theia"
23-
color: "00ffff"
22+
- name: 'topic: theia'
23+
color: '00ffff'
2424
description: Related to the Theia IDE framework
25-
- name: "topic: theme"
26-
color: "00ffff"
25+
- name: 'topic: theme'
26+
color: '00ffff'
2727
description: Related to GUI theming

Diff for: .github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ on:
3131

3232
env:
3333
# See vars.GO_VERSION field of https://github.com/arduino/arduino-cli/blob/master/DistTasks.yml
34-
GO_VERSION: "1.19"
34+
GO_VERSION: '1.19'
3535
JOB_TRANSFER_ARTIFACT: build-artifacts
3636
CHANGELOG_ARTIFACTS: changelog
3737

Diff for: .github/workflows/check-i18n-task.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Check Internationalization
22

33
env:
44
# See vars.GO_VERSION field of https://github.com/arduino/arduino-cli/blob/master/DistTasks.yml
5-
GO_VERSION: "1.19"
5+
GO_VERSION: '1.19'
66

77
# See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows
88
on:

Diff for: .github/workflows/i18n-nightly-push.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: i18n-nightly-push
22

33
env:
44
# See vars.GO_VERSION field of https://github.com/arduino/arduino-cli/blob/master/DistTasks.yml
5-
GO_VERSION: "1.19"
5+
GO_VERSION: '1.19'
66

77
on:
88
schedule:

Diff for: .github/workflows/i18n-weekly-pull.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: i18n-weekly-pull
22

33
env:
44
# See vars.GO_VERSION field of https://github.com/arduino/arduino-cli/blob/master/DistTasks.yml
5-
GO_VERSION: "1.19"
5+
GO_VERSION: '1.19'
66

77
on:
88
schedule:

Diff for: .github/workflows/sync-labels.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ name: Sync Labels
55
on:
66
push:
77
paths:
8-
- ".github/workflows/sync-labels.ya?ml"
9-
- ".github/label-configuration-files/*.ya?ml"
8+
- '.github/workflows/sync-labels.ya?ml'
9+
- '.github/label-configuration-files/*.ya?ml'
1010
pull_request:
1111
paths:
12-
- ".github/workflows/sync-labels.ya?ml"
13-
- ".github/label-configuration-files/*.ya?ml"
12+
- '.github/workflows/sync-labels.ya?ml'
13+
- '.github/label-configuration-files/*.ya?ml'
1414
schedule:
1515
# Run daily at 8 AM UTC to sync with changes to shared label configurations.
16-
- cron: "0 8 * * *"
16+
- cron: '0 8 * * *'
1717
workflow_dispatch:
1818
repository_dispatch:
1919

Diff for: .github/workflows/themes-weekly-pull.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ on:
88

99
env:
1010
# See vars.GO_VERSION field of https://github.com/arduino/arduino-cli/blob/master/DistTasks.yml
11-
GO_VERSION: "1.19"
12-
NODE_VERSION: 16.x
11+
GO_VERSION: '1.19'
12+
NODE_VERSION: '18.17'
1313

1414
jobs:
1515
pull-from-jsonbin:

Diff for: .vscode/launch.json

+6-9
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"name": "App",
88
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron",
99
"windows": {
10-
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron.cmd",
10+
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron.cmd"
1111
},
1212
"cwd": "${workspaceFolder}/electron-app",
1313
"args": [
@@ -19,7 +19,7 @@
1919
"--no-app-auto-install",
2020
"--plugins=local-dir:./plugins",
2121
"--hosted-plugin-inspect=9339",
22-
"--no-ping-timeout",
22+
"--no-ping-timeout"
2323
],
2424
"env": {
2525
"NODE_ENV": "development"
@@ -42,7 +42,7 @@
4242
"name": "App [Dev]",
4343
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron",
4444
"windows": {
45-
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron.cmd",
45+
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron.cmd"
4646
},
4747
"cwd": "${workspaceFolder}/electron-app",
4848
"args": [
@@ -56,7 +56,7 @@
5656
"--hosted-plugin-inspect=9339",
5757
"--content-trace",
5858
"--open-devtools",
59-
"--no-ping-timeout",
59+
"--no-ping-timeout"
6060
],
6161
"env": {
6262
"NODE_ENV": "development"
@@ -115,15 +115,12 @@
115115
"request": "attach",
116116
"name": "Attach by Process ID",
117117
"processId": "${command:PickProcess}"
118-
},
118+
}
119119
],
120120
"compounds": [
121121
{
122122
"name": "Launch Electron Backend & Frontend",
123-
"configurations": [
124-
"App",
125-
"Attach to Electron Frontend"
126-
]
123+
"configurations": ["App", "Attach to Electron Frontend"]
127124
}
128125
]
129126
}

Diff for: .vscode/settings.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
"typescript.tsdk": "node_modules/typescript/lib",
99
"editor.codeActionsOnSave": {
1010
"source.fixAll.eslint": true
11-
},
11+
}
1212
}

Diff for: .vscode/tasks.json

+1-4
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,7 @@
3737
{
3838
"label": "Watch All",
3939
"type": "shell",
40-
"dependsOn": [
41-
"Watch Extension",
42-
"Watch App"
43-
]
40+
"dependsOn": ["Watch Extension", "Watch App"]
4441
}
4542
]
4643
}

Diff for: arduino-ide-extension/README.md

+14-10
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,14 @@ The Config Service knows about your system, like for example the default sketch
5555
- checking whether a file is in a data or sketch directory
5656

5757
### `"arduino"` configuration in the `package.json`:
58-
- `"cli"`:
59-
- `"version"` type `string` | `{ owner: string, repo: string, commitish?: string }`: if the type is a `string` and is a valid semver, it will get the corresponding [released](https://github.com/arduino/arduino-cli/releases) CLI. If the type is `string` and is a [date in `YYYYMMDD`](https://arduino.github.io/arduino-cli/latest/installation/#nightly-builds) format, it will get a nightly CLI. If the type is an object, a CLI, build from the sources in the `owner/repo` will be used. If `commitish` is not defined, the HEAD of the default branch will be used. In any other cases an error is thrown.
58+
59+
- `"cli"`:
60+
- `"version"` type `string` | `{ owner: string, repo: string, commitish?: string }`: if the type is a `string` and is a valid semver, it will get the corresponding [released](https://github.com/arduino/arduino-cli/releases) CLI. If the type is `string` and is a [date in `YYYYMMDD`](https://arduino.github.io/arduino-cli/latest/installation/#nightly-builds) format, it will get a nightly CLI. If the type is an object, a CLI, build from the sources in the `owner/repo` will be used. If `commitish` is not defined, the HEAD of the default branch will be used. In any other cases an error is thrown.
6061

6162
#### Rebuild gRPC protocol interfaces
62-
- Some CLI updates can bring changes to the gRPC interfaces, as the API might change. gRPC interfaces can be updated running the command
63-
`yarn --cwd arduino-ide-extension generate-protocol`
63+
64+
- Some CLI updates can bring changes to the gRPC interfaces, as the API might change. gRPC interfaces can be updated running the command
65+
`yarn --cwd arduino-ide-extension generate-protocol`
6466

6567
### Update **clangd** and **ClangFormat**
6668

@@ -72,11 +74,13 @@ The [**clangd** C++ language server](https://clangd.llvm.org/) and the [**ClangF
7274
1. Submit a pull request in [the `arduino/tooling-project-assets` repository](https://github.com/arduino/tooling-project-assets) to update the version in the `vars.DEFAULT_CLANG_FORMAT_VERSION` field of [`Taskfile.yml`](https://github.com/arduino/tooling-project-assets/blob/main/Taskfile.yml).
7375

7476
### Customize Icons
77+
7578
ArduinoIde uses a customized version of FontAwesome.
7679
In order to update/replace icons follow the following steps:
77-
- import the file `arduino-icons.json` in [Icomoon](https://icomoon.io/app/#/projects)
78-
- load it
79-
- edit the icons as needed
80-
- !! download the **new** `arduino-icons.json` file and put it in this repo
81-
- Click on "Generate Font" in Icomoon, then download
82-
- place the updated fonts in the `src/style/fonts` directory
80+
81+
- import the file `arduino-icons.json` in [Icomoon](https://icomoon.io/app/#/projects)
82+
- load it
83+
- edit the icons as needed
84+
- !! download the **new** `arduino-icons.json` file and put it in this repo
85+
- Click on "Generate Font" in Icomoon, then download
86+
- place the updated fonts in the `src/style/fonts` directory

0 commit comments

Comments
 (0)