Skip to content

v0.1.0

Choose a tag to compare

@ajafff ajafff released this 15 Feb 12:38
· 1446 commits to master since this release

Features:

  • Enabled nightly builds for all packages. These can be installed with yarn add @fimbul/wotan@next @fimbul/ve@next ... (or npm install if you prefer).
  • ve: use SAX parser for performance and avoid false positive matches of <script> tags
  • wotan:
    • New rule typecheck: type errors as lint rule failures (similar to tslint --type-check, but is correctly formatted and can be ignored like any other rule)
    • New rule syntaxcheck: syntax errors as lint rule failures
    • New rule no-inferred-empty-object: warns about uninferred type parameters that might cause unintended behavior
    • Introduced LineSwitchParser to allow overriding the default line switch handling
    • Introduced ConfigurationProvider to allow overriding the default config lookup and parsing
    • Removed implicit configuration lookup in home directory
    • Improved error reporting for errors in configuration files
    • Fail early for circular aliases or missing rulesDirectories in configuration files
    • Allow alias shorthands:
    overrides:
      prefix:
        name: some-rule-name # same as `name: { rule: some-rule-name }`
  • Added documentation for rule and package authors

Bugfixes:

  • Include missing declarations in bundled declaration files
  • wotan:
    • Rule no-useless-type-assertion now correctly handles class expressions and qualified type names
    • Detect MPEG TS files and show a warning. Such files are treated as if they were empty.
    • stylish formatter correctly displays line:col information for files with BOM