Nurturing Palpable Magnificence

    @shelf/eslint-config

    2.18.0 • Public • Published

    @shelf/eslint-config

    Style Guide

    Read our style guide

    Install

    $ yarn add @shelf/eslint-config --dev
    

    Usage

    Backend

    {
      "extends": ["@shelf/eslint-config/typescript"]
    }

    TypeScript .eslintrc

    {
      "extends": ["@shelf/eslint-config/typescript"]
    }

    Frontend

    JavaScript with React .eslintrc

    {
      "extends": ["@shelf/eslint-config/frontend"],
      "settings": {
        "react": {
          "version": "16.7.0"
        }
      },
      "rules": {
        "react/prop-types": "warn"
      }
    }

    TypeScript or TypeScript + Next .eslintrc

    {
      "extends": ["@shelf/eslint-config/frontend-typescript"],
      "settings": {
        "react": {
          "version": "16.7.0"
        }
      },
      "rules": {
        "react/prop-types": "warn"
      }
    }

    Vue .eslintrc

    {
      "extends": ["@shelf/eslint-config/frontend-vue"],
      "rules": {
        "no-unused-vars": ["error", {"vars": "all", "argsIgnorePattern": "^h$"}]
      }
    }

    Typescript with Vue .eslintrc

    {
      "extends": ["@shelf/eslint-config/frontend-typescript-vue"],
      "rules": {
        "@typescript-eslint/no-unused-vars": ["error", {"vars": "all", "argsIgnorePattern": "^h$"}]
      }
    }

    React with testing-library .eslintrc

    {
      "extends": ["@shelf/eslint-config/frontend-testing-library"],
      "rules": {
        "testing-library/no-wait-for-empty-callback": "error",
        "testing-library/no-await-sync-query": "error"
      }
    }

    Publish

    $ git checkout master
    $ yarn version
    $ yarn publish
    $ git push origin master --tags

    License

    MIT © Shelf

    Install

    npm i @shelf/eslint-config

    DownloadsWeekly Downloads

    5,706

    Version

    2.18.0

    License

    MIT

    Unpacked Size

    17.5 kB

    Total Files

    29

    Last publish

    Collaborators

    • anastasiash
    • kchlon
    • dmytro.harazdovskiy
    • duch0416
    • i5adovyi
    • olesiamuller
    • mykola.khytra
    • yuliiakovalchuk
    • el_scrambone
    • bodyaflesh
    • slavammellnikov
    • andrii-nastenko
    • andriisermiahin
    • arkadii007
    • mpushkin
    • batovpavlo
    • vasylhoban
    • andrew214
    • domovoj
    • vozemer
    • oleksii.dymnich
    • set001
    • bogdan.kyba
    • dima-bond
    • maksym.hayovets
    • oles.zadorozhnyy
    • ss1l
    • gemshelf
    • d-mii-
    • hartzler
    • tarasdyksan
    • andrii_butsa
    • nazarko_suv
    • bogdan.kolesnyk
    • vitaliishcherban
    • vladgolubev
    • marianna-milovanova
    • hmelenok
    • knupman
    • maaraanas
    • terret
    • chapelskyi.slavik
    • pihorb
    • irynah
    • diana.kryskuv
    • andy.raven
    • rafler
    • mykola.chepkyi
    • sskalp88
    • demiansua
    • yuriil
    • ktv18
    • drews_abuse
    • rostyslav-horytskyi
    • whodeen