sinewy
sinewy
NNuxt
Created by sinewy on 6/6/2024 in #❓・help
ESLint in IDEA - flat config
hey, has anyone configured intellij idea to work with new eslint flat config? Suggestions please. I installed nuxt/eslint module but IDE is complaining about the config file. Error: Invalid Options: - Unknown options: resolvePluginsRelativeTo, rulePaths, useEslintrc, extensions, ignorePath - 'extensions' has been removed. - 'resolvePluginsRelativeTo' has been removed. - 'ignorePath' has been removed. - 'rulePaths' has been removed. Please define your rules using plugins. Error: Invalid Options: - Unknown options: resolvePluginsRelativeTo, rulePaths, useEslintrc, extensions, ignorePath - 'extensions' has been removed. - 'resolvePluginsRelativeTo' has been removed. - 'ignorePath' has been removed. - 'rulePaths' has been removed. Please define your rules using plugins. at processOptions (/Users/jz/Documents/Projects/tester/nuxt-starter/node_modules/.pnpm/[email protected]/node_modules/eslint/lib/eslint/eslint-helpers.js:839:15) ... Process finished with exit code -1
1 replies
NNuxt
Created by sinewy on 5/31/2024 in #❓・help
Load from API when server starts
Hi all. I am quite new to all this nuxt thing and currently I am working on an app. I got it working and all but now I need this feature where I have certain data, like some API base urls, and ports and other stuff that I get from, let's say configApi. So as I see it, it would make sense to call this api once the server starts up, get all this data from api and save it for later use in the app, so that is always there. I will need this data in server routes and in components or composables. I managed to find how to run stuff on server start. I made a plugin in ./server/plugins/server-start.ts But how to store this data and where. What would be the best approach to do this? Thanks for pointer and info.
1 replies