eslint-config-urbica
v3.0.0
Published
Urbica ESLint config
Downloads
5
Readme
Urbica ESLint config
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"
]
}
}
}
}