@thorgate/eslint-config-typescript

3.1.0 • Public • Published

@thorgate/eslint-config-typescript

Installation

  1. Install the package

    yarn install @thorgate/eslint-config-typescript
  2. Install ESLint plugins

    ESLint plugins used by this config must also be installed within your project. This is a limitation within ESLint.

    Install required plugins if you have npm 5+ installed

    npx install-peerdeps --dev @thorgate/eslint-config-typescript

    Otherwise you can use following:

    npm install eslint@^8.16.0 \
                eslint-config-airbnb@^19.0.4 \
                eslint-config-airbnb-typescript@^17.0.0 \
                eslint-config-prettier@^8.5.0 \
                eslint-config-react-app@^7.0.1 \
                eslint-plugin-flowtype@^8.0.3 \
                eslint-plugin-import@^2.26.0 \
                eslint-import-resolver-typescript@^2.7.1 \
                eslint-plugin-jest@^26.2.2 \
                eslint-plugin-jsx-a11y@^6.5.1 \
                eslint-plugin-prettier@^4.0.0 \
                eslint-plugin-react@^7.30.0 \
                eslint-plugin-react-hooks@^4.5.0 \
                @typescript-eslint/parser@^5.5.0 \
                @typescript-eslint/eslint-plugin@^5.5.0 \
                typescript@^4
  3. Configure ESLint

    In your .eslintrc add following.

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

    If you need to change some rules then add those to .eslintrc also. This goes for adding resolvers also.

Package Sidebar

Install

npm i @thorgate/eslint-config-typescript

Weekly Downloads

101

Version

3.1.0

License

MIT

Unpacked Size

9.89 kB

Total Files

5

Last publish

Collaborators

  • thorgate-main
  • jyrno42
  • metsavaht