Skip to content

wonderflow-bv/eslint-config-wonderflow

Repository files navigation

Wonderflow Eslint Configuration Wonderflow Logo

Release

This repository contains the source code of Wonderflow eslint rules to ensure your JS is compliant with Wonderflow JS coding standards.

npm i -D @wonderflow/eslint-config

Usage

Extends the configuration from your local eslintrc configuration file:

{
  "extends": "@wonderflow/eslint-config"
}

Typescript

To add eslint typescript support you can extend the configuration by adding the parser and the plugin.

npm i -D @typescript-eslint/parser @typescript-eslint/eslint-plugin
{
  "extends": "@wonderflow/eslint-config",
  "parser": "@typescript-eslint/parser",
  "plugins": ["@typescript-eslint"]
}

Then create a tsconfig.eslint.json at the project root that extends your typescript configuration:

{
  "extends": "./tsconfig.json"
}