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
addedonly-arrow-functions
removedno-unnecessary-type-assertion
removedno-this-assignment
removedno-implicit-dependencies
removedno-var-requires
removedno-namespace
removed
ESLint
prefer-const
addedno-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:
- lynt
- eslint-config-lynt
- eslint-config-lynt-react
- eslint-config-lynt-flow
- tslint-config-lynt
- tslint-config-lynt-typed
- tslint-config-lynt-react
- tslint-config-lynt-react-typed
- style-rules
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.