@insighty-studio/eslint-config-react
v0.1.11
Published
React ESLint configuration used by Insighty
Downloads
2
Readme
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"
]
}
}
}