Skip to content

Commit 986ad6d

Browse files
committed
feat: set default tabwidth of prettier to two spaces
Resolves #13612
1 parent 31a51f7 commit 986ad6d

File tree

597 files changed

+91813
-92414
lines changed

Some content is hidden

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

597 files changed

+91813
-92414
lines changed

.eslintrc.json

+33-33
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
11
{
2-
"env": {
3-
"node": true,
4-
"es6": true,
5-
"mocha": true
6-
},
7-
"extends": ["airbnb-base", "plugin:prettier/recommended"],
8-
"plugins": ["mocha", "prettier", "chai-friendly"],
9-
"rules": {
10-
"prettier/prettier": "error",
11-
"linebreak-style": 0,
12-
"eol-last": 2,
13-
"quotes": [2, "single", { "avoidEscape": true }],
14-
"semi": [2, "always"],
15-
"eqeqeq": [2, "smart"],
16-
"no-restricted-globals": ["off"],
17-
"no-use-before-define": [2, "nofunc"],
18-
"no-confusing-arrow": "off",
19-
"no-unused-vars": [2, { "vars": "local", "args": "none" }],
20-
"no-multi-str": 2,
21-
"no-irregular-whitespace": 2,
22-
"comma-dangle": "off",
23-
"max-len": "off",
24-
"func-names": "off",
25-
"class-methods-use-this": "off",
26-
"no-underscore-dangle": "off",
27-
"no-plusplus": "off",
28-
"no-unused-expressions": 0,
29-
"chai-friendly/no-unused-expressions": [2, { "allowShortCircuit": true, "allowTernary": true }],
30-
"prefer-destructuring": "off",
31-
"no-multi-assign": "off",
32-
"no-param-reassign": "off",
33-
"no-shadow": "off"
34-
}
2+
"env": {
3+
"node": true,
4+
"es6": true,
5+
"mocha": true
6+
},
7+
"extends": ["airbnb-base", "plugin:prettier/recommended"],
8+
"plugins": ["mocha", "prettier", "chai-friendly"],
9+
"rules": {
10+
"prettier/prettier": "error",
11+
"linebreak-style": 0,
12+
"eol-last": 2,
13+
"quotes": [2, "single", { "avoidEscape": true }],
14+
"semi": [2, "always"],
15+
"eqeqeq": [2, "smart"],
16+
"no-restricted-globals": ["off"],
17+
"no-use-before-define": [2, "nofunc"],
18+
"no-confusing-arrow": "off",
19+
"no-unused-vars": [2, { "vars": "local", "args": "none" }],
20+
"no-multi-str": 2,
21+
"no-irregular-whitespace": 2,
22+
"comma-dangle": "off",
23+
"max-len": "off",
24+
"func-names": "off",
25+
"class-methods-use-this": "off",
26+
"no-underscore-dangle": "off",
27+
"no-plusplus": "off",
28+
"no-unused-expressions": 0,
29+
"chai-friendly/no-unused-expressions": [2, { "allowShortCircuit": true, "allowTernary": true }],
30+
"prefer-destructuring": "off",
31+
"no-multi-assign": "off",
32+
"no-param-reassign": "off",
33+
"no-shadow": "off"
34+
}
3535
}

.github/ISSUE_TEMPLATE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ If you are using JDL, please share that configuration as well.
5252

5353
<!-- What OS are you on? is this a problem with all browsers or only IE8? -->
5454

55-
- [ ] Checking this box is mandatory (this is just to show you read everything)
55+
- [ ] Checking this box is mandatory (this is just to show you read everything)
5656

5757
<!-- Love JHipster? Please consider supporting our collective:
5858
👉 https://opencollective.com/generator-jhipster/donate -->

.github/ISSUE_TEMPLATE/BUG_REPORT.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ If you are using JDL, please share that configuration as well.
6565

6666
<!-- What OS are you on? is this a problem with all browsers or only IE8? -->
6767

68-
- [ ] Checking this box is mandatory (this is just to show you read everything)
68+
- [ ] Checking this box is mandatory (this is just to show you read everything)
6969

7070
<!-- Love JHipster? Please consider supporting our collective:
7171
👉 https://opencollective.com/generator-jhipster/donate -->

.github/ISSUE_TEMPLATE/FEATURE_REQUEST.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ about: Suggest an improvement.
1515

1616
<!-- Has a similar feature request been asked for before? Please search both closed & open issues -->
1717

18-
- [ ] Checking this box is mandatory (this is just to show you read everything)
18+
- [ ] Checking this box is mandatory (this is just to show you read everything)
1919

2020
<!-- Love JHipster? Please consider supporting our collective:
2121
👉 https://opencollective.com/generator-jhipster/donate -->

.github/ISSUE_TEMPLATE/SUPPORT_QUESTION.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ about: If you have a question, please use StackOverflow!
88
We primarily use GitHub as an issue tracker, if your issue is not a **bug** or **feature request** then sorry you are not in the right place :wink:.
99
**If you have a question** please use Stack Overflow, and tag the question with [jhipster](http://stackoverflow.com/questions/tagged/jhipster). This will help the project to keep a clean issue tracker. Also, Stack Overflow will give your question a larger audience:
1010

11-
- This will increase your chances to get an answer
12-
- Answers will be of higher quality, as there is a voting system
13-
- This will also help other users who might have the same issue, as questions are tagged and easily searchable
11+
- This will increase your chances to get an answer
12+
- Answers will be of higher quality, as there is a voting system
13+
- This will also help other users who might have the same issue, as questions are tagged and easily searchable

.github/MAINTAINERS_REPLY_TEMPLATES/DONT_COMMENT_ON_OLD_ISSUE.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ If you think this issue still applies, please [create a new ticket](https://gith
33

44
**If you have a question** please use Stack Overflow, and tag the question with [jhipster](http://stackoverflow.com/questions/tagged/jhipster). This helps the project to keep the issue tracker clean. Also, Stack Overflow will give your question a larger audience:
55

6-
- This will increase your chances to get an answer
7-
- Answers will be of higher quality, as there is a voting system
8-
- This will also help other users who might have the same issue, as questions are tagged and easily searchable
6+
- This will increase your chances to get an answer
7+
- Answers will be of higher quality, as there is a voting system
8+
- This will also help other users who might have the same issue, as questions are tagged and easily searchable
99

1010
Finally, you can also use [our chat room on gitter](https://gitter.im/jhipster/generator-jhipster).

.github/MAINTAINERS_REPLY_TEMPLATES/GUIDELINES_NOT_FOLLOWED.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ Issues opened without proper details will be closed without explanation.
1313

1414
**If you have a question** please use Stack Overflow, and tag the question with [jhipster](http://stackoverflow.com/questions/tagged/jhipster). This helps the project to keep the issue tracker clean. Also, Stack Overflow will give your question a larger audience:
1515

16-
- This will increase your chances to get an answer
17-
- Answers will be of higher quality, as there is a voting system
18-
- This will also help other users who might have the same issue, as questions are tagged and easily searchable
16+
- This will increase your chances to get an answer
17+
- Answers will be of higher quality, as there is a voting system
18+
- This will also help other users who might have the same issue, as questions are tagged and easily searchable
1919

2020
Finally, you can also use [our chat room on gitter](https://gitter.im/jhipster/generator-jhipster).

.github/MAINTAINERS_REPLY_TEMPLATES/README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Here is a list of common **reply messages** shared by core team members to help
44

55
You can add those to your [GitHub saved replies settings](https://github.com/settings/replies).
66

7-
- [Guidelines are not followed](GUIDELINES_NOT_FOLLOWED.md)
8-
- [Use Stack Overflow](USE_STACK_OVERFLOW.md)
9-
- [Don't comment on an old issue](DONT_COMMENT_ON_OLD_ISSUE.md)
10-
- [Build as a module](BUILD_AS_MODULE.md)
7+
- [Guidelines are not followed](GUIDELINES_NOT_FOLLOWED.md)
8+
- [Use Stack Overflow](USE_STACK_OVERFLOW.md)
9+
- [Don't comment on an old issue](DONT_COMMENT_ON_OLD_ISSUE.md)
10+
- [Build as a module](BUILD_AS_MODULE.md)
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
This is not a **bug** or **feature request** and hence this is not the correct forum for this.
22
**If you have a question** please use Stack Overflow, and tag the question with [jhipster](http://stackoverflow.com/questions/tagged/jhipster). This will help the project to keep a clean issue tracker. Also, Stack Overflow will give your question a larger audience:
33

4-
- This will increase your chances to get an answer
5-
- Answers will be of higher quality, as there is a voting system
6-
- This will also help other users who might have the same issue, as questions are tagged and easily searchable
4+
- This will increase your chances to get an answer
5+
- Answers will be of higher quality, as there is a voting system
6+
- This will also help other users who might have the same issue, as questions are tagged and easily searchable
77

88
Finally, you can also use [our chat room on gitter](https://gitter.im/jhipster/generator-jhipster).

.github/PULL_REQUEST_TEMPLATE.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ PR description.
66

77
Please make sure the below checklist is followed for Pull Requests.
88

9-
- [ ] [All continuous integration tests](https://github.com/jhipster/generator-jhipster/actions) are green
10-
- [ ] Tests are added where necessary
11-
- [ ] [jhipster-online](https://github.com/jhipster/jhipster-online) was updated if necessary
12-
- [ ] Documentation is added/updated where necessary
13-
- [ ] Coding Rules & Commit Guidelines as per our [CONTRIBUTING.md document](https://github.com/jhipster/generator-jhipster/blob/main/CONTRIBUTING.md) are followed
9+
- [ ] [All continuous integration tests](https://github.com/jhipster/generator-jhipster/actions) are green
10+
- [ ] Tests are added where necessary
11+
- [ ] [jhipster-online](https://github.com/jhipster/jhipster-online) was updated if necessary
12+
- [ ] Documentation is added/updated where necessary
13+
- [ ] Coding Rules & Commit Guidelines as per our [CONTRIBUTING.md document](https://github.com/jhipster/generator-jhipster/blob/main/CONTRIBUTING.md) are followed
1414

1515
When you are still working on the PR, consider converting it to Draft (bellow reviewers) and adding `skip-ci` label, you can still see CI build result at your branch.
1616

.github/dependabot.yml

+52-52
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,59 @@
11
version: 2
22
updates:
3-
- package-ecosystem: 'npm'
4-
directory: '/'
5-
schedule:
6-
interval: 'weekly'
7-
open-pull-requests-limit: 10
8-
labels:
9-
- 'theme: jhipster-internals'
10-
- 'theme: dependencies'
3+
- package-ecosystem: 'npm'
4+
directory: '/'
5+
schedule:
6+
interval: 'weekly'
7+
open-pull-requests-limit: 10
8+
labels:
9+
- 'theme: jhipster-internals'
10+
- 'theme: dependencies'
1111

12-
- package-ecosystem: 'npm'
13-
directory: '/generators/client/templates/angular/'
14-
schedule:
15-
interval: 'daily'
16-
open-pull-requests-limit: 5
17-
versioning-strategy: increase
18-
labels:
19-
- 'theme: angular'
20-
- 'theme: dependencies'
12+
- package-ecosystem: 'npm'
13+
directory: '/generators/client/templates/angular/'
14+
schedule:
15+
interval: 'daily'
16+
open-pull-requests-limit: 5
17+
versioning-strategy: increase
18+
labels:
19+
- 'theme: angular'
20+
- 'theme: dependencies'
2121

22-
- package-ecosystem: 'npm'
23-
directory: '/generators/client/templates/common/'
24-
schedule:
25-
interval: 'daily'
26-
open-pull-requests-limit: 5
27-
versioning-strategy: increase
28-
labels:
29-
- 'theme: front'
30-
- 'theme: dependencies'
22+
- package-ecosystem: 'npm'
23+
directory: '/generators/client/templates/common/'
24+
schedule:
25+
interval: 'daily'
26+
open-pull-requests-limit: 5
27+
versioning-strategy: increase
28+
labels:
29+
- 'theme: front'
30+
- 'theme: dependencies'
3131

32-
- package-ecosystem: 'npm'
33-
directory: '/generators/client/templates/react/'
34-
schedule:
35-
interval: 'daily'
36-
open-pull-requests-limit: 5
37-
versioning-strategy: increase
38-
labels:
39-
- 'theme: react'
40-
- 'theme: dependencies'
32+
- package-ecosystem: 'npm'
33+
directory: '/generators/client/templates/react/'
34+
schedule:
35+
interval: 'daily'
36+
open-pull-requests-limit: 5
37+
versioning-strategy: increase
38+
labels:
39+
- 'theme: react'
40+
- 'theme: dependencies'
4141

42-
- package-ecosystem: 'npm'
43-
directory: '/generators/client/templates/vue/'
44-
schedule:
45-
interval: 'daily'
46-
open-pull-requests-limit: 5
47-
versioning-strategy: increase
48-
labels:
49-
- 'theme: vue'
50-
- 'theme: dependencies'
42+
- package-ecosystem: 'npm'
43+
directory: '/generators/client/templates/vue/'
44+
schedule:
45+
interval: 'daily'
46+
open-pull-requests-limit: 5
47+
versioning-strategy: increase
48+
labels:
49+
- 'theme: vue'
50+
- 'theme: dependencies'
5151

52-
- package-ecosystem: 'github-actions'
53-
directory: '/'
54-
schedule:
55-
interval: 'weekly'
56-
open-pull-requests-limit: 10
57-
labels:
58-
- 'theme: github_actions'
59-
- 'theme: CI builds'
52+
- package-ecosystem: 'github-actions'
53+
directory: '/'
54+
schedule:
55+
interval: 'weekly'
56+
open-pull-requests-limit: 10
57+
labels:
58+
- 'theme: github_actions'
59+
- 'theme: CI builds'

.github/release-drafter.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
template: |
2-
## What’s Changed
2+
## What’s Changed
33
4-
$CHANGES
4+
$CHANGES

0 commit comments

Comments
 (0)