bauti
bauti
Explore posts from servers
NNuxt
Created by bauti on 9/5/2024 in #❓・help
How can i integrate sonarqube with vue SFC?
Hello! I would like some help in integrating sonarqube with vue SFC files. Before, i had a sonar-project.properties file without any special config for vue, and i think it threatened it like if it was plain js or vue files, it worked great! But it didnt detect any duplicated html or css, it only proccessed the JS part of the file. How can i set it to analysis the html and css of vue sfc files? I tried setting the .vue extension in sonar.html.file.suffixes, and it detected the duplicated lines, but it lowered the coverage and didnt process well the javascript. This is my current config:
sonar.coverage.exclusions=**
sonar.sources=.
sonar.javascript.lcov.reportPaths=coverage/lcov.info
sonar.coverage.exclusions=test/**/*,**/*.spec.js,**/*.spec.ts
sonar.test.inclusions=**/*.spec.js,**/*.spec.ts
sonar.javascript.file.suffixes=.js,.jsx,.mjs
sonar.html.file.suffixes=.html,.htm,.xhtml,.vue
sonar.coverage.exclusions=**
sonar.sources=.
sonar.javascript.lcov.reportPaths=coverage/lcov.info
sonar.coverage.exclusions=test/**/*,**/*.spec.js,**/*.spec.ts
sonar.test.inclusions=**/*.spec.js,**/*.spec.ts
sonar.javascript.file.suffixes=.js,.jsx,.mjs
sonar.html.file.suffixes=.html,.htm,.xhtml,.vue
1 replies
NNuxt
Created by bauti on 6/30/2024 in #❓・help
What storage should i use?
In my application I have a page gateway where I am uploading data. Previously I was using a cookie (with pinia persistedstore), but I saw that the data ends up being very large and occupy the entire size available for the cookie. I can't use data like clientside sessionStorage or localStorage because I show the information as soon as the page loads, without waiting for the client. What can I use? I was thinking about using H3 sessions, but I couldn't figure out how to do it in a simple way (In my app I don't need authentication, all I need is a getter and setter for a big object that I can access from the server).
3 replies
NNuxt
Created by bauti on 4/11/2024 in #❓・help
Cant get nuxt-eslint to work on bitbucket pipelines
Hello! Could anyone help me with setting up nuxt on bitbucket pipelines? A step of my pipeline is npm run lint (it runs after npm install) but when the lint runs, it throws this error:
- step: &install
name: 'Install Dependencies'
caches:
- node
script:
- npm install
- step: &lint
name: 'Lint'
caches:
- node
script:
- npm run lint
- step: &install
name: 'Install Dependencies'
caches:
- node
script:
- npm install
- step: &lint
name: 'Lint'
caches:
- node
script:
- npm run lint
+ npm run lint
> lint
> eslint .
Oops! Something went wrong! :(
ESLint: 8.57.0
Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/opt/atlassian/pipelines/agent/build/.nuxt/eslint.config.mjs' imported from /opt/atlassian/pipelines/agent/build/eslint.config.mjs
at new NodeError (node:internal/errors:405:5)
at finalizeResolution (node:internal/modules/esm/resolve:327:11)
at moduleResolve (node:internal/modules/esm/resolve:980:10)
at defaultResolve (node:internal/modules/esm/resolve:1193:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:404:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:373:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:250:38)
at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:76:39)
at link (node:internal/modules/esm/module_job:75:36)
+ npm run lint
> lint
> eslint .
Oops! Something went wrong! :(
ESLint: 8.57.0
Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/opt/atlassian/pipelines/agent/build/.nuxt/eslint.config.mjs' imported from /opt/atlassian/pipelines/agent/build/eslint.config.mjs
at new NodeError (node:internal/errors:405:5)
at finalizeResolution (node:internal/modules/esm/resolve:327:11)
at moduleResolve (node:internal/modules/esm/resolve:980:10)
at defaultResolve (node:internal/modules/esm/resolve:1193:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:404:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:373:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:250:38)
at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:76:39)
at link (node:internal/modules/esm/module_job:75:36)
I tried it locally, in windows, and on ubuntu, and in both the lint worked fine what can it be?
4 replies
CCoder.com
Created by bauti on 3/25/2024 in #help
How can i change the current region?
No description
10 replies