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

View File

@ -52,6 +52,9 @@ lint:
fix: fix:
./node_modules/.bin/eslint scripts $(SOURCES) '*.js' --format=codeframe --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 clean: test-clean
rm -rf packages/babel-polyfill/browser* rm -rf packages/babel-polyfill/browser*
rm -rf packages/babel-polyfill/dist rm -rf packages/babel-polyfill/dist

View File

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

View File

@ -1,10 +1,12 @@
{ {
"args": [ "args": [
"src", "src",
"--out-dir", "lib", "--out-dir",
"lib",
"--copy-files", "--copy-files",
"--include-dotfiles", "--include-dotfiles",
"--only", "src/foo", "--only",
"src/foo",
"--verbose" "--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": [ "args": [
"src", "src",
"--out-dir", "lib", "--out-dir",
"lib",
"--copy-files", "--copy-files",
"--ignore", "src/foo/*", "--ignore",
"src/foo/*",
"--verbose" "--verbose"
] ]
} }

View File

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

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, "compact": false,
"presets": [ "presets": ["env"],
"env" "plugins": ["external-helpers", "proposal-object-rest-spread"]
],
"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": [ "plugins": ["transform-modules-commonjs"]
"transform-modules-commonjs"
]
} }

View File

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

View File

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

View File

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

View File

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

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,3 +1,3 @@
{ {
"plugins": ["jsx", "typescript"] "plugins": ["jsx", "typescript"]
} }

View File

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

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": " " "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" "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" "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" "stdout": "function"
} }

View File

@ -1,3 +1,4 @@
{ {
"throws": "The rest element has to be the last element when destructuring (1:1)" "throws":
"The rest element has to be the last element when destructuring (1:1)"
} }

View File

@ -1,3 +1,4 @@
{ {
"throws": "super() is only valid inside a class constructor. Make sure the method name is spelled exactly as 'constructor'. (2:8)" "throws":
"super() is only valid inside a class constructor. Make sure the method name is spelled exactly as 'constructor'. (2:8)"
} }

View File

@ -1,3 +1,4 @@
{ {
"throws": "You're trying to assign to a parenthesized expression, eg. instead of `([a]) = 0` use `([a] = 0)` (1:1)" "throws":
"You're trying to assign to a parenthesized expression, eg. instead of `([a]) = 0` use `([a] = 0)` (1:1)"
} }

View File

@ -1,3 +1,4 @@
{ {
"throws": "You're trying to assign to a parenthesized expression, eg. instead of `({a}) = 0` use `({a} = 0)` (1:1)" "throws":
"You're trying to assign to a parenthesized expression, eg. instead of `({a}) = 0` use `({a} = 0)` (1:1)"
} }

View File

@ -1,4 +1,4 @@
{ {
"throws": "`Foo` has already been exported. Exported identifiers must be unique. (2:0)" "throws":
"`Foo` has already been exported. Exported identifiers must be unique. (2:0)"
} }

View File

@ -1,3 +1,4 @@
{ {
"throws": "`foo` has already been exported. Exported identifiers must be unique. (2:20)" "throws":
"`foo` has already been exported. Exported identifiers must be unique. (2:20)"
} }

View File

@ -1,3 +1,4 @@
{ {
"throws": "`foo4` has already been exported. Exported identifiers must be unique. (2:50)" "throws":
"`foo4` has already been exported. Exported identifiers must be unique. (2:50)"
} }

View File

@ -1,3 +1,4 @@
{ {
"throws": "`foo4` has already been exported. Exported identifiers must be unique. (2:49)" "throws":
"`foo4` has already been exported. Exported identifiers must be unique. (2:49)"
} }

View File

@ -1,3 +1,4 @@
{ {
"throws": "`foo4` has already been exported. Exported identifiers must be unique. (2:58)" "throws":
"`foo4` has already been exported. Exported identifiers must be unique. (2:58)"
} }

View File

@ -1,3 +1,4 @@
{ {
"throws": "`foo` has already been exported. Exported identifiers must be unique. (2:21)" "throws":
"`foo` has already been exported. Exported identifiers must be unique. (2:21)"
} }

View File

@ -1,3 +1,4 @@
{ {
"throws": "`foo2` has already been exported. Exported identifiers must be unique. (2:13)" "throws":
"`foo2` has already been exported. Exported identifiers must be unique. (2:13)"
} }

View File

@ -1,3 +1,4 @@
{ {
"throws": "`foo` has already been exported. Exported identifiers must be unique. (2:22)" "throws":
"`foo` has already been exported. Exported identifiers must be unique. (2:22)"
} }

View File

@ -1,3 +1,4 @@
{ {
"throws": "`bar` has already been exported. Exported identifiers must be unique. (2:13)" "throws":
"`bar` has already been exported. Exported identifiers must be unique. (2:13)"
} }

View File

@ -1,3 +1,4 @@
{ {
"throws": "`foo` has already been exported. Exported identifiers must be unique. (2:28)" "throws":
"`foo` has already been exported. Exported identifiers must be unique. (2:28)"
} }

View File

@ -1,3 +1,4 @@
{ {
"throws": "`foo` has already been exported. Exported identifiers must be unique. (2:29)" "throws":
"`foo` has already been exported. Exported identifiers must be unique. (2:29)"
} }

View File

@ -1,3 +1,4 @@
{ {
"throws": "`foo` has already been exported. Exported identifiers must be unique. (2:15)" "throws":
"`foo` has already been exported. Exported identifiers must be unique. (2:15)"
} }

View File

@ -1,3 +1,4 @@
{ {
"throws": "`foo` has already been exported. Exported identifiers must be unique. (2:0)" "throws":
"`foo` has already been exported. Exported identifiers must be unique. (2:0)"
} }

View File

@ -1,3 +1,4 @@
{ {
"throws": "`foo` has already been exported. Exported identifiers must be unique. (2:14)" "throws":
"`foo` has already been exported. Exported identifiers must be unique. (2:14)"
} }

View File

@ -1,3 +1,4 @@
{ {
"throws": "`foo` has already been exported. Exported identifiers must be unique. (2:0)" "throws":
"`foo` has already been exported. Exported identifiers must be unique. (2:0)"
} }

View File

@ -1,3 +1,4 @@
{ {
"throws": "`foo` has already been exported. Exported identifiers must be unique. (2:14)" "throws":
"`foo` has already been exported. Exported identifiers must be unique. (2:14)"
} }

View File

@ -1,3 +1,4 @@
{ {
"throws": "`foo` has already been exported. Exported identifiers must be unique. (2:15)" "throws":
"`foo` has already been exported. Exported identifiers must be unique. (2:15)"
} }

View File

@ -1,3 +1,4 @@
{ {
"throws": "`Foo` has already been exported. Exported identifiers must be unique. (2:15)" "throws":
"`Foo` has already been exported. Exported identifiers must be unique. (2:15)"
} }

View File

@ -1,3 +1,4 @@
{ {
"throws": "`Foo` has already been exported. Exported identifiers must be unique. (2:14)" "throws":
"`Foo` has already been exported. Exported identifiers must be unique. (2:14)"
} }

View File

@ -1,3 +1,4 @@
{ {
"throws": "`foo` has already been exported. Exported identifiers must be unique. (2:0)" "throws":
"`foo` has already been exported. Exported identifiers must be unique. (2:0)"
} }

View File

@ -1,3 +1,4 @@
{ {
"throws": "`foo` has already been exported. Exported identifiers must be unique. (2:13)" "throws":
"`foo` has already been exported. Exported identifiers must be unique. (2:13)"
} }

View File

@ -1,3 +1,4 @@
{ {
"throws": "`foo` has already been exported. Exported identifiers must be unique. (2:9)" "throws":
"`foo` has already been exported. Exported identifiers must be unique. (2:9)"
} }

View File

@ -1,3 +1,4 @@
{ {
"throws": "Only expressions, functions or classes are allowed as the `default` export. (1:15)" "throws":
"Only expressions, functions or classes are allowed as the `default` export. (1:15)"
} }

View File

@ -1,3 +1,4 @@
{ {
"throws": "Only expressions, functions or classes are allowed as the `default` export. (1:15)" "throws":
"Only expressions, functions or classes are allowed as the `default` export. (1:15)"
} }

View File

@ -1,3 +1,4 @@
{ {
"throws": "Only expressions, functions or classes are allowed as the `default` export. (1:15)" "throws":
"Only expressions, functions or classes are allowed as the `default` export. (1:15)"
} }

View File

@ -2,4 +2,3 @@
"sourceType": "module", "sourceType": "module",
"throws": "Unexpected token, expected \"{\" (1:7)" "throws": "Unexpected token, expected \"{\" (1:7)"
} }

View File

@ -1,4 +1,5 @@
{ {
"throws": "ES2015 named imports do not destructure. Use another statement for destructuring after the import. (1:19)", "throws":
"ES2015 named imports do not destructure. Use another statement for destructuring after the import. (1:19)",
"sourceType": "module" "sourceType": "module"
} }

View File

@ -1,3 +1,4 @@
{ {
"throws": "yield is not allowed in the parameters of an arrow function inside a generator (2:7)" "throws":
"yield is not allowed in the parameters of an arrow function inside a generator (2:7)"
} }

View File

@ -1,3 +1,4 @@
{ {
"throws": "yield is not allowed in the parameters of an arrow function inside a generator (2:15)" "throws":
"yield is not allowed in the parameters of an arrow function inside a generator (2:15)"
} }

View File

@ -1,3 +1,4 @@
{ {
"throws": "yield is not allowed in the parameters of an arrow function inside a generator (2:7)" "throws":
"yield is not allowed in the parameters of an arrow function inside a generator (2:7)"
} }

View File

@ -1,3 +1,4 @@
{ {
"throws": "yield is not allowed in the parameters of an arrow function inside a generator (2:17)" "throws":
"yield is not allowed in the parameters of an arrow function inside a generator (2:17)"
} }

View File

@ -1,3 +1,4 @@
{ {
"throws": "yield is not allowed in the parameters of an arrow function inside a generator (2:8)" "throws":
"yield is not allowed in the parameters of an arrow function inside a generator (2:8)"
} }

View File

@ -1,3 +1,4 @@
{ {
"throws": "yield is not allowed in the parameters of an arrow function inside a generator (2:3)" "throws":
"yield is not allowed in the parameters of an arrow function inside a generator (2:3)"
} }

View File

@ -1,3 +1,4 @@
{ {
"throws": "yield is not allowed in the parameters of an arrow function inside a generator (2:3)" "throws":
"yield is not allowed in the parameters of an arrow function inside a generator (2:3)"
} }

View File

@ -1,3 +1,4 @@
{ {
"throws": "yield is not allowed in the parameters of an arrow function inside a generator (2:9)" "throws":
"yield is not allowed in the parameters of an arrow function inside a generator (2:9)"
} }

View File

@ -1,3 +1,4 @@
{ {
"throws": "Illegal expression. Wrap left hand side or entire exponentiation in parentheses. (1:1)" "throws":
"Illegal expression. Wrap left hand side or entire exponentiation in parentheses. (1:1)"
} }

View File

@ -1,3 +1,4 @@
{ {
"throws": "Illegal expression. Wrap left hand side or entire exponentiation in parentheses. (1:2)" "throws":
"Illegal expression. Wrap left hand side or entire exponentiation in parentheses. (1:2)"
} }

View File

@ -1,3 +1,4 @@
{ {
"throws": "Illegal expression. Wrap left hand side or entire exponentiation in parentheses. (1:2)" "throws":
"Illegal expression. Wrap left hand side or entire exponentiation in parentheses. (1:2)"
} }

View File

@ -1,3 +1,4 @@
{ {
"throws": "await* has been removed from the async functions proposal. Use Promise.all() instead. (2:2)" "throws":
"await* has been removed from the async functions proposal. Use Promise.all() instead. (2:2)"
} }

View File

@ -1,3 +1,4 @@
{ {
"throws": "This experimental syntax requires enabling the parser plugin: 'classProperties' (3:2)" "throws":
"This experimental syntax requires enabling the parser plugin: 'classProperties' (3:2)"
} }

View File

@ -1,3 +1,4 @@
{ {
"throws": "This experimental syntax requires enabling the parser plugin: 'exportDefaultFrom' (1:7)" "throws":
"This experimental syntax requires enabling the parser plugin: 'exportDefaultFrom' (1:7)"
} }

View File

@ -1,3 +1,4 @@
{ {
"throws": "'import' and 'export' may appear only with 'sourceType: \"module\"' (1:0)" "throws":
"'import' and 'export' may appear only with 'sourceType: \"module\"' (1:0)"
} }

View File

@ -1,3 +1,4 @@
{ {
"throws": "'import' and 'export' may appear only with 'sourceType: \"module\"' (1:0)" "throws":
"'import' and 'export' may appear only with 'sourceType: \"module\"' (1:0)"
} }

View File

@ -1,3 +1,4 @@
{ {
"throws": "yield is not allowed in the parameters of an arrow function inside a generator (1:21)" "throws":
"yield is not allowed in the parameters of an arrow function inside a generator (1:21)"
} }

View File

@ -1,3 +1,4 @@
{ {
"throws": "yield is not allowed in the parameters of an arrow function inside a generator (1:16)" "throws":
"yield is not allowed in the parameters of an arrow function inside a generator (1:16)"
} }

View File

@ -1,3 +1,4 @@
{ {
"throws": "yield is not allowed in the parameters of an arrow function inside a generator (1:25)" "throws":
"yield is not allowed in the parameters of an arrow function inside a generator (1:25)"
} }

View File

@ -1,3 +1,4 @@
{ {
"throws": "'import' and 'export' may appear only with 'sourceType: \"module\"' (1:0)" "throws":
"'import' and 'export' may appear only with 'sourceType: \"module\"' (1:0)"
} }

View File

@ -1,3 +1,4 @@
{ {
"throws": "yield is not allowed in the parameters of an arrow function inside a generator (1:21)" "throws":
"yield is not allowed in the parameters of an arrow function inside a generator (1:21)"
} }

View File

@ -1,3 +1,4 @@
{ {
"throws": "Error parsing regular expression: Invalid regular expression: /(s/: Unterminated group (1:9)" "throws":
"Error parsing regular expression: Invalid regular expression: /(s/: Unterminated group (1:9)"
} }

View File

@ -1,3 +1,3 @@
{ {
"throws": "setter function argument must not be a rest parameter (1:6)" "throws": "setter function argument must not be a rest parameter (1:6)"
} }

View File

@ -1,4 +1,5 @@
{ {
"throws": "This experimental syntax requires enabling the parser plugin: 'bigInt' (1:1)", "throws":
"This experimental syntax requires enabling the parser plugin: 'bigInt' (1:1)",
"plugins": [] "plugins": []
} }

View File

@ -1,4 +1,5 @@
{ {
"throws": "This experimental syntax requires enabling the parser plugin: 'classPrivateProperties' (2:3)", "throws":
"This experimental syntax requires enabling the parser plugin: 'classPrivateProperties' (2:3)",
"plugins": [] "plugins": []
} }

View File

@ -1,4 +1,5 @@
{ {
"throws": "This experimental syntax requires enabling the parser plugin: 'numericSeparator' (1:17)", "throws":
"This experimental syntax requires enabling the parser plugin: 'numericSeparator' (1:17)",
"plugins": [] "plugins": []
} }

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