Skip to content

Commit 9a7fc40

Browse files
fix
1 parent a8ec29f commit 9a7fc40

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

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

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,8 @@ export default (input, opts, { path }) => {
2121
return;
2222
}
2323

24-
const isCamelCase = casing('fooBar', { type: 'camel', disallowDigits: true });
25-
console.log(isCamelCase);
26-
if (!isCamelCase) {
24+
const isCamelCase = casing(methodName, { type: 'camel', disallowDigits: true });
25+
if (isCamelCase !== undefined) {
2726
return ERROR_RESULT;
2827
}
29-
30-
/*const camelCaseRegex = /^[a-z]+(?:[A-Z](?:[a-z]+|$))*$/;
31-
if (!camelCaseRegex.test(methodName)) {
32-
return ERROR_RESULT;
33-
}*/
3428
};

0 commit comments

Comments
 (0)