Skip to content

Commit ef57ce5

Browse files
authored
update prettier, prettify *.svg (#3636)
1 parent 1acb442 commit ef57ce5

File tree

49 files changed

+620
-178
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+620
-178
lines changed

.prettierrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@
1010
"printWidth": 80,
1111
"proseWrap": "preserve"
1212
}
13+
},
14+
{
15+
"files": "*.svg",
16+
"options": {
17+
"parser": "html"
18+
}
1319
}
1420
]
1521
}
Lines changed: 27 additions & 1 deletion
Loading

examples/monaco-graphql-nextjs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"monaco-editor-webpack-plugin": "^7.0.1",
1919
"monaco-graphql": "^1.5.2",
2020
"next": "13.4.7",
21-
"prettier": "3.0.0-alpha.12",
21+
"prettier": "3.3.2",
2222
"react": "^18.2.0",
2323
"react-dom": "^18.2.0"
2424
},

examples/monaco-graphql-react-vite/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"jsonc-parser": "^3.2.0",
1010
"monaco-editor": "^0.39.0",
1111
"monaco-graphql": "^1.5.2",
12-
"prettier": "3.0.0-alpha.12",
12+
"prettier": "3.3.2",
1313
"react": "^18.2.0",
1414
"react-dom": "^18.2.0"
1515
},

examples/monaco-graphql-webpack/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"jsonc-parser": "^3.2.0",
1616
"monaco-editor": "^0.39.0",
1717
"monaco-graphql": "^1.5.2",
18-
"prettier": "3.0.0-alpha.12"
18+
"prettier": "3.3.2"
1919
},
2020
"devDependencies": {
2121
"@babel/core": "^7.21.0",

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
"copy": "^0.3.2",
109109
"cspell": "^5.15.2",
110110
"eslint": "^8.43.0",
111-
"eslint-config-prettier": "^8.8.0",
111+
"eslint-config-prettier": "^9.1.0",
112112
"eslint-import-resolver-typescript": "^3.5.5",
113113
"eslint-plugin-cypress": "^2.13.3",
114114
"eslint-plugin-import": "^2.27.5",
@@ -129,7 +129,7 @@
129129
"mkdirp": "^1.0.4",
130130
"patch-package": "^7.0.2",
131131
"postinstall-postinstall": "^2.1.0",
132-
"prettier": "3.0.0-alpha.12",
132+
"prettier": "3.3.2",
133133
"rimraf": "^3.0.2",
134134
"ts-jest": "^27.1.5",
135135
"typedoc": "^0.19.2",

packages/codemirror-graphql/src/utils/getTypeInfo.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,11 @@ export default function getTypeInfo(schema: GraphQLSchema, tokenState: State) {
9797
? state.prevState.kind === 'Field'
9898
? info.fieldDef
9999
: state.prevState.kind === 'Directive'
100-
? info.directiveDef
101-
: state.prevState.kind === 'AliasedField'
102-
? state.prevState.name &&
103-
getFieldDef(schema, info.parentType, state.prevState.name)
104-
: null
100+
? info.directiveDef
101+
: state.prevState.kind === 'AliasedField'
102+
? state.prevState.name &&
103+
getFieldDef(schema, info.parentType, state.prevState.name)
104+
: null
105105
: null;
106106
info.argDefs = parentDef ? (parentDef.args as GraphQLArgument[]) : null;
107107
break;

packages/codemirror-graphql/src/utils/info-addon.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ function createState(options: GraphQLInfoOptions) {
3939
options instanceof Function
4040
? { render: options }
4141
: options === true
42-
? {}
43-
: options,
42+
? {}
43+
: options,
4444
};
4545
}
4646

Lines changed: 12 additions & 3 deletions
Loading
Lines changed: 7 additions & 2 deletions
Loading

0 commit comments

Comments
 (0)