@emanprague/eslint-config

    3.0.0 • Public • Published

    eslint-config

    This package contains shared rules for ESlint with TypeScript and Prettier.

    Inspired by https://dev.to/robertcoopercode/using-eslint-and-prettier-in-a-typescript-project-53jb

    Versions

    eslint-config v3 supports ESlint 8.

    eslint-config v2 requires ESlint 7.

    Use eslint-config v1 for ESlint 6 + TSlint.

    Usage

    Install ESlint:

    yarn add eslint @emanprague/eslint-config -D
    

    Update config files as follows:

    .eslintrc.js

    module.exports = {
      extends: [
        "@emanprague/eslint-config/eslint-default"
      ],
      settings: {
        react: {
          version: "latest",
        },
      },
      env: {
        browser: true,
        jest: true,
      },
    };
    

    .prettierrc.js

    module.exports = require("@emanprague/eslint-config/prettier-config");
    

    And you should be good to go with:

    eslint \"./src/**/*.{ts,tsx}\" --cache

    Install

    npm i @emanprague/eslint-config

    DownloadsWeekly Downloads

    64

    Version

    3.0.0

    License

    MIT

    Unpacked Size

    6.35 kB

    Total Files

    6

    Last publish

    Collaborators

    • jindrichskupa
    • eman.devops
    • strnadj
    • gius