ui_migration setup(nodejs) Fix prettier eslint configurations remove workarounds lint:test and lint:test:fix

This commit is contained in:
Antonio Anaya 2026-05-19 18:30:14 -06:00
parent bf6dcebc16
commit 63991b3425
5 changed files with 22 additions and 18 deletions

View file

@ -159,7 +159,6 @@ javascript-lint-and-test:
script: script:
- npm run lint - npm run lint
- npm run lint:style - npm run lint:style
- npm run lint:test
# The test runs only if a test spec file has changed # The test runs only if a test spec file has changed
- npm run test:unit - npm run test:unit
artifacts: artifacts:

1
webapp/.prettierignore Normal file
View file

@ -0,0 +1 @@
coverage/

View file

@ -9,7 +9,13 @@ const isDev = process.env.NODE_ENV === "development";
export default [ export default [
{ {
ignores: ["dist/**/*", "lib/**/*", "**/*.min.js", "tools/architecture_dashboard/**/*"], ignores: [
"dist/**/*",
"lib/**/*",
"**/*.min.js",
"tools/architecture_dashboard/**/*",
"coverage/",
],
}, },
js.configs.recommended, js.configs.recommended,
@ -17,7 +23,7 @@ export default [
...vue.configs["flat/recommended"], ...vue.configs["flat/recommended"],
{ {
files: ["**/*.vue", "**/*.js", "**/*.jsx", "**/*.cjs", "**/*.mjs"], files: ["**/*.vue", "**/*.js", "**/*.jsx", "**/*.cjs", "**/*.mjs", "**/*.spec.js"],
languageOptions: { languageOptions: {
ecmaVersion: 2021, ecmaVersion: 2021,
sourceType: "module", sourceType: "module",

View file

@ -1749,9 +1749,9 @@
"license": "MIT" "license": "MIT"
}, },
"node_modules/@types/node": { "node_modules/@types/node": {
"version": "25.9.0", "version": "25.9.1",
"resolved": "https://registry.npmjs.org/@types/node/-/node-25.9.0.tgz", "resolved": "https://registry.npmjs.org/@types/node/-/node-25.9.1.tgz",
"integrity": "sha512-AOQwYUNolgy3VosiRqXrACUXTN8nJUtPl7FJXMqZVyxiiCLhQuG3jXKvCS1ALr+Y2OmZhzzLVlYPEqJaiqkaJQ==", "integrity": "sha512-xfrlY7UD5rMJk3ZVJP8BNzS28J36YJg+xp+LPXV1TdWxr8uMH5A860QNxYDGQe/ylDSgjxE52Q9VnO7p75tJxg==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
@ -3254,9 +3254,9 @@
} }
}, },
"node_modules/electron-to-chromium": { "node_modules/electron-to-chromium": {
"version": "1.5.357", "version": "1.5.360",
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.357.tgz", "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.360.tgz",
"integrity": "sha512-NHlTIQDK8fmVwHwuIzmXYEJ1Ewq3D9wDNc0cWXxDGysP6Pb21giwGNkxiTifyKy/4SoPuN5l6GLP1W9Sv7zB2g==", "integrity": "sha512-GkcBt6YYAw9SxFWn+xVar4cLVGlXVuswwtRLBozi2zp0GjXs4ZnOrqV4zbXzg35n7w81hCkyJNYicgXlVHAmBA==",
"dev": true, "dev": true,
"license": "ISC" "license": "ISC"
}, },
@ -5443,9 +5443,9 @@
} }
}, },
"node_modules/postcss": { "node_modules/postcss": {
"version": "8.5.14", "version": "8.5.15",
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.14.tgz", "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.15.tgz",
"integrity": "sha512-SoSL4+OSEtR99LHFZQiJLkT59C5B1amGO1NzTwj7TT1qCUgUO6hxOvzkOYxD+vMrXBM3XJIKzokoERdqQq/Zmg==", "integrity": "sha512-FfR8sjd4em2T6fb3I2MwAJU7HWVMr9zba+enmQeeWFfCbm+UOC/0X4DS8XtpUTMwWMGbjKYP7xjfNekzyGmB3A==",
"funding": [ "funding": [
{ {
"type": "opencollective", "type": "opencollective",
@ -5462,7 +5462,7 @@
], ],
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"nanoid": "^3.3.11", "nanoid": "^3.3.12",
"picocolors": "^1.1.1", "picocolors": "^1.1.1",
"source-map-js": "^1.2.1" "source-map-js": "^1.2.1"
}, },
@ -7009,9 +7009,9 @@
} }
}, },
"node_modules/vue-component-type-helpers": { "node_modules/vue-component-type-helpers": {
"version": "3.3.0", "version": "3.3.1",
"resolved": "https://registry.npmjs.org/vue-component-type-helpers/-/vue-component-type-helpers-3.3.0.tgz", "resolved": "https://registry.npmjs.org/vue-component-type-helpers/-/vue-component-type-helpers-3.3.1.tgz",
"integrity": "sha512-vwR8DDsBysI9NWXa0okPFpCcW+BUC3sPTuLBNo1faMzw4QWMFd+3/lFYFu29ZN0q+8UReXWJHEYesC9dcXYCLg==", "integrity": "sha512-pu58kqxmVyEH6VfNYW1UyEfR3XAnJ27ZXT3yzXxxpjLxVzAbyC35Zk/nm/RMs7ijWnJNSd9fWkeex2OhUsx3MA==",
"dev": true, "dev": true,
"license": "MIT" "license": "MIT"
}, },

View file

@ -16,8 +16,6 @@
"lint:fix": "eslint . --fix --ignore-pattern .gitignore", "lint:fix": "eslint . --fix --ignore-pattern .gitignore",
"lint:style": "stylelint \"src/**/*.{vue,less,css}\" --max-warnings=0", "lint:style": "stylelint \"src/**/*.{vue,less,css}\" --max-warnings=0",
"lint:style:fix": "stylelint \"src/**/*.{vue,less,css}\" --fix", "lint:style:fix": "stylelint \"src/**/*.{vue,less,css}\" --fix",
"lint:test": "prettier -c src/tests/unit/*.spec.js",
"lint:test:fix": "prettier -w src/tests/unit/*.spec.js",
"test:unit": "NODE_OPTIONS=--expose-gc vitest run src/tests/unit/ --no-cache --mode test --detectAsyncLeaks --coverage --isolate=true --pool=forks --silent --logHeapUsage" "test:unit": "NODE_OPTIONS=--expose-gc vitest run src/tests/unit/ --no-cache --mode test --detectAsyncLeaks --coverage --isolate=true --pool=forks --silent --logHeapUsage"
}, },
"dependencies": { "dependencies": {