Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Format fixture options.json with Prettier. #8658

Merged
merged 1 commit into from Sep 10, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .prettierrc
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
Expand Up @@ -52,6 +52,9 @@ lint:
fix:
xtuc marked this conversation as resolved.
Show resolved Hide resolved
./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
@@ -1,10 +1,12 @@
{
"args": [
"src",
"--out-dir", "lib",
"--out-dir",
"lib",
"--copy-files",
"--include-dotfiles",
"--ignore", "src/foo",
"--ignore",
"src/foo",
"--verbose"
]
}
@@ -1,10 +1,12 @@
{
"args": [
"src",
"--out-dir", "lib",
"--out-dir",
"lib",
"--copy-files",
"--include-dotfiles",
"--only", "src/foo",
"--only",
"src/foo",
"--verbose"
]
}
@@ -1,3 +1,10 @@
{
"args": ["src", "--out-dir", "lib", "--copy-files", "--include-dotfiles", "--verbose"]
"args": [
"src",
"--out-dir",
"lib",
"--copy-files",
"--include-dotfiles",
"--verbose"
]
}
@@ -1,9 +1,11 @@
{
"args": [
"src",
"--out-dir", "lib",
"--out-dir",
"lib",
"--copy-files",
"--ignore", "src/foo/*",
"--ignore",
"src/foo/*",
"--verbose"
]
}
@@ -1,9 +1,11 @@
{
"args": [
"src",
"--out-dir", "lib",
"--out-dir",
"lib",
"--copy-files",
"--only", "src/foo/*",
"--only",
"src/foo/*",
"--verbose"
]
}
@@ -1,3 +1,3 @@
{
"args": ["src", "--skip-initial-build", "--out-dir", "lib"]
}
}
@@ -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"
]
}
@@ -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"
]
}
@@ -1,3 +1,7 @@
{
"plugins": ["transform-classes", "external-helpers", "transform-block-scoping"]
"plugins": [
"transform-classes",
"external-helpers",
"transform-block-scoping"
]
}
@@ -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"
]
}
@@ -1,3 +1,7 @@
{
"plugins": ["transform-parameters", "transform-arrow-functions", "transform-block-scoping"]
"plugins": [
"transform-parameters",
"transform-arrow-functions",
"transform-block-scoping"
]
}
@@ -1,10 +1,5 @@
{
"compact": false,
"presets": [
"env"
],
"plugins": [
"external-helpers",
"proposal-object-rest-spread"
]
"presets": ["env"],
"plugins": ["external-helpers", "proposal-object-rest-spread"]
}
@@ -1,3 +1,8 @@
{
"plugins": ["transform-destructuring", "transform-parameters", "transform-block-scoping", "transform-regenerator"]
"plugins": [
"transform-destructuring",
"transform-parameters",
"transform-block-scoping",
"transform-regenerator"
]
}
@@ -1,3 +1,7 @@
{
"plugins": ["external-helpers", "transform-classes", "transform-block-scoping"]
"plugins": [
"external-helpers",
"transform-classes",
"transform-block-scoping"
]
}
@@ -1,5 +1,3 @@
{
"plugins": [
"transform-modules-commonjs"
]
"plugins": ["transform-modules-commonjs"]
}
@@ -1 +1 @@
{ "plugins": ["jsx"] }
{ "plugins": ["jsx"] }
@@ -1 +1 @@
{ "plugins": ["objectRestSpread"] }
{ "plugins": ["objectRestSpread"] }
@@ -1,6 +1,4 @@
{
"plugins": [
["decorators", { "decoratorsBeforeExport": false }]
],
"plugins": [["decorators", { "decoratorsBeforeExport": false }]],
"decoratorsBeforeExport": false
}
@@ -1,6 +1,4 @@
{
"plugins": [
["decorators", { "decoratorsBeforeExport": false }]
],
"plugins": [["decorators", { "decoratorsBeforeExport": false }]],
"decoratorsBeforeExport": true
}
@@ -1,6 +1,4 @@
{
"plugins": [
["decorators", { "decoratorsBeforeExport": true }]
],
"plugins": [["decorators", { "decoratorsBeforeExport": true }]],
"decoratorsBeforeExport": false
}
@@ -1,6 +1,4 @@
{
"plugins": [
["decorators", { "decoratorsBeforeExport": true }]
],
"plugins": [["decorators", { "decoratorsBeforeExport": true }]],
"decoratorsBeforeExport": true
}
@@ -1 +1 @@
{ "plugins": ["classProperties", "flow"] }
{ "plugins": ["classProperties", "flow"] }
2 changes: 1 addition & 1 deletion packages/babel-generator/test/fixtures/flow/options.json
@@ -1 +1 @@
{ "plugins": ["flow"] }
{ "plugins": ["flow"] }
@@ -1 +1 @@
{ "plugins": ["classPrivateProperties", "flow"] }
{ "plugins": ["classPrivateProperties", "flow"] }
@@ -1 +1 @@
{ "plugins": ["flow"] }
{ "plugins": ["flow"] }
@@ -1 +1 @@
{ "plugins": ["doExpressions"] }
{ "plugins": ["doExpressions"] }
@@ -1 +1 @@
{ "plugins": ["bigInt"] }
{ "plugins": ["bigInt"] }
@@ -1 +1 @@
{ "plugins": ["functionBind"] }
{ "plugins": ["functionBind"] }
@@ -1 +1 @@
{ "plugins": ["doExpressions"] }
{ "plugins": ["doExpressions"] }
@@ -1 +1 @@
{ "plugins": ["dynamicImport"] }
{ "plugins": ["dynamicImport"] }
@@ -1 +1 @@
{ "plugins": ["jsx" ] }
{ "plugins": ["jsx"] }
@@ -1 +1 @@
{ "plugins": ["jsx" ] }
{ "plugins": ["jsx"] }
@@ -1 +1 @@
{ "plugins": ["jsx" ] }
{ "plugins": ["jsx"] }
@@ -1 +1 @@
{ "plugins": ["jsx" ] }
{ "plugins": ["jsx"] }
@@ -1 +1 @@
{ "plugins": ["jsx" ] }
{ "plugins": ["jsx"] }
@@ -1 +1 @@
{ "plugins": ["jsx" ] }
{ "plugins": ["jsx"] }
@@ -1 +1 @@
{ "plugins": ["jsx" ] }
{ "plugins": ["jsx"] }
@@ -1 +1 @@
{ "plugins": ["jsx" ] }
{ "plugins": ["jsx"] }
@@ -1 +1 @@
{ "plugins": ["jsx" ] }
{ "plugins": ["jsx"] }
@@ -1 +1 @@
{ "plugins": ["jsx" ] }
{ "plugins": ["jsx"] }
@@ -1 +1 @@
{ "plugins": ["optionalChaining"] }
{ "plugins": ["optionalChaining"] }
@@ -1 +1 @@
{ "plugins": ["optionalChaining"] }
{ "plugins": ["optionalChaining"] }
@@ -1 +1 @@
{ "plugins": ["optionalCatchBinding"] }
{ "plugins": ["optionalCatchBinding"] }
@@ -1 +1 @@
{ "plugins": ["objectRestSpread"] }
{ "plugins": ["objectRestSpread"] }
@@ -1,3 +1,3 @@
{
"plugins": ["jsx", "typescript"]
}
"plugins": ["jsx", "typescript"]
}
@@ -1,3 +1,3 @@
{
"plugins": ["exportDefaultFrom", "typescript"]
"plugins": ["exportDefaultFrom", "typescript"]
}
@@ -1,4 +1,4 @@
{
"plugins": ["jsx", "typescript"],
"sourceType": "module"
}
}
@@ -1,3 +1,3 @@
{
"plugins": [ "./plugin" ]
}
"plugins": ["./plugin"]
}
@@ -1,3 +1,3 @@
{
"plugins": [ "./plugin" ]
}
"plugins": ["./plugin"]
}
@@ -1,4 +1,4 @@
{
"plugins": [ "./plugin" ],
"plugins": ["./plugin"],
"throws": " "
}
}
@@ -1,3 +1,3 @@
{
"plugins": [ "./plugin" ]
}
"plugins": ["./plugin"]
}
@@ -1,3 +1,3 @@
{
"plugins": [ "./plugin" ]
}
"plugins": ["./plugin"]
}
@@ -1,3 +1,3 @@
{
"plugins": [ "./plugin" ]
}
"plugins": ["./plugin"]
}
@@ -1,3 +1,3 @@
{
"plugins": [ "./plugin" ]
}
"plugins": ["./plugin"]
}
@@ -1,3 +1,3 @@
{
"plugins": [ "./plugin" ]
}
"plugins": ["./plugin"]
}