@heliofi/eslint-config-helio

0.4.0 • Public • Published

eslint-config-helio

Official Helio eslint config for all Helio projects.

The package extends Airbnb styling guidelines customized for Typescript projects.

Usage

This package exposes two plugins, one for react applications and one for Node.js applications. Install the package as a developer dependency:

yarn add -D eslint-config-helio

If the project doesn't have eslint installed with Airbnb config, make sure that those dependencies are installed

yarn add -D @typescript-eslint/eslint-plugin@ˆ5.13.0 \
            @typescript-eslint/parser@ˆ5.0.0 \
            @eslint \
            eslint-config-airbnb-base \
            eslint-config-airbnb-typescript \
            eslint-plugin-import

React

In order to use the plugin in a React project add the following to package json

"eslintConfig": {
    "extends": [
+     "helio/react"
    ],
+   "parserOptions": {
+     "project": "./tsconfig.json"
+   }
},

Node.js

Similarly to React, in Node projects add the helio plugin without react extension

"eslintConfig": {
    "extends": [
+     "helio"
    ],
+   "parserOptions": {
+     "project": "./tsconfig.json"
+   }
},

Note it's important to add parserOptions.project with project pointing to tsconfig.json

Readme

Keywords

none

Package Sidebar

Install

npm i @heliofi/eslint-config-helio

Weekly Downloads

125

Version

0.4.0

License

MIT

Unpacked Size

3.95 kB

Total Files

8

Last publish

Collaborators

  • kim-helio
  • hhenryhharris
  • darioteudario
  • a2048
  • tigran-helio
  • zhirayrninoyan
  • 00mb
  • martinavagyan
  • ib1
  • helionpm