eslint-plugin-header
eslint-plugin-header copied to clipboard
ESLint plugin to ensure that files begin with given comment
By default, in VSCode, the option for disabling a eslint rule for the whole file place the comment on top of the file, before the header. That cause the header...
Signed-off-by: Sebastian Malton fixes https://github.com/Stuk/eslint-plugin-header/issues/47
Currently if the first line is emtpy in the source file and the header starts at line 2 the fixer causes the header to be output many(non consistent but 10+...
First of all: **I love your plugin!** It saved me from the cumbersome task of adding a license header to all code that I write during business hours. 🙇 In...
This change essentially scans for a `` tag as the first element in a `.vue` file and checks for any comments within the script block. If it doesn't find a...
This PR fixes #37. ### Implementation details: - the comment parser now returns a third array value with the number of new lines at the end of the given comment...
I am trying to use a template header from file but due to the fact that it [trims](https://github.com/Stuk/eslint-plugin-header/blob/d1e2575f6e6d12b2fdc167c07885242082cc944f/lib/comment-parser.js#L7) when loading from file it is removing the trailing new lines which...
I have a CLI tool written in TypeScript which needs to have a [Shebang](https://en.wikipedia.org/wiki/Shebang_(Unix)) in the top of the file. Thus the copyright header has to follow afterwards and this...
Hi Stuk, we are using this header checker plugin and for some reason we need to define the error message by ourselves. So I expand another argument to store it.
Let's say I have a file with an existing comment: ``` // log 1 console.log(1); ``` Is there a way I can prevent eslint-plugin-header from removing the existing comment, and...