Skip to content

ESLint configuration files (shareable configs) to guard from problems in different areas of JavaScript and TypeScript development

License

Notifications You must be signed in to change notification settings

gamtiq/eslint-config-ts-guard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

c82f625 · Jan 28, 2022

History

17 Commits
Aug 5, 2020
Oct 13, 2021
Oct 13, 2021
Jan 28, 2022
Jan 28, 2022
Aug 5, 2020
Aug 5, 2020
Aug 5, 2020
Oct 13, 2021
Aug 5, 2020
Aug 5, 2020
Oct 13, 2021
Aug 5, 2020
Aug 5, 2020
Aug 5, 2020
Aug 5, 2020
Aug 5, 2020
Oct 13, 2021
Oct 13, 2021
Aug 5, 2020
Aug 5, 2020
Aug 5, 2020
Oct 16, 2020
Oct 16, 2020
Oct 16, 2020

Repository files navigation

eslint-config-ts-guard

Set of configuration files (shareable configs) for ESLint to guard/protect from problems in different areas of JavaScript and TypeScript development.

Extends eslint-config-guard.

Includes:

The following files re-export corresponding configs from eslint-config-guard:

Installation

Besides eslint-config-ts-guard you should install @typescript-eslint/eslint-plugin:

npm install eslint-config-ts-guard @typescript-eslint/eslint-plugin --save-dev

If you are going to use ts-guard/node you should install eslint-plugin-node:

npm install eslint-plugin-node --save-dev

If you are going to use ts-guard/proper-arrows you should install @getify/eslint-plugin-proper-arrows:

npm install @getify/eslint-plugin-proper-arrows --save-dev

If you are going to use ts-guard/react you should install eslint-plugin-react:

npm install eslint-plugin-react --save-dev

Usage

In a .eslintrc.json file:

{
    "extends": [
        "ts-guard",
        "ts-guard/node"
    ]
}

In a package.json:

{
    "eslintConfig": {
        "extends": [
            "ts-guard/ext",
            "ts-guard/proper-arrows",
            "ts-guard/react"
        ]
    }
}

License

Copyright (c) 2020-2022 Denis Sikuler
Licensed under the MIT license.