Skip to content

Commit 19626b2

Browse files
committed
Updated linter settings. Some minor linting was done.
1 parent df318ce commit 19626b2

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

src/extensions/apollo/__tests__/apollo.tests.ts

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ describe('addApolloTarget()', () => {
66
it('Converts a simple JavaScript object into a valid Apollo query', () => {
77
const input = {
88
appState2: {
9-
hello2: 'some arbitrary value',
10-
hello: 'arbitrary value'
9+
hello: 'arbitrary value',
10+
hello2: 'some arbitrary value'
1111
}
1212
};
1313
const apolloTarget = 'client';
@@ -20,34 +20,34 @@ describe('addApolloTarget()', () => {
2020
__typename: 'everyday-health-focuses',
2121
diet: {
2222
__typename: 'diet',
23-
title: 'Diet',
2423
id: 'diet',
2524
options: {
26-
'__typename': 'diet-options', // Why does my IDE tell me only this line needs quotation?
25+
__typename: 'diet-options', // Why does my IDE tell me only this line needs quotation?
2726
'calorie-count': {
2827
__typename: 'calorie-count',
29-
text: 'Calorie Count',
30-
id: 'calorie-count',
31-
icon: 'fa fa-question-circle',
3228
category: 'Diet',
33-
selected: false
34-
},
35-
'weight': {
36-
__typename: 'weight',
37-
text: 'Weight',
38-
id: 'weight',
3929
icon: 'fa fa-question-circle',
40-
category: 'Diet',
41-
selected: false
30+
id: 'calorie-count',
31+
selected: false,
32+
text: 'Calorie Count'
4233
},
43-
'mood': {
34+
mood: {
4435
__typename: 'mood',
45-
text: 'Mood',
46-
id: 'mood',
36+
category: 'Diet',
4737
icon: 'fa fa-question-circle',
38+
id: 'mood',
39+
selected: false,
40+
text: 'Mood'
41+
},
42+
weight: {
43+
__typename: 'weight',
4844
category: 'Diet',
49-
selected: false
45+
icon: 'fa fa-question-circle',
46+
id: 'weight',
47+
selected: false,
48+
text: 'Weight'
5049
},
50+
title: 'Diet'
5151
}
5252
},
5353
};

tslint.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
],
55
"rules": {
66
"trailing-comma": [false],
7-
"object-literal-sort-keys": false,
7+
"object-literal-sort-keys": [true, "as-needed"],
88
"ordered-imports": false,
99
"no-console": [false],
1010
"no-unused-new": false,

0 commit comments

Comments
 (0)