Skip to content

Commit

Permalink
update prettier, prettify *.svg (#3636)
Browse files Browse the repository at this point in the history
  • Loading branch information
dimaMachina committed Jul 1, 2024
1 parent 1acb442 commit ef57ce5
Show file tree
Hide file tree
Showing 49 changed files with 620 additions and 178 deletions.
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@
"printWidth": 80,
"proseWrap": "preserve"
}
},
{
"files": "*.svg",
"options": {
"parser": "html"
}
}
]
}
28 changes: 27 additions & 1 deletion examples/graphiql-webpack/public/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion examples/monaco-graphql-nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"monaco-editor-webpack-plugin": "^7.0.1",
"monaco-graphql": "^1.5.2",
"next": "13.4.7",
"prettier": "3.0.0-alpha.12",
"prettier": "3.3.2",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/monaco-graphql-react-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"jsonc-parser": "^3.2.0",
"monaco-editor": "^0.39.0",
"monaco-graphql": "^1.5.2",
"prettier": "3.0.0-alpha.12",
"prettier": "3.3.2",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/monaco-graphql-webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"jsonc-parser": "^3.2.0",
"monaco-editor": "^0.39.0",
"monaco-graphql": "^1.5.2",
"prettier": "3.0.0-alpha.12"
"prettier": "3.3.2"
},
"devDependencies": {
"@babel/core": "^7.21.0",
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
"copy": "^0.3.2",
"cspell": "^5.15.2",
"eslint": "^8.43.0",
"eslint-config-prettier": "^8.8.0",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.5.5",
"eslint-plugin-cypress": "^2.13.3",
"eslint-plugin-import": "^2.27.5",
Expand All @@ -129,7 +129,7 @@
"mkdirp": "^1.0.4",
"patch-package": "^7.0.2",
"postinstall-postinstall": "^2.1.0",
"prettier": "3.0.0-alpha.12",
"prettier": "3.3.2",
"rimraf": "^3.0.2",
"ts-jest": "^27.1.5",
"typedoc": "^0.19.2",
Expand Down
10 changes: 5 additions & 5 deletions packages/codemirror-graphql/src/utils/getTypeInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,11 @@ export default function getTypeInfo(schema: GraphQLSchema, tokenState: State) {
? state.prevState.kind === 'Field'
? info.fieldDef
: state.prevState.kind === 'Directive'
? info.directiveDef
: state.prevState.kind === 'AliasedField'
? state.prevState.name &&
getFieldDef(schema, info.parentType, state.prevState.name)
: null
? info.directiveDef
: state.prevState.kind === 'AliasedField'
? state.prevState.name &&
getFieldDef(schema, info.parentType, state.prevState.name)
: null
: null;
info.argDefs = parentDef ? (parentDef.args as GraphQLArgument[]) : null;
break;
Expand Down
4 changes: 2 additions & 2 deletions packages/codemirror-graphql/src/utils/info-addon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ function createState(options: GraphQLInfoOptions) {
options instanceof Function
? { render: options }
: options === true
? {}
: options,
? {}
: options,
};
}

Expand Down
15 changes: 12 additions & 3 deletions packages/graphiql-react/src/icons/argument.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 7 additions & 2 deletions packages/graphiql-react/src/icons/chevron-down.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 11 additions & 2 deletions packages/graphiql-react/src/icons/chevron-left.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 7 additions & 2 deletions packages/graphiql-react/src/icons/chevron-up.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 9 additions & 3 deletions packages/graphiql-react/src/icons/close.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 20 additions & 3 deletions packages/graphiql-react/src/icons/copy.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 13 additions & 4 deletions packages/graphiql-react/src/icons/deprecated-argument.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 14 additions & 4 deletions packages/graphiql-react/src/icons/deprecated-enum-value.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 17 additions & 4 deletions packages/graphiql-react/src/icons/deprecated-field.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 15 additions & 2 deletions packages/graphiql-react/src/icons/directive.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 22 additions & 4 deletions packages/graphiql-react/src/icons/docs-filled.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 19 additions & 3 deletions packages/graphiql-react/src/icons/docs.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 13 additions & 3 deletions packages/graphiql-react/src/icons/enum-value.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 16 additions & 3 deletions packages/graphiql-react/src/icons/field.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit ef57ce5

Please sign in to comment.