1.0.19 • Published 1 year ago

@handsin/eslint-config v1.0.19

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year 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

1 year ago

1.0.18

1 year ago

1.0.17

1 year ago

1.0.16

1 year ago

1.0.15

1 year ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago