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

.eslintrc.js

Lines changed: 61 additions & 61 deletions
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
};

.github/ISSUE_TEMPLATE/bug-report.yml

Lines changed: 1 addition & 1 deletion
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

.github/ISSUE_TEMPLATE/feature-request.yml

Lines changed: 1 addition & 1 deletion
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

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 7 additions & 4 deletions
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)

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
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'
Lines changed: 16 additions & 16 deletions
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

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
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

.github/workflows/check-i18n-task.yml

Lines changed: 1 addition & 1 deletion
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:

.github/workflows/i18n-nightly-push.yml

Lines changed: 1 addition & 1 deletion
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:

.github/workflows/i18n-weekly-pull.yml

Lines changed: 1 addition & 1 deletion
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:

0 commit comments

Comments
 (0)