Skip to content

Releases: robmisasi/eslint-plugin-headers

v1.2.0

05 Oct 23:08
Compare
Choose a tag to compare
  • Implement support for checking, formatting, and inserting leading comments in Vue files. See README for usage details.

Full Changelog: v1.1.2...v1.2.0

v1.1.2

11 Feb 18:41
Compare
Choose a tag to compare
  • Leading comment detection now involves a search for valid comment nodes before the Program node being linted, instead of directly parsing file text. This fixes an issue where .vue files could be --fixed but continued to produce errors.

v1.1.1

10 Feb 23:40
Compare
Choose a tag to compare
  • Comment matching is now agnostic to end of line character(s).
  • Fix an issue where linting an empty file would cause the plugin to crash.

v1.1.0

05 Jan 17:55
Compare
Choose a tag to compare

Add support for variable replacement within template expressions.

v1.0.5

05 Jan 03:23
Compare
Choose a tag to compare

A valid use case includes exporting a class with documentation that itself does not depend on external content. This change supports this case, as well as others where additional linting directives may be kept outside the leading comment block.

  • Fix: Include comment nodes when validating spacing between a valid header and the proceeding AST node.

v1.0.4

22 Dec 17:11
Compare
Choose a tag to compare
  • Fix: Headers with multiple paragraphs will no longer trigger a false content mismatch.

v1.0.3

07 Aug 17:25
Compare
Choose a tag to compare
  • Docs: Update examples.

v1.0.2

04 Aug 21:48
Compare
Choose a tag to compare
  • Fix: Newly inserted headers are now followed by the appropriate number of newlines specified in trailingNewlines config field.

v1.0.1 - Initial release

04 Aug 21:32
Compare
Choose a tag to compare

Initial release of ESLint plugin with the main goal of checking, inserting, and formatting file headers while preserving pragma expressions in leading comment blocks. Additionally includes support for:

  • custom comment block prefixes and suffixes
  • custom line prefixes for leading comment content
  • configurable comment style
  • configurable trailing whitespace.
  • configurable preservation of pragma expressions.