1.0.19 • Published 3 months ago

@handsin/eslint-config v1.0.19

Weekly downloads
-
License
MIT
Repository
-
Last release
3 months ago

eslint-config

Hands In's company wide eslint config for typescript and javascript projects (including react)

Install

npm install -D @handsin/eslint-config

Usage

To use the rules set by Hands In in your project, add the following to your .eslintrc.js file

NodeJs

Javascript

// .eslintrc.js
{
    "extends": ["@handsin/eslint-config/javascript"],
}

Typescript

// .eslintrc.js
{
    "parser": "@typescript-eslint/parser",
    "parserOptions": {
        "project": "./tsconfig.json"
    },
    "extends": ["@handsin/eslint-config/typescript"],
}

React

Javascript

// .eslintrc.js
{
    "extends": ["@handsin/eslint-config/react/javascript"],
}

Typescript

// .eslintrc.js
{
    "parser": "@typescript-eslint/parser",
    "parserOptions": {
        "project": "./tsconfig.json"
    },
    "extends": ["@handsin/eslint-config/react/typescript"],
}

Prettier

If you are using prettier in your projectm, you can also extend the Hands In prettier configuration rules by adding the following to your .prettierrc.js file.

// .prettierrc.js

module.exports = {
    ...require('@handsin/eslint-config/.prettierrc.json')
    // your rules here
    // ...
}
1.0.19

3 months ago

1.0.18

3 months ago

1.0.17

3 months ago

1.0.16

3 months ago

1.0.15

3 months ago

1.0.14

8 months ago

1.0.13

8 months ago

1.0.12

11 months ago

1.0.11

11 months ago

1.0.10

11 months ago

1.0.9

11 months ago

1.0.8

11 months ago

1.0.7

11 months ago

1.0.6

11 months ago

1.0.5

11 months ago

1.0.4

11 months ago

1.0.3

11 months ago

1.0.2

12 months ago

1.0.1

12 months ago

1.0.0

12 months ago