Blear
Blear
TTCTheo's Typesafe Cult
Created by Blear on 9/1/2023 in #questions
setting eslint to make absolute imports work
I would like absolute imports with @ to work in my project but when I set it to work imports like: import { z } from "zod"; stopped working. There us eslintrc code:
{
"extends": [
"next/core-web-vitals",
"plugin:xstate/recommended",
"plugin:prettier/recommended"
],
// "plugins": ["import"],
// "settings": {
// "import/resolver": {
// "alias": {
// "map": [["@", "./next"]],
// "extensions": [".ts", ".js", ".jsx", ".json"]
// }
// }
// },
"rules": {
"import/order": [
"error",
{
"groups": [
["builtin", "external"],
"internal",
["parent", "sibling", "index"]
],
"newlines-between": "always"
}
],
// "import/no-relative-parent-imports": "error",
"padding-line-between-statements": [
"error",
{
"blankLine": "always",
"prev": "*",
"next": [
"export",
"cjs-export",
"function",
"class",
"multiline-expression"
]
}
]
}
}
{
"extends": [
"next/core-web-vitals",
"plugin:xstate/recommended",
"plugin:prettier/recommended"
],
// "plugins": ["import"],
// "settings": {
// "import/resolver": {
// "alias": {
// "map": [["@", "./next"]],
// "extensions": [".ts", ".js", ".jsx", ".json"]
// }
// }
// },
"rules": {
"import/order": [
"error",
{
"groups": [
["builtin", "external"],
"internal",
["parent", "sibling", "index"]
],
"newlines-between": "always"
}
],
// "import/no-relative-parent-imports": "error",
"padding-line-between-statements": [
"error",
{
"blankLine": "always",
"prev": "*",
"next": [
"export",
"cjs-export",
"function",
"class",
"multiline-expression"
]
}
]
}
}
1 replies
TTCTheo's Typesafe Cult
Created by Blear on 7/27/2023 in #questions
Connect existing account with Google account
Hello I am trying to connect existing account with app with google accout with using next-auth, can somebody help and tell how can I achive it? On login page is option to login via google or email and password i want that if somedoby login with google and in database are existing user with that gmail that account are connected and login that user. I hope i write it clear
2 replies
TTCTheo's Typesafe Cult
Created by Blear on 7/25/2023 in #questions
Any bettter alternatives than sentry for error and perfomance tracking?
What are best alternatives for sentry for error and perfomance tracking in nextjs/T3 site? or sentry is the best for that?
4 replies