JSPM

andrelinos-eslint-config

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

Fork from ESLint configuration used by Rocketseat.

Package Exports

    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 (andrelinos-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

    Andrelino Silva ESLint config

    Whats included?

    • Standard config base;
    • React plugin;
    • React Hooks plugin;
    • JSX a11y plugin;
    • Prettier;

    Setup

    React (with Next.js)

    Install dependencies:

    npm i -D eslint andrelinos-eslint-config

    Inside .eslintrc.json

    {
      "extends": [
        "andrelinos-eslint-config/next",
        "plugin:tailwindcss/recommended",
        "next/core-web-vitals"
      ],
      "plugins": [
        "simple-import-sort"
      ],
    }

    React (without Next.js)

    Install dependencies:

    npm i -D eslint andrelinos-eslint-config

    Inside .eslintrc.json

    {
      "extends": [
        "andrelinos-eslint-config/react",
        "plugin:tailwindcss/recommended"
      ],
      "plugins": [
        "simple-import-sort"
      ]
    }

    Node.js

    Install dependencies:

    npm i -D eslint andrelinos-eslint-config

    Inside .eslintrc.json

    {
      "extends": "andrelinos-eslint-config/node",
      "plugins": [
        "simple-import-sort"
      ]
    }