Skip to content

Commit a8ec29f

Browse files
prettier fix
1 parent 48b0633 commit a8ec29f

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

tools/spectral/ipa/__tests__/eachCustomMethodMustBeGetOrPost.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@ testRule('xgen-IPA-109-custom-method-must-be-GET-or-POST', [
3838
get: {},
3939
post: {},
4040
'x-xgen-IPA-exception': {
41-
'xgen-IPA-109-custom-method-must-be-GET-or-POST' : {}
41+
'xgen-IPA-109-custom-method-must-be-GET-or-POST': {},
4242
},
4343
},
4444
'/d:method': {
4545
get: {},
4646
post: {},
4747
'x-xgen-IPA-exception': {
48-
'xgen-IPA-109-custom-method-must-be-GET-or-POST' : {}
48+
'xgen-IPA-109-custom-method-must-be-GET-or-POST': {},
4949
},
5050
},
5151
},

tools/spectral/ipa/__tests__/eachCustomMethodMustUseCamelCase.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ testRule('xgen-IPA-109-custom-method-must-use-camel-case', [
1818
paths: {
1919
'/b/{exampleId}:MethodName': {
2020
'x-xgen-IPA-exception': {
21-
'xgen-IPA-109-custom-method-must-use-camel-case' : {}
21+
'xgen-IPA-109-custom-method-must-use-camel-case': {},
2222
},
2323
},
2424
'/b:MethodName': {
2525
'x-xgen-IPA-exception': {
26-
'xgen-IPA-109-custom-method-must-use-camel-case' : {}
26+
'xgen-IPA-109-custom-method-must-use-camel-case': {},
2727
},
2828
},
2929
},
@@ -64,7 +64,7 @@ testRule('xgen-IPA-109-custom-method-must-use-camel-case', [
6464
message: 'The custom method must use camelCase format. http://go/ipa/109',
6565
path: ['paths', '/a:method_name'],
6666
severity: DiagnosticSeverity.Warning,
67-
}
67+
},
6868
],
6969
},
7070
]);

tools/spectral/ipa/rulesets/IPA-109.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ rules:
2020
severity: warn
2121
given: '$.paths[*]'
2222
then:
23-
function: 'eachCustomMethodMustUseCamelCase'
23+
function: 'eachCustomMethodMustUseCamelCase'

tools/spectral/ipa/rulesets/functions/eachCustomMethodMustUseCamelCase.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default (input, opts, { path }) => {
2121
return;
2222
}
2323

24-
const isCamelCase = casing('fooBar' , { type: 'camel', disallowDigits: true });
24+
const isCamelCase = casing('fooBar', { type: 'camel', disallowDigits: true });
2525
console.log(isCamelCase);
2626
if (!isCamelCase) {
2727
return ERROR_RESULT;

0 commit comments

Comments
 (0)