JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 28
  • Score
    100M100P100Q89608F
  • License MIT

Common ESLint config used in Thorgate project template. Based on Airbnb eslint config.

Package Exports

  • @thorgate/eslint-config
  • @thorgate/eslint-config/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@thorgate/eslint-config) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@thorgate/eslint-config

Installation

  1. Install the package

    yarn install @thorgate/eslint-config
  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

    Otherwise you can use following:

    npm install eslint@^8.16.0 \
                eslint-config-airbnb@^19.0.2 \
                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-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
  3. Configuration

    In your .eslintrc add following:

    {
      "extends": ["@thorgate"]
    }

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