Format fixture JSON with Prettier. (#8658)

This commit is contained in:
Logan Smyth 2018-09-09 17:57:52 -07:00 committed by GitHub
parent 45c28fa785
commit 79b2af5997
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1075 changed files with 2632 additions and 1872 deletions

View File

@ -7,7 +7,6 @@
"bracketSpacing": true,
"jsxBracketSameLine": false,
"tabWidth": 2,
"parser": "babylon",
"printWidth": 80,
"overrides": [{
"files": [
@ -16,6 +15,7 @@
"**/packages/*/src/**/*.js",
"**/packages/*/test/**/*.js"
],
"parser": "babylon",
"options": {
"trailingComma": "all"
}

View File

@ -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

View File

@ -1,10 +1,12 @@
{
"args": [
"src",
"--out-dir", "lib",
"--out-dir",
"lib",
"--copy-files",
"--include-dotfiles",
"--ignore", "src/foo",
"--ignore",
"src/foo",
"--verbose"
]
}

View File

@ -1,10 +1,12 @@
{
"args": [
"src",
"--out-dir", "lib",
"--out-dir",
"lib",
"--copy-files",
"--include-dotfiles",
"--only", "src/foo",
"--only",
"src/foo",
"--verbose"
]
}

View File

@ -1,3 +1,10 @@
{
"args": ["src", "--out-dir", "lib", "--copy-files", "--include-dotfiles", "--verbose"]
"args": [
"src",
"--out-dir",
"lib",
"--copy-files",
"--include-dotfiles",
"--verbose"
]
}

View File

@ -1,9 +1,11 @@
{
"args": [
"src",
"--out-dir", "lib",
"--out-dir",
"lib",
"--copy-files",
"--ignore", "src/foo/*",
"--ignore",
"src/foo/*",
"--verbose"
]
}

View File

@ -1,9 +1,11 @@
{
"args": [
"src",
"--out-dir", "lib",
"--out-dir",
"lib",
"--copy-files",
"--only", "src/foo/*",
"--only",
"src/foo/*",
"--verbose"
]
}

View File

@ -1,3 +1,3 @@
{
"args": ["src", "--skip-initial-build", "--out-dir", "lib"]
}
}

View File

@ -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"
]
}

View File

@ -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"
]
}

View File

@ -1,3 +1,7 @@
{
"plugins": ["transform-classes", "external-helpers", "transform-block-scoping"]
"plugins": [
"transform-classes",
"external-helpers",
"transform-block-scoping"
]
}

View File

@ -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"
]
}

View File

@ -1,3 +1,7 @@
{
"plugins": ["transform-parameters", "transform-arrow-functions", "transform-block-scoping"]
"plugins": [
"transform-parameters",
"transform-arrow-functions",
"transform-block-scoping"
]
}

View File

@ -1,10 +1,5 @@
{
"compact": false,
"presets": [
"env"
],
"plugins": [
"external-helpers",
"proposal-object-rest-spread"
]
"presets": ["env"],
"plugins": ["external-helpers", "proposal-object-rest-spread"]
}

View File

@ -1,3 +1,8 @@
{
"plugins": ["transform-destructuring", "transform-parameters", "transform-block-scoping", "transform-regenerator"]
"plugins": [
"transform-destructuring",
"transform-parameters",
"transform-block-scoping",
"transform-regenerator"
]
}

View File

@ -1,3 +1,7 @@
{
"plugins": ["external-helpers", "transform-classes", "transform-block-scoping"]
"plugins": [
"external-helpers",
"transform-classes",
"transform-block-scoping"
]
}

View File

@ -1,5 +1,3 @@
{
"plugins": [
"transform-modules-commonjs"
]
"plugins": ["transform-modules-commonjs"]
}

View File

@ -1 +1 @@
{ "plugins": ["jsx"] }
{ "plugins": ["jsx"] }

View File

@ -1 +1 @@
{ "plugins": ["objectRestSpread"] }
{ "plugins": ["objectRestSpread"] }

View File

@ -1,6 +1,4 @@
{
"plugins": [
["decorators", { "decoratorsBeforeExport": false }]
],
"plugins": [["decorators", { "decoratorsBeforeExport": false }]],
"decoratorsBeforeExport": false
}

View File

@ -1,6 +1,4 @@
{
"plugins": [
["decorators", { "decoratorsBeforeExport": false }]
],
"plugins": [["decorators", { "decoratorsBeforeExport": false }]],
"decoratorsBeforeExport": true
}

View File

@ -1,6 +1,4 @@
{
"plugins": [
["decorators", { "decoratorsBeforeExport": true }]
],
"plugins": [["decorators", { "decoratorsBeforeExport": true }]],
"decoratorsBeforeExport": false
}

View File

@ -1,6 +1,4 @@
{
"plugins": [
["decorators", { "decoratorsBeforeExport": true }]
],
"plugins": [["decorators", { "decoratorsBeforeExport": true }]],
"decoratorsBeforeExport": true
}

View File

@ -1 +1 @@
{ "plugins": ["classProperties", "flow"] }
{ "plugins": ["classProperties", "flow"] }

View File

@ -1 +1 @@
{ "plugins": ["flow"] }
{ "plugins": ["flow"] }

View File

@ -1 +1 @@
{ "plugins": ["classPrivateProperties", "flow"] }
{ "plugins": ["classPrivateProperties", "flow"] }

View File

@ -1 +1 @@
{ "plugins": ["flow"] }
{ "plugins": ["flow"] }

View File

@ -1 +1 @@
{ "plugins": ["doExpressions"] }
{ "plugins": ["doExpressions"] }

View File

@ -1 +1 @@
{ "plugins": ["bigInt"] }
{ "plugins": ["bigInt"] }

View File

@ -1 +1 @@
{ "plugins": ["functionBind"] }
{ "plugins": ["functionBind"] }

View File

@ -1 +1 @@
{ "plugins": ["doExpressions"] }
{ "plugins": ["doExpressions"] }

View File

@ -1 +1 @@
{ "plugins": ["dynamicImport"] }
{ "plugins": ["dynamicImport"] }

View File

@ -1 +1 @@
{ "plugins": ["jsx" ] }
{ "plugins": ["jsx"] }

View File

@ -1 +1 @@
{ "plugins": ["jsx" ] }
{ "plugins": ["jsx"] }

View File

@ -1 +1 @@
{ "plugins": ["jsx" ] }
{ "plugins": ["jsx"] }

View File

@ -1 +1 @@
{ "plugins": ["jsx" ] }
{ "plugins": ["jsx"] }

View File

@ -1 +1 @@
{ "plugins": ["jsx" ] }
{ "plugins": ["jsx"] }

View File

@ -1 +1 @@
{ "plugins": ["jsx" ] }
{ "plugins": ["jsx"] }

View File

@ -1 +1 @@
{ "plugins": ["jsx" ] }
{ "plugins": ["jsx"] }

View File

@ -1 +1 @@
{ "plugins": ["jsx" ] }
{ "plugins": ["jsx"] }

View File

@ -1 +1 @@
{ "plugins": ["jsx" ] }
{ "plugins": ["jsx"] }

View File

@ -1 +1 @@
{ "plugins": ["jsx" ] }
{ "plugins": ["jsx"] }

View File

@ -1 +1 @@
{ "plugins": ["optionalChaining"] }
{ "plugins": ["optionalChaining"] }

View File

@ -1 +1 @@
{ "plugins": ["optionalChaining"] }
{ "plugins": ["optionalChaining"] }

View File

@ -1 +1 @@
{ "plugins": ["optionalCatchBinding"] }
{ "plugins": ["optionalCatchBinding"] }

View File

@ -1 +1 @@
{ "plugins": ["objectRestSpread"] }
{ "plugins": ["objectRestSpread"] }

View File

@ -1,3 +1,3 @@
{
"plugins": ["jsx", "typescript"]
}
"plugins": ["jsx", "typescript"]
}

View File

@ -1,3 +1,3 @@
{
"plugins": ["exportDefaultFrom", "typescript"]
"plugins": ["exportDefaultFrom", "typescript"]
}

View File

@ -1,4 +1,4 @@
{
"plugins": ["jsx", "typescript"],
"sourceType": "module"
}
}

View File

@ -1,3 +1,3 @@
{
"plugins": [ "./plugin" ]
}
"plugins": ["./plugin"]
}

View File

@ -1,3 +1,3 @@
{
"plugins": [ "./plugin" ]
}
"plugins": ["./plugin"]
}

View File

@ -1,4 +1,4 @@
{
"plugins": [ "./plugin" ],
"plugins": ["./plugin"],
"throws": " "
}
}

View File

@ -1,3 +1,3 @@
{
"plugins": [ "./plugin" ]
}
"plugins": ["./plugin"]
}

View File

@ -1,3 +1,3 @@
{
"plugins": [ "./plugin" ]
}
"plugins": ["./plugin"]
}

View File

@ -1,3 +1,3 @@
{
"plugins": [ "./plugin" ]
}
"plugins": ["./plugin"]
}

View File

@ -1,3 +1,3 @@
{
"plugins": [ "./plugin" ]
}
"plugins": ["./plugin"]
}

View File

@ -1,3 +1,3 @@
{
"plugins": [ "./plugin" ]
}
"plugins": ["./plugin"]
}

View File

@ -1,4 +1,4 @@
{
"args": ["--eval","--print", "var a = 1;"],
"args": ["--eval", "--print", "var a = 1;"],
"stdout": "undefined"
}

View File

@ -1,4 +1,8 @@
{
"args": ["--expose-gc-as=garbageCollector", "--eval", "console.log(typeof global.garbageCollector)"],
"args": [
"--expose-gc-as=garbageCollector",
"--eval",
"console.log(typeof global.garbageCollector)"
],
"stdout": "function"
}

View File

@ -1,4 +1,8 @@
{
"args": ["--expose_gc_as=garbageCollector", "--eval", "console.log(typeof global.garbageCollector)"],
"args": [
"--expose_gc_as=garbageCollector",
"--eval",
"console.log(typeof global.garbageCollector)"
],
"stdout": "function"
}

View File

@ -1,3 +1,3 @@
{
"sourceFilename": "path/to/input-file.js"
}
}

View File

@ -1,3 +1,3 @@
{
"throws": "Unexpected token (2:2)"
}
}

View File

@ -1,3 +1,3 @@
{
"throws": "getter should have no params (1:11)"
}
}

View File

@ -1,3 +1,3 @@
{
"throws": "setter should have exactly one param (1:11)"
}
}

View File

@ -1,3 +1,3 @@
{
"throws": "setter should have exactly one param (1:11)"
}
}

View File

@ -1,3 +1,3 @@
{
"allowReturnOutsideFunction": true
}
}

View File

@ -1,3 +1,3 @@
{
"allowReturnOutsideFunction": true
}
}

View File

@ -1,3 +1,3 @@
{
"throws": "Unexpected token (1:1)"
}
}

View File

@ -1,3 +1,3 @@
{
"throws": "Unexpected token (1:0)"
}
}

View File

@ -1,3 +1,3 @@
{
"throws": "Invalid number (1:0)"
}
}

View File

@ -1,3 +1,3 @@
{
"throws": "Identifier directly after number (1:1)"
}
}

View File

@ -1,3 +1,3 @@
{
"throws": "Invalid number (1:0)"
}
}

View File

@ -1,3 +1,3 @@
{
"throws": "Invalid number (1:0)"
}
}

View File

@ -1,3 +1,3 @@
{
"throws": "Invalid number (1:0)"
}
}

View File

@ -1,3 +1,3 @@
{
"throws": "Identifier directly after number (1:1)"
}
}

View File

@ -1,3 +1,3 @@
{
"throws": "Identifier directly after number (1:1)"
}
}

View File

@ -1,3 +1,3 @@
{
"throws": "Expected number in radix 16 (1:2)"
}
}

View File

@ -1,3 +1,3 @@
{
"throws": "Identifier directly after number (1:2)"
}
}

View File

@ -1,3 +1,3 @@
{
"throws": "Identifier directly after number (1:1)"
}
}

View File

@ -1,3 +1,3 @@
{
"throws": "Identifier directly after number (1:3)"
}
}

View File

@ -1,3 +1,3 @@
{
"throws": "Unterminated string constant (1:0)"
}
}

View File

@ -1,3 +1,3 @@
{
"throws": "Expecting Unicode escape sequence \\uXXXX (1:2)"
}
}

View File

@ -1,3 +1,3 @@
{
"throws": "Invalid Unicode escape (1:1)"
}
}

View File

@ -1,3 +1,3 @@
{
"throws": "Invalid Unicode escape (1:1)"
}
}

View File

@ -1,3 +1,3 @@
{
"throws": "Unterminated regular expression (1:1)"
}
}

View File

@ -1,3 +1,3 @@
{
"throws": "Unterminated regular expression (1:1)"
}
}

View File

@ -1,3 +1,3 @@
{
"throws": "Invalid left-hand side in assignment expression (1:0)"
}
}

View File

@ -1,3 +1,3 @@
{
"throws": "Invalid left-hand side in assignment expression (1:0)"
}
}

View File

@ -1,3 +1,3 @@
{
"throws": "Invalid left-hand side in assignment expression (1:1)"
}
}

View File

@ -1,3 +1,3 @@
{
"throws": "Invalid left-hand side in postfix operation (1:0)"
}
}

View File

@ -1,3 +1,3 @@
{
"throws": "Invalid left-hand side in postfix operation (1:0)"
}
}

View File

@ -1,3 +1,3 @@
{
"throws": "Invalid left-hand side in prefix operation (1:2)"
}
}

View File

@ -1,3 +1,3 @@
{
"throws": "Invalid left-hand side in prefix operation (1:2)"
}
}

View File

@ -1,3 +1,3 @@
{
"throws": "Invalid left-hand side in for-in statement (1:5)"
}
}

View File

@ -1,3 +1,3 @@
{
"throws": "Unexpected token (1:1)"
}
}

View File

@ -1,3 +1,3 @@
{
"throws": "Unexpected token (1:2)"
}
}

View File

@ -1,3 +1,3 @@
{
"throws": "Unexpected token (1:5)"
}
}

View File

@ -1,3 +1,3 @@
{
"throws": "Unexpected token (1:10)"
}
}

View File

@ -1,3 +1,3 @@
{
"throws": "Unterminated regular expression (1:9)"
}
}

View File

@ -1,3 +1,3 @@
{
"throws": "Unterminated string constant (1:8)"
}
}

Some files were not shown because too many files have changed in this diff Show More