Skip to content

Commit dfd791f

Browse files
prettier fix
1 parent aa6b264 commit dfd791f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ testRule('xgen-IPA-123-enum-values-must-be-upper-snake-case', [
2222
items: {
2323
type: 'string',
2424
enum: ['EXAMPLE_A', 'EXAMPLE_B'],
25-
}
25+
},
2626
},
2727
},
2828
},

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ const RULE_NAME = 'xgen-IPA-123-enum-values-must-be-upper-snake-case';
66
const ERROR_MESSAGE = 'enum value must be UPPER_SNAKE_CASE.';
77

88
export function getSchemaPathFromEnumPath(path) {
9-
if(path.includes('items')) {
10-
path = path.slice(0, - 1);
9+
if (path.includes('items')) {
10+
path = path.slice(0, -1);
1111
}
12-
return path.slice(0, - 1);
12+
return path.slice(0, -1);
1313
}
1414

1515
export default (input, _, { path, documentInventory }) => {

0 commit comments

Comments
 (0)