Skip to content

Copyright header recognition does not work with CLI scripts #39

Description

@bennycode

I have a CLI tool written in TypeScript which needs to have a Shebang in the top of the file. Thus the copyright header has to follow afterwards and this is not recognized with my config:

    "header/header": [
      "error",
      "block",
      [
        {
          "pattern": "Copyright",
          "template": "Copyright Test"
        }
      ],
      2
    ],

cli.ts

#!/usr/bin/env node

/*
 * Copyright (C) 2021
 */

// Some code here...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions