@byndyusoft/eslint-config

    2.1.0 • Public • Published

    eslint-config

    NPM version

    requires ESLint >=8.8.0

    Install

    $ npm i eslint --save-dev
    $ npm i eslint @byndyusoft/eslint-config --save-dev

    Note: If you have React project created with create-react-app, then you haven't install eslint manually, because it comes with react-scripts. Otherwise it won't let you run eslint until you remove it from package.json.

    Usage

    Node + Jest

    {
      "extends": [
        "@byndyusoft/eslint-config/javascript",
        "@byndyusoft/eslint-config/jest",
        "@byndyusoft/eslint-config/node"
      ]
    }

    package.json

    {
      "engines": {
        "node": ">=8.10.0"
      }
    }

    Node + Typescript + Jest

    {
      "extends": [
        "@byndyusoft/eslint-config/typescript",
        "@byndyusoft/eslint-config/jest",
        "@byndyusoft/eslint-config/node"
      ],
      "parserOptions": {
        "project": "tsconfig.json"
      }
    }

    package.json

    {
      "engines": {
        "node": ">=8.10.0"
      }
    }

    Flow + React + Jest

    {
      "extends": [
        "@byndyusoft/eslint-config/javascript",
        "@byndyusoft/eslint-config/flow",
        "@byndyusoft/eslint-config/jest",
        "@byndyusoft/eslint-config/react",
        "@byndyusoft/eslint-config/react-testing"
      ]
    }

    Typescript + React + Jest

    {
      "extends": [
        "@byndyusoft/eslint-config/typescript",
        "@byndyusoft/eslint-config/jest",
        "@byndyusoft/eslint-config/react",
        "@byndyusoft/eslint-config/react-testing"
      ],
      "parserOptions": {
        "project": "tsconfig.json"
      }
    }

    Install

    npm i @byndyusoft/eslint-config

    DownloadsWeekly Downloads

    1,358

    Version

    2.1.0

    License

    MIT

    Unpacked Size

    44 kB

    Total Files

    34

    Last publish

    Collaborators

    • alexanderbyndyu
    • sadcitizen
    • dmitriy.litichevskiy
    • razonrus