-
-
Save csorlandi/b196ebbd6b51f06b7627876bb511be8c to your computer and use it in GitHub Desktop.
Configuração simples para usar o eslint + import absoluto no create-react-app v3 seguindo as configurações da rocketseat
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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"] | |
} | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"compilerOptions": { | |
"baseUrl": "src" | |
}, | |
"include": ["src"] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment