erro de import/extensions eslint #2171
Unanswered
HigorAln
asked this question in
Perguntas e Respostas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Olá pessoal,
estou utilizando nextjs, typescript para fazer aplicações ('estou estudando ainda')
comecei a utilizar eslint esses dias, e estou com um erro que esta me deixando com muita raiva...
Missing file extension for "../Hooks/useAuth"eslintimport/extensions
sempre que importo algo para dentro de paginas ou de components ele me da esse erro no importação
meu eslint esta assim:
{ "env": { "browser": true, "es2021": true, "node": true }, "extends": [ "plugin:react/recommended", "airbnb", "prettier", "prettier/react" ], "parser": "@typescript-eslint/parser", "parserOptions": { "ecmaFeatures": { "jsx": true }, "ecmaVersion": 12, "sourceType": "module" }, "plugins": [ "react", "@typescript-eslint", "prettier" ], "rules": { "prettier/prettier": "error", "react/jsx-filename-extension": [1, {"extensions": [".js", ".jsx",".tsx",".ts"]}], "react/prop-types": "off", "react/jsx-props-no-spreading": ["error", { "html": "ignore", "custom": "ignore", "exceptions": [""] }], "react/react-in-jsx-scope": "off", "import/no-unresolved": "off", "jsx-a11y/anchor-is-valid": 0, "import/prefer-default-export": "off", "import/extensions": [ "error", "ignorePackages", { "js": "never", "jsx": "never", "ts": "never", "tsx": "never" } ] } }
se ficar ruim de ver o codigo: https://github.com/HigorAln/Authentication-Github-Firebase
quem poder me ajudar... agradeço desde já
OBS: Utilizo apenas a extenção tsx e ts
Beta Was this translation helpful? Give feedback.
All reactions