@insighty-studio/eslint-config-react

0.1.11 • Public • Published

eslint-config-insighty-react

Standard Insighty React ESLint configuration.

How do I use this?

First, install all the necessary dependencies as described below.

yarn option

yarn add --dev @insighty-studio/eslint-config-react babel-eslint@^8.2.6 eslint@^5.2.0 eslint-config-airbnb@^17.0.0 eslint-plugin-import@^2.13.0 eslint-plugin-jsx-a11y@^6.1.1 eslint-plugin-react@^7.10.0

npm option

npm install --save-dev @insighty-studio/eslint-config-react babel-eslint@^8.2.6 eslint@^5.2.0 eslint-config-airbnb@^17.0.0 eslint-plugin-import@^2.13.0 eslint-plugin-jsx-a11y@^6.1.1 eslint-plugin-react@^7.10.0

or if using npm 5+, use this shortcut

npx install-peerdeps --dev @insighty-studio/eslint-config-react

Then create a file named .eslintrc with the following contents in the root folder of your project:

{
  "extends": "@insighty-studio/eslint-config-react"
}

If you might want to list the peer dependencies and versions, simply run

npm info "@insighty-studio/eslint-config-react@latest" peerDependencies
Note:

If you encounter with an eslint message "Unable to resolve path to module", you can add additional rule "import/no-unresolved": "off" into "rules" attribute which points to an array of rules or import your absolute paths as in the example below:

"settings": {
  "import/resolver": {
    "node": {
      "moduleDirectory": [
        "src/imports"
      ]
    }
  }
}

Package Sidebar

Install

npm i @insighty-studio/eslint-config-react

Weekly Downloads

0

Version

0.1.11

License

ISC

Unpacked Size

3.52 kB

Total Files

3

Last publish

Collaborators

  • 2bejoseph
  • bohdan-insighty
  • lucknee
  • rkrasiuk