Stuk / eslint-plugin-header

ESLint plugin to ensure that files begin with given comment
MIT License
71 stars 36 forks source link

Ignore shebangs above header comments to support ESLint 4+ #11

Closed Bangsadrengur closed 7 years ago

Bangsadrengur commented 7 years ago

Eslint 4 new returns Shebangs along with other comments when requested where as it excluded them previously. This results in false positives in executable node.js files. See: https://eslint.org/docs/user-guide/migrating-to-4.0.0#shebangs

This change filters out Shebang lines from the comments from eslint so running the rule with eslint 4 should be consistent to running with previous versions of eslint.

Stuk commented 7 years ago

Published as v1.1.0. Thank you for your contribution!