1.1.11 • Published 2 years ago

@wonderflow/eslint-config v1.1.11

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Wonderflow Eslint Configuration

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"
}