Skip to content

v0.5.0 – Split packages, rule changes, and exporting config

Latest
Compare
Choose a tag to compare
@saadq saadq released this 17 Jul 00:11
· 18 commits to master since this release

CLI

  • New --exportConfig option added (Thanks @danielpa9708).

This allows you to export the config that Lynt uses for TSLint or ESLint into your current working directory. When used with --typescript, this will create a tslint.json file in your CWD. When used without --typescript, it will create a eslintrc.json and .eslintignore in your CWD. The main purpose of exporting your configs is for usage with text editors until plugins for Lynt exist.

Rule Changes

TSLint

  • prefer-const added
  • only-arrow-functions removed
  • no-unnecessary-type-assertion removed
  • no-this-assignment removed
  • no-implicit-dependencies removed
  • no-var-requires removed
  • no-namespace removed

ESLint

  • prefer-const added
  • no-var added

Internal Changes

Split Packages

Hardcoded rules have been removed from Lynt's codebase, and shareable config packages are conditionally included in the extends field instead. The following packages now exist:

The plan is to group all of these packages together into this repo and to use something like Lerna in order to create this monorepo.

Test rewrite

Tests have been completely rewritten and improved to better cover more use cases and different options. The CLI itself is now being tested as well.