@wonderflow/eslint-config

Wonderflow eslint sharable configuration

Usage no npm install needed!

<script type="module">
  import wonderflowEslintConfig from 'https://cdn.skypack.dev/@wonderflow/eslint-config';
</script>

README

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