Merge branch 'main' into next
# Conflicts: # .github/workflows/dev-test.yml # jest.config.mjs # package.json # scripts/vendors/vendor-meta.json # scripts/vendors/vendors.mjs # src/cli/format.js # src/cli/options/create-minimist-options.js # src/cli/options/parse-cli-arguments.js # src/cli/usage.js # src/cli/utils.js # src/common/create-ignorer.js # src/common/load-plugins.js # src/config/resolve-config.js # src/index.js # src/language-css/utils/css-units.evaluate.js # src/language-html/ast.js # src/language-html/print-preprocess.js # src/language-html/utils/index.js # src/main/multiparser.js # tests/format/markdown/auto-link/jsfmt.spec.js # tests/integration/__tests__/__snapshots__/config-resolution.js.snap # tests/integration/__tests__/__snapshots__/with-config-precedence.js.snap # tests/integration/__tests__/file-info.js # yarn.lock
This commit is contained in:
commit
a85f38f096
142 files changed
+2792
-1992
No files matched your search
@@ -1,5 +1,82 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`description.graphql format 1`] = `
|
||||
====================================options=====================================
|
||||
parsers: ["graphql"]
|
||||
printWidth: 80
|
||||
| printWidth
|
||||
=====================================input======================================
|
||||
""" Customer """
|
||||
type Person {name: String}
|
||||
|
||||
""" Customer """
|
||||
type Person {name: String}
|
||||
|
||||
"""
|
||||
|
||||
Customer
|
||||
|
||||
|
||||
"""
|
||||
type Person {name: String}
|
||||
|
||||
""""""
|
||||
type Person {name: String}
|
||||
|
||||
""" """
|
||||
type Person {name: String}
|
||||
|
||||
"""
|
||||
1
|
||||
2
|
||||
"""
|
||||
type Person {name: String}
|
||||
|
||||
=====================================output=====================================
|
||||
"""
|
||||
Customer
|
||||
"""
|
||||
type Person {
|
||||
name: String
|
||||
}
|
||||
|
||||
"""
|
||||
Customer
|
||||
"""
|
||||
type Person {
|
||||
name: String
|
||||
}
|
||||
|
||||
"""
|
||||
Customer
|
||||
"""
|
||||
type Person {
|
||||
name: String
|
||||
}
|
||||
|
||||
"""
|
||||
"""
|
||||
type Person {
|
||||
name: String
|
||||
}
|
||||
|
||||
"""
|
||||
"""
|
||||
type Person {
|
||||
name: String
|
||||
}
|
||||
|
||||
"""
|
||||
1
|
||||
2
|
||||
"""
|
||||
type Person {
|
||||
name: String
|
||||
}
|
||||
|
||||
================================================================================
|
||||
`;
|
||||
|
||||
exports[`string.graphql format 1`] = `
|
||||
====================================options=====================================
|
||||
parsers: ["graphql"]
|
||||
@@ -59,6 +136,14 @@ one: string
|
||||
foo(input: {multiline: "ab\\ncd"}) { id }
|
||||
}
|
||||
|
||||
{
|
||||
foo(input: {multiline: """ foo """}) { id }
|
||||
}
|
||||
|
||||
{
|
||||
foo(input: {multiline: """ """}) { id }
|
||||
}
|
||||
|
||||
=====================================output=====================================
|
||||
query X($a: Int) @relay(meta: "{\\"lowPri\\": true}") {
|
||||
a
|
||||
@@ -129,5 +214,28 @@ input Input {
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
foo(
|
||||
input: {
|
||||
multiline: """
|
||||
foo
|
||||
"""
|
||||
}
|
||||
) {
|
||||
id
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
foo(
|
||||
input: {
|
||||
multiline: """
|
||||
"""
|
||||
}
|
||||
) {
|
||||
id
|
||||
}
|
||||
}
|
||||
|
||||
================================================================================
|
||||
`;
|
||||
@@ -0,0 +1,25 @@
|
||||
""" Customer """
|
||||
type Person {name: String}
|
||||
|
||||
""" Customer """
|
||||
type Person {name: String}
|
||||
|
||||
"""
|
||||
|
||||
Customer
|
||||
|
||||
|
||||
"""
|
||||
type Person {name: String}
|
||||
|
||||
""""""
|
||||
type Person {name: String}
|
||||
|
||||
""" """
|
||||
type Person {name: String}
|
||||
|
||||
"""
|
||||
1
|
||||
2
|
||||
"""
|
||||
type Person {name: String}
|
||||
@@ -50,3 +50,11 @@ one: string
|
||||
{
|
||||
foo(input: {multiline: "ab\ncd"}) { id }
|
||||
}
|
||||
|
||||
{
|
||||
foo(input: {multiline: """ foo """}) { id }
|
||||
}
|
||||
|
||||
{
|
||||
foo(input: {multiline: """ """}) { id }
|
||||
}
|
||||
Reference in new issue
Block a user