eslint-config-urbica

    3.0.0 • Public • Published

    Urbica ESLint config

    npm npm

    Urbica ESLint config

    Installation

    npm i -D eslint eslint-config-urbica
    yarn add -D eslint eslint-config-urbica

    Usage

    Create .eslintrc file, or put this under eslintConfig in your package.json.

    Using base config

    {
      "extends": "urbica"
    }

    Using react config

    {
      "extends": "urbica/react"
    }

    Absolute Imports

    If you are using absolute imports, you should specify root path for import/resolver:

    {
      "settings": {
        "import/resolver": {
          "node": {
            "paths": [
              "./src"
            ]
          }
        }
      }
    }

    Using JSX extensions

    If you want to use .jsx extensions, you should specify extensions in import/resolver:

    {
      "settings": {
        "import/resolver": {
          "node": {
            "extensions": [
              ".js",
              ".jsx"
            ]
          }
        }
      }
    }

    Install

    npm i eslint-config-urbica

    DownloadsWeekly Downloads

    21

    Version

    3.0.0

    License

    MIT

    Unpacked Size

    5.32 kB

    Total Files

    5

    Last publish

    Collaborators

    • boyur
    • device25
    • karmatsky
    • stepankuzmin