Skip to content

Commit

Permalink
fix: use #imports instead of #app
Browse files Browse the repository at this point in the history
  • Loading branch information
dword-design committed May 19, 2023
1 parent dce634e commit dad1449
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .baserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"eslintConfig": {
"extends": "@dword-design/eslint-config",
"rules": {
"import/no-unresolved": ["error", { "ignore": ["#app", "#mail"] }]
"import/no-unresolved": ["error", { "ignore": ["#imports", "#mail"] }]
},
"globals": {
"$fetch": "readonly"
Expand Down
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"error",
{
"ignore": [
"#app",
"#foo",
"#mail"
]
}
Expand Down
2 changes: 1 addition & 1 deletion src/composable.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { useNuxtApp } from '#app'
import { useNuxtApp } from '#imports'

export const useMail = () => useNuxtApp().$mail
2 changes: 1 addition & 1 deletion src/plugin-nuxt3.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { defineNuxtPlugin } from '#app'
import { defineNuxtPlugin } from '#imports'

export default defineNuxtPlugin(() => ({
provide: {
Expand Down

0 comments on commit dad1449

Please sign in to comment.