Skip to content

Commit

Permalink
chore: improve copyright validator
Browse files Browse the repository at this point in the history
  • Loading branch information
ymehmetcan committed Jan 1, 2025
1 parent 0a3aaf1 commit 11473d6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { AST_TOKEN_TYPES, TSESTree } from '@typescript-eslint/utils';
export function validateCommencisCopyright(
commentNode?: TSESTree.Comment
): boolean {
if (!commentNode) return false;
return (
!!commentNode &&
commentNode.type === AST_TOKEN_TYPES.Block &&
commentNode.value.includes('Commencis') &&
commentNode.value.includes('Copyright')
Expand Down

0 comments on commit 11473d6

Please sign in to comment.