Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@fimbul/mithotyn

Package Overview
Dependencies
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fimbul/mithotyn

TypeScript LanguageService plugin for the Fimbullinter project

  • 0.17.0-dev.20181218
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
51
increased by64.52%
Maintainers
2
Weekly downloads
 
Created
Source

Mithotyn

TypeScript LanguageService Plugin that provides real-time in-editor linting while you type.

npm version npm downloads Renovate enabled CircleCI Build status codecov Join the chat at https://gitter.im/fimbullinter/wotan

Make sure to also read the full documentation of all available modules.

Installation

npm install --save-dev @fimbul/wotan @fimbul/mithotyn
# or
yarn add -D @fimbul/wotan @fimbul/mithotyn

Usage

To enable this plugin, you need to add @fimbul/mithotyn as plugin in your tsconfig.json. For example:

{
  "compilerOptions": {
    "plugins": [
      { "name": "@fimbul/mithotyn" }
    ],
    // your existing compilerOptions
    "strict": true,
  }
}

Make sure you have @fimbul/wotan installed in the project directory or a parent directory.

Configuration Options

To customize your in-editor linting experience you can use the following configuration options:

  • displayErrorsAsWarnings: boolean: Report failures with severity error as warning to make them distinguishable from real type errors (e.g. green instead of red squiggles in VS Code)

Example:

{
  "compilerOptions": {
    "plugins": [
      {
        "name": "@fimbul/mithotyn",
        "displayErrorsAsWarnings": true
      }
    ],
    // your existing compilerOptions
    "strict": true,
  }
}

Usage in VS Code

In Visual Studio Code you can choose between the version of TypeScript that comes bundled with the editor or the local one installed in the workspace. Due to technical limitations you need to choose the workspace version to correctly pick up the plugin configured in the previous section.

  • open command palette while a TypeScript or JavaScript file is opened
  • select TypeScript: Select TypeScript Version.
  • select Use Workspace Version

Other editors might work the same as VS Code.

To work around this limitation there will be an editor plugin that automatically loads this LanguageService plugin. Stay tuned.

Limitations

There are some limitations of the current implementation. These are subject to change in future releases.

  • Currently only works with TypeScript installed in your workspace, see Usage in VS Code
  • doesn't use global options from .fimbullinter.yaml
    • no plugin modules
    • no fixed config option
    • no files matching
    • no exclude option
  • doesn't provide code fixes for rule failures
  • doesn't validate .wotanrc.yaml and .fimbullinter.yaml files

License

Apache-2.0 © Klaus Meinhardt

Keywords

FAQs

Package last updated on 18 Dec 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc