Skip to content

Commit 0bf175f

Browse files
committed
Fix linting rules and remove __typename from configFields
1 parent 361e1bf commit 0bf175f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/jsonToGraphQLQuery.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { EnumType } from './types/EnumType';
22
import { VariableType } from './types/VariableType';
33

4-
export const configFields = ['__args', '__alias', '__variables', '__directives', '__typename'];
4+
export const configFields = ['__args', '__alias', '__variables', '__directives'];
55

66
function stringify(obj_from_json: any): string {
77
if (obj_from_json instanceof EnumType) {

tslint.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
],
55
"rules": {
66
"trailing-comma": [false],
7-
"object-literal-sort-keys": [true, "as-needed"],
7+
"object-literal-sort-keys": false,
8+
"object-literal-key-quotes": [true, "as-needed"],
89
"ordered-imports": false,
910
"no-console": [false],
1011
"no-unused-new": false,

0 commit comments

Comments
 (0)