Skip to content

Copyright header recognition does not work with CLI scriptsΒ #39

@bennycode

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...

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