Skip to content

Instantly share code, notes, and snippets.

@csorlandi csorlandi/.eslintrc forked from lcnogueira/.eslintrc
Created Jun 25, 2019

Embed
What would you like to do?
Configuração simples para usar o eslint + import absoluto no create-react-app v3 seguindo as configurações da rocketseat
{
"parser": "babel-eslint",
"extends": "airbnb",
"env": {
"browser": true,
"jest": true
},
"plugins": ["react", "jsx-a11y", "import"],
"rules": {
"react/jsx-filename-extension": [
"error",
{ "extensions": [".js", ".jsx"] }
],
"import/prefer-default-export": "off"
},
"settings": {
"import/resolver": {
"node": {
"moduleDirectory": ["node_modules", "src"]
}
}
}
}
{
"compilerOptions": {
"baseUrl": "src"
},
"include": ["src"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.