Skip to content

Commit 4364b26

Browse files
authored
Upgrade prettier (jestjs#6846)
1 parent 4ebc778 commit 4364b26

File tree

16 files changed

+98
-510
lines changed

16 files changed

+98
-510
lines changed

.circleci/config.yml

+9-9
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ aliases:
1010
- node_modules
1111
- website/node_modules
1212
key: v2-dependencies-{{ .Branch }}-{{ checksum "yarn.lock" }}
13-
13+
1414
- &filter-ignore-gh-pages
1515
branches:
1616
ignore: gh-pages
@@ -53,9 +53,9 @@ jobs:
5353
- run:
5454
command: yarn test-ci-partial
5555
environment:
56-
JEST_JUNIT_OUTPUT: "reports/junit/js-test-results.xml"
56+
JEST_JUNIT_OUTPUT: 'reports/junit/js-test-results.xml'
5757
- store_test_results:
58-
path: reports/junit
58+
path: reports/junit
5959

6060
test-jest-circus:
6161
working_directory: ~/jest
@@ -69,9 +69,9 @@ jobs:
6969
- run:
7070
command: JEST_CIRCUS=1 yarn test-ci-partial
7171
environment:
72-
JEST_JUNIT_OUTPUT: "reports/junit/js-test-results.xml"
72+
JEST_JUNIT_OUTPUT: 'reports/junit/js-test-results.xml'
7373
- store_test_results:
74-
path: reports/junit
74+
path: reports/junit
7575

7676
test-node-8:
7777
working_directory: ~/jest
@@ -85,9 +85,9 @@ jobs:
8585
- run:
8686
command: yarn test-ci
8787
environment:
88-
JEST_JUNIT_OUTPUT: "reports/junit/js-test-results.xml"
88+
JEST_JUNIT_OUTPUT: 'reports/junit/js-test-results.xml'
8989
- store_test_results:
90-
path: reports/junit
90+
path: reports/junit
9191

9292
test-node-6:
9393
working_directory: ~/jest
@@ -101,9 +101,9 @@ jobs:
101101
- run:
102102
command: yarn test-ci-partial
103103
environment:
104-
JEST_JUNIT_OUTPUT: "reports/junit/js-test-results.xml"
104+
JEST_JUNIT_OUTPUT: 'reports/junit/js-test-results.xml'
105105
- store_test_results:
106-
path: reports/junit
106+
path: reports/junit
107107

108108
test-or-deploy-website:
109109
working_directory: ~/jest

.github/ISSUE_TEMPLATE/bug.md

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
32
name: 🐛 Bug report
43
about: Create a report to help us improve
54
---

.github/ISSUE_TEMPLATE/feature.md

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
32
name: 🚀 Feature Proposal
43
about: Submit a proposal for a new feature
54
---

.github/ISSUE_TEMPLATE/question.md

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
32
name: 💬 Questions / Help
43
about: If you have questions, please check our Discord or StackOverflow
54
---

.github/ISSUE_TEMPLATE/regression.md

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
32
name: 💥 Regression Report
43
about: Report unexpected behavior that worked in previous versions
54
---

.travis.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
language: node_js
22

33
node_js:
4-
- "10"
4+
- '10'
55

66
sudo: false
77

@@ -12,8 +12,8 @@ before_install:
1212
cache:
1313
yarn: true
1414
directories:
15-
- ".eslintcache"
16-
- "node_modules"
15+
- '.eslintcache'
16+
- 'node_modules'
1717

1818
script:
1919
- yarn run test-ci-partial

appveyor.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
environment:
22
matrix:
3-
- nodejs_version: "8"
3+
- nodejs_version: '8'
44

55
init:
66
# debugging Appveyor build. More info:

crowdin.yaml

+4-7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
project_identifier_env: CROWDIN_JEST_PROJECT_ID
22
api_key_env: CROWDIN_JEST_API_KEY
3-
base_path: "./"
3+
base_path: './'
44
preserve_hierarchy: true
55

66
files:
7-
-
8-
source: '/docs/*.md'
7+
- source: '/docs/*.md'
98
translation: '/website/translated_docs/%locale%/%original_file_name%'
109
languages_mapping: &anchor
1110
locale:
@@ -43,11 +42,9 @@ files:
4342
'vi': 'vi'
4443
'zh-CN': 'zh-Hans'
4544
'zh-TW': 'zh-Hant'
46-
-
47-
source: '/website/versioned_docs/**/*.md'
45+
- source: '/website/versioned_docs/**/*.md'
4846
translation: '/website/translated_docs/%locale%/**/%original_file_name%'
4947
languages_mapping: *anchor
50-
-
51-
source: '/website/i18n/en.json'
48+
- source: '/website/i18n/en.json'
5249
translation: '/website/i18n/%locale%.json'
5350
languages_mapping: *anchor

docs/Webpack.md

+3-6
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ Next, let's configure Jest to gracefully handle asset files such as stylesheets
4747
{
4848
"jest": {
4949
"moduleNameMapper": {
50-
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$":
51-
"<rootDir>/__mocks__/fileMock.js",
50+
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/__mocks__/fileMock.js",
5251
"\\.(css|less)$": "<rootDir>/__mocks__/styleMock.js"
5352
}
5453
}
@@ -84,8 +83,7 @@ Then all your className lookups on the styles object will be returned as-is (e.g
8483
{
8584
"jest": {
8685
"moduleNameMapper": {
87-
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$":
88-
"<rootDir>/__mocks__/fileMock.js",
86+
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/__mocks__/fileMock.js",
8987
"\\.(css|less)$": "identity-obj-proxy"
9088
}
9189
}
@@ -115,8 +113,7 @@ module.exports = {
115113
"\\.(css|less)$": "identity-obj-proxy"
116114
},
117115
"transform": {
118-
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$":
119-
"<rootDir>/fileTransformer.js"
116+
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/fileTransformer.js"
120117
}
121118
}
122119
}

website/versioned_docs/version-22.0/Webpack.md

+3-6
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ Next, let's configure Jest to gracefully handle asset files such as stylesheets
4848
{
4949
"jest": {
5050
"moduleNameMapper": {
51-
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$":
52-
"<rootDir>/__mocks__/fileMock.js",
51+
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/__mocks__/fileMock.js",
5352
"\\.(css|less)$": "<rootDir>/__mocks__/styleMock.js"
5453
}
5554
}
@@ -85,8 +84,7 @@ Then all your className lookups on the styles object will be returned as-is (e.g
8584
{
8685
"jest": {
8786
"moduleNameMapper": {
88-
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$":
89-
"<rootDir>/__mocks__/fileMock.js",
87+
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/__mocks__/fileMock.js",
9088
"\\.(css|less)$": "identity-obj-proxy"
9189
}
9290
}
@@ -116,8 +114,7 @@ module.exports = {
116114
"\\.(css|less)$": "identity-obj-proxy"
117115
},
118116
"transform": {
119-
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$":
120-
"<rootDir>/fileTransformer.js"
117+
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/fileTransformer.js"
121118
}
122119
}
123120
}

website/versioned_docs/version-22.1/Webpack.md

+3-6
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ Next, let's configure Jest to gracefully handle asset files such as stylesheets
4848
{
4949
"jest": {
5050
"moduleNameMapper": {
51-
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$":
52-
"<rootDir>/__mocks__/fileMock.js",
51+
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/__mocks__/fileMock.js",
5352
"\\.(css|less)$": "<rootDir>/__mocks__/styleMock.js"
5453
}
5554
}
@@ -85,8 +84,7 @@ Then all your className lookups on the styles object will be returned as-is (e.g
8584
{
8685
"jest": {
8786
"moduleNameMapper": {
88-
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$":
89-
"<rootDir>/__mocks__/fileMock.js",
87+
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/__mocks__/fileMock.js",
9088
"\\.(css|less)$": "identity-obj-proxy"
9189
}
9290
}
@@ -116,8 +114,7 @@ module.exports = {
116114
"\\.(css|less)$": "identity-obj-proxy"
117115
},
118116
"transform": {
119-
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$":
120-
"<rootDir>/fileTransformer.js"
117+
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/fileTransformer.js"
121118
}
122119
}
123120
}

website/versioned_docs/version-22.2/Webpack.md

+3-6
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ Next, let's configure Jest to gracefully handle asset files such as stylesheets
4848
{
4949
"jest": {
5050
"moduleNameMapper": {
51-
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$":
52-
"<rootDir>/__mocks__/fileMock.js",
51+
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/__mocks__/fileMock.js",
5352
"\\.(css|less)$": "<rootDir>/__mocks__/styleMock.js"
5453
}
5554
}
@@ -85,8 +84,7 @@ Then all your className lookups on the styles object will be returned as-is (e.g
8584
{
8685
"jest": {
8786
"moduleNameMapper": {
88-
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$":
89-
"<rootDir>/__mocks__/fileMock.js",
87+
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/__mocks__/fileMock.js",
9088
"\\.(css|less)$": "identity-obj-proxy"
9189
}
9290
}
@@ -116,8 +114,7 @@ module.exports = {
116114
"\\.(css|less)$": "identity-obj-proxy"
117115
},
118116
"transform": {
119-
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$":
120-
"<rootDir>/fileTransformer.js"
117+
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/fileTransformer.js"
121118
}
122119
}
123120
}

website/versioned_docs/version-22.3/Webpack.md

+3-6
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ Next, let's configure Jest to gracefully handle asset files such as stylesheets
4848
{
4949
"jest": {
5050
"moduleNameMapper": {
51-
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$":
52-
"<rootDir>/__mocks__/fileMock.js",
51+
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/__mocks__/fileMock.js",
5352
"\\.(css|less)$": "<rootDir>/__mocks__/styleMock.js"
5453
}
5554
}
@@ -85,8 +84,7 @@ Then all your className lookups on the styles object will be returned as-is (e.g
8584
{
8685
"jest": {
8786
"moduleNameMapper": {
88-
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$":
89-
"<rootDir>/__mocks__/fileMock.js",
87+
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/__mocks__/fileMock.js",
9088
"\\.(css|less)$": "identity-obj-proxy"
9189
}
9290
}
@@ -116,8 +114,7 @@ module.exports = {
116114
"\\.(css|less)$": "identity-obj-proxy"
117115
},
118116
"transform": {
119-
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$":
120-
"<rootDir>/fileTransformer.js"
117+
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/fileTransformer.js"
121118
}
122119
}
123120
}

website/versioned_docs/version-22.4/Webpack.md

+3-6
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ Next, let's configure Jest to gracefully handle asset files such as stylesheets
4848
{
4949
"jest": {
5050
"moduleNameMapper": {
51-
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$":
52-
"<rootDir>/__mocks__/fileMock.js",
51+
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/__mocks__/fileMock.js",
5352
"\\.(css|less)$": "<rootDir>/__mocks__/styleMock.js"
5453
}
5554
}
@@ -85,8 +84,7 @@ Then all your className lookups on the styles object will be returned as-is (e.g
8584
{
8685
"jest": {
8786
"moduleNameMapper": {
88-
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$":
89-
"<rootDir>/__mocks__/fileMock.js",
87+
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/__mocks__/fileMock.js",
9088
"\\.(css|less)$": "identity-obj-proxy"
9189
}
9290
}
@@ -116,8 +114,7 @@ module.exports = {
116114
"\\.(css|less)$": "identity-obj-proxy"
117115
},
118116
"transform": {
119-
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$":
120-
"<rootDir>/fileTransformer.js"
117+
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/fileTransformer.js"
121118
}
122119
}
123120
}

website/versioned_docs/version-23.0/Webpack.md

+3-6
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ Next, let's configure Jest to gracefully handle asset files such as stylesheets
4848
{
4949
"jest": {
5050
"moduleNameMapper": {
51-
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$":
52-
"<rootDir>/__mocks__/fileMock.js",
51+
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/__mocks__/fileMock.js",
5352
"\\.(css|less)$": "<rootDir>/__mocks__/styleMock.js"
5453
}
5554
}
@@ -85,8 +84,7 @@ Then all your className lookups on the styles object will be returned as-is (e.g
8584
{
8685
"jest": {
8786
"moduleNameMapper": {
88-
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$":
89-
"<rootDir>/__mocks__/fileMock.js",
87+
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/__mocks__/fileMock.js",
9088
"\\.(css|less)$": "identity-obj-proxy"
9189
}
9290
}
@@ -116,8 +114,7 @@ module.exports = {
116114
"\\.(css|less)$": "identity-obj-proxy"
117115
},
118116
"transform": {
119-
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$":
120-
"<rootDir>/fileTransformer.js"
117+
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/fileTransformer.js"
121118
}
122119
}
123120
}

0 commit comments

Comments
 (0)