0.1.9 • Published 6 years ago
eslint-config-insighty-react v0.1.9
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 eslint-config-insighty-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 --dev eslint-config-insighty-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
Then create a file named .eslintrc
with the following contents in the root folder of your project:
{
"extends": "insighty-react"
}
If you might want to list the peer dependencies and versions, simply run
npm info "eslint-config-insighty-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"
]
}
}
}