Skip to content

Commit

Permalink
Format fixture JSON with Prettier. (#8658)
Browse files Browse the repository at this point in the history
  • Loading branch information
loganfsmyth committed Sep 10, 2018
1 parent 45c28fa commit 79b2af5
Show file tree
Hide file tree
Showing 1,075 changed files with 2,632 additions and 1,872 deletions.
2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"bracketSpacing": true,
"jsxBracketSameLine": false,
"tabWidth": 2,
"parser": "babylon",
"printWidth": 80,
"overrides": [{
"files": [
Expand All @@ -16,6 +15,7 @@
"**/packages/*/src/**/*.js",
"**/packages/*/test/**/*.js"
],
"parser": "babylon",
"options": {
"trailingComma": "all"
}
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ lint:
fix:
./node_modules/.bin/eslint scripts $(SOURCES) '*.js' --format=codeframe --fix

fix-json:
./node_modules/.bin/prettier "{packages,codemod}/*/test/fixtures/**/options.json" --write --loglevel warn

clean: test-clean
rm -rf packages/babel-polyfill/browser*
rm -rf packages/babel-polyfill/dist
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
{
"args": [
"src",
"--out-dir", "lib",
"--out-dir",
"lib",
"--copy-files",
"--include-dotfiles",
"--ignore", "src/foo",
"--ignore",
"src/foo",
"--verbose"
]
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
{
"args": [
"src",
"--out-dir", "lib",
"--out-dir",
"lib",
"--copy-files",
"--include-dotfiles",
"--only", "src/foo",
"--only",
"src/foo",
"--verbose"
]
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
{
"args": ["src", "--out-dir", "lib", "--copy-files", "--include-dotfiles", "--verbose"]
"args": [
"src",
"--out-dir",
"lib",
"--copy-files",
"--include-dotfiles",
"--verbose"
]
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{
"args": [
"src",
"--out-dir", "lib",
"--out-dir",
"lib",
"--copy-files",
"--ignore", "src/foo/*",
"--ignore",
"src/foo/*",
"--verbose"
]
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{
"args": [
"src",
"--out-dir", "lib",
"--out-dir",
"lib",
"--copy-files",
"--only", "src/foo/*",
"--only",
"src/foo/*",
"--verbose"
]
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"args": ["src", "--skip-initial-build", "--out-dir", "lib"]
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
{
"args": ["script.js", "script2.js", "--source-maps", "inline", "--out-file", "script3.js"]
"args": [
"script.js",
"script2.js",
"--source-maps",
"inline",
"--out-file",
"script3.js"
]
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
{
"args": ["script.js", "script2.js", "--source-maps", "--out-file", "script3.js"]
"args": [
"script.js",
"script2.js",
"--source-maps",
"--out-file",
"script3.js"
]
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
{
"plugins": ["transform-classes", "external-helpers", "transform-block-scoping"]
"plugins": [
"transform-classes",
"external-helpers",
"transform-block-scoping"
]
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
{
"plugins": ["syntax-flow", "transform-flow-strip-types", "transform-parameters", "transform-block-scoping"]
"plugins": [
"syntax-flow",
"transform-flow-strip-types",
"transform-parameters",
"transform-block-scoping"
]
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
{
"plugins": ["transform-parameters", "transform-arrow-functions", "transform-block-scoping"]
"plugins": [
"transform-parameters",
"transform-arrow-functions",
"transform-block-scoping"
]
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
{
"compact": false,
"presets": [
"env"
],
"plugins": [
"external-helpers",
"proposal-object-rest-spread"
]
"presets": ["env"],
"plugins": ["external-helpers", "proposal-object-rest-spread"]
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
{
"plugins": ["transform-destructuring", "transform-parameters", "transform-block-scoping", "transform-regenerator"]
"plugins": [
"transform-destructuring",
"transform-parameters",
"transform-block-scoping",
"transform-regenerator"
]
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
{
"plugins": ["external-helpers", "transform-classes", "transform-block-scoping"]
"plugins": [
"external-helpers",
"transform-classes",
"transform-block-scoping"
]
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{
"plugins": [
"transform-modules-commonjs"
]
"plugins": ["transform-modules-commonjs"]
}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "plugins": ["jsx"] }
{ "plugins": ["jsx"] }
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "plugins": ["objectRestSpread"] }
{ "plugins": ["objectRestSpread"] }
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
"plugins": [
["decorators", { "decoratorsBeforeExport": false }]
],
"plugins": [["decorators", { "decoratorsBeforeExport": false }]],
"decoratorsBeforeExport": false
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
"plugins": [
["decorators", { "decoratorsBeforeExport": false }]
],
"plugins": [["decorators", { "decoratorsBeforeExport": false }]],
"decoratorsBeforeExport": true
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
"plugins": [
["decorators", { "decoratorsBeforeExport": true }]
],
"plugins": [["decorators", { "decoratorsBeforeExport": true }]],
"decoratorsBeforeExport": false
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
"plugins": [
["decorators", { "decoratorsBeforeExport": true }]
],
"plugins": [["decorators", { "decoratorsBeforeExport": true }]],
"decoratorsBeforeExport": true
}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "plugins": ["classProperties", "flow"] }
{ "plugins": ["classProperties", "flow"] }
2 changes: 1 addition & 1 deletion packages/babel-generator/test/fixtures/flow/options.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "plugins": ["flow"] }
{ "plugins": ["flow"] }
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "plugins": ["classPrivateProperties", "flow"] }
{ "plugins": ["classPrivateProperties", "flow"] }
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "plugins": ["flow"] }
{ "plugins": ["flow"] }
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "plugins": ["doExpressions"] }
{ "plugins": ["doExpressions"] }
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "plugins": ["bigInt"] }
{ "plugins": ["bigInt"] }
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "plugins": ["functionBind"] }
{ "plugins": ["functionBind"] }
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "plugins": ["doExpressions"] }
{ "plugins": ["doExpressions"] }
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "plugins": ["dynamicImport"] }
{ "plugins": ["dynamicImport"] }
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "plugins": ["jsx" ] }
{ "plugins": ["jsx"] }
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "plugins": ["jsx" ] }
{ "plugins": ["jsx"] }
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "plugins": ["jsx" ] }
{ "plugins": ["jsx"] }
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "plugins": ["jsx" ] }
{ "plugins": ["jsx"] }
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "plugins": ["jsx" ] }
{ "plugins": ["jsx"] }
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "plugins": ["jsx" ] }
{ "plugins": ["jsx"] }
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "plugins": ["jsx" ] }
{ "plugins": ["jsx"] }
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "plugins": ["jsx" ] }
{ "plugins": ["jsx"] }
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "plugins": ["jsx" ] }
{ "plugins": ["jsx"] }
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "plugins": ["jsx" ] }
{ "plugins": ["jsx"] }
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "plugins": ["optionalChaining"] }
{ "plugins": ["optionalChaining"] }
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "plugins": ["optionalChaining"] }
{ "plugins": ["optionalChaining"] }
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "plugins": ["optionalCatchBinding"] }
{ "plugins": ["optionalCatchBinding"] }
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "plugins": ["objectRestSpread"] }
{ "plugins": ["objectRestSpread"] }
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"plugins": ["jsx", "typescript"]
}
"plugins": ["jsx", "typescript"]
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"plugins": ["exportDefaultFrom", "typescript"]
"plugins": ["exportDefaultFrom", "typescript"]
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"plugins": ["jsx", "typescript"],
"sourceType": "module"
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"plugins": [ "./plugin" ]
}
"plugins": ["./plugin"]
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"plugins": [ "./plugin" ]
}
"plugins": ["./plugin"]
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"plugins": [ "./plugin" ],
"plugins": ["./plugin"],
"throws": " "
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"plugins": [ "./plugin" ]
}
"plugins": ["./plugin"]
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"plugins": [ "./plugin" ]
}
"plugins": ["./plugin"]
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"plugins": [ "./plugin" ]
}
"plugins": ["./plugin"]
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"plugins": [ "./plugin" ]
}
"plugins": ["./plugin"]
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"plugins": [ "./plugin" ]
}
"plugins": ["./plugin"]
}

0 comments on commit 79b2af5

Please sign in to comment.