Skip to content

chore(deps): update js dev dependencies #2387

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions .github/workflows/ci-ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,7 @@ jobs:
run: yarn format:ci

- name: Lint
run: yarn lint:ci

- name: Archive lint report
uses: actions/upload-artifact@v4
with:
name: lint-report
path: ui/lint-report.json
if: failure()
run: yarn lint

- name: Unit tests
run: yarn coverage
Expand Down
89 changes: 56 additions & 33 deletions ui/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,59 +2,82 @@ module.exports = {
root: true,
env: {
browser: true,
es6: true
es6: true,
},
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'plugin:import/recommended', 'plugin:import/typescript', 'plugin:vue/essential', 'plugin:storybook/recommended', 'prettier'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:import/recommended',
'plugin:import/typescript',
'plugin:vue/essential',
'plugin:storybook/recommended',
'prettier',
],
settings: {
'import/internal-regex': '^@/',
'import/resolver': {
typescript: {},
alias: {
map: [['@', './src']],
extensions: ['.ts', '.js', '.vue', '.d.ts']
extensions: ['.ts', '.js', '.vue', '.d.ts'],
},
vite: {
configPath: './vite.config.ts'
}
}
},
},
rules: {
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-empty-function': ['error', {
allow: ['arrowFunctions']
}],
'@typescript-eslint/explicit-member-accessibility': ['error', {
accessibility: 'no-public'
}],
'@typescript-eslint/no-empty-function': [
'error',
{
allow: ['arrowFunctions'],
},
],
'@typescript-eslint/explicit-member-accessibility': [
'error',
{
accessibility: 'no-public',
},
],
// "@typescript-eslint/naming-convention": [
// "error",
// { "selector": "objectLiteralProperty", "format": ["camelCase"] }
// ],
'@typescript-eslint/prefer-interface': 'off',
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': ['error', {
argsIgnorePattern: '^_'
}],
'@typescript-eslint/no-unused-vars': [
'error',
{
argsIgnorePattern: '^_',
},
],
'prefer-const': ['error'],
'no-console': ['error', {
allow: ['warn', 'error']
}],
'vue/html-self-closing': ['error', {
html: {
void: 'any',
normal: 'always',
component: 'always'
'no-console': [
'error',
{
allow: ['warn', 'error'],
},
svg: 'always',
math: 'always'
}],
'vue/return-in-computed-property': ['error', {
treatUndefinedAsUnspecified: false
}],
],
'vue/html-self-closing': [
'error',
{
html: {
void: 'any',
normal: 'always',
component: 'always',
},
svg: 'always',
math: 'always',
},
],
'vue/return-in-computed-property': [
'error',
{
treatUndefinedAsUnspecified: false,
},
],
'simple-import-sort/imports': 'error',
'import/newline-after-import': 'error',
'import/no-duplicates': 'error'
'import/no-duplicates': 'error',
},
plugins: ['simple-import-sort', '@typescript-eslint', 'vue'],
parser: 'vue-eslint-parser',
Expand All @@ -63,6 +86,6 @@ module.exports = {
parser: '@typescript-eslint/parser',
sourceType: 'module',
createDefaultProgram: true,
project: ['./tsconfig.json']
}
project: ['./tsconfig.json'],
},
};
22 changes: 11 additions & 11 deletions ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
"scripts": {
"codecov": "codecov --token=8e0bf2da-c4b9-435f-958e-446849d0d60e --file=./coverage/coverage-final.json",
"lint": "eslint --no-error-on-unmatched-pattern src/ tests/ stories/",
"lint:ci": "yarn lint --output-file lint-report.json --format json",
"format": "prettier src/ tests/ stories/",
"format:ci": "yarn run format --check",
"format:fix": "yarn run format --write",
Expand Down Expand Up @@ -67,19 +66,19 @@
},
"devDependencies": {
"@storybook/addon-essentials": "^6.5.14",
"@storybook/builder-vite": "^0.2.5",
"@storybook/builder-vite": "^0.4.0",
"@storybook/vue": "^6.5.14",
"@types/lodash": "^4.14.138",
"@types/luxon": "^3.4.2",
"@typescript-eslint/eslint-plugin": "^5.42.0",
"@typescript-eslint/parser": "^5.42.0",
"@vitejs/plugin-vue2": "2.0.0",
"@vitest/coverage-c8": "^0.25.0",
"@vitejs/plugin-vue2": "2.3.3",
"@vitest/coverage-v8": "^3.1.1",
"@vue/eslint-config-prettier": "^7.0.0",
"@vue/eslint-config-typescript": "^3.2.0",
"@vue/test-utils": "1.0.0-beta.29",
"@vue/tsconfig": "^0.1.3",
"codecov": "^3.3.0",
"@vue/test-utils": "1.3.6",
"@vue/tsconfig": "^0.7.0",
"codecov": "^3.8.3",
"core-js": "3",
"eslint": "^8.27.0",
"eslint-config-import": "^0.13.0",
Expand All @@ -88,21 +87,21 @@
"eslint-import-resolver-typescript": "^3.5.2",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-simple-import-sort": "^8.0.0",
"eslint-plugin-storybook": "^0.6.7",
"eslint-plugin-storybook": "^0.12.0",
"eslint-plugin-vue": "^9.7.0",
"jsdom": "^20.0.2",
"prettier": "^2.7.1",
"sass": "^1.29.0",
"sass-loader": "^10.1.0",
"storybook": "^6.5.14",
"tslib": "^2.4.0",
"typedoc": "^0.15.0",
"typedoc": "^0.28.0",
"typedoc-plugin-markdown": "^1.1.27",
"typescript": "^4.9.3",
"v-calendar": "^2.3.4",
"v-tooltip": "^2.0.3",
"vite": "^4.5.6",
"vitest": "^0.25.3",
"vitest": "^3.1.1",
"vue": "^2.7.14",
"vue-class-component": "^7.2.6",
"vue-eslint-parser": "^9.1.0",
Expand All @@ -111,5 +110,6 @@
"vue-property-decorator": "^9.1.2",
"vue-template-compiler": "2.7.14",
"vue-tsc": "^1.0.9"
}
},
"packageManager": "[email protected]+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
}
2 changes: 1 addition & 1 deletion ui/src/assets/FA-ICONS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,4 @@ const FA_ICONS = {

export const FA_ICONS_PACK = Object.values(FA_ICONS);
export const FA_ICONS_NAMES = Object.keys(FA_ICONS);
export type FAIconName = typeof FA_ICONS_NAMES[number];
export type FAIconName = (typeof FA_ICONS_NAMES)[number];
1 change: 1 addition & 0 deletions ui/tests/unit/calendar.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import type { Wrapper } from '@vue/test-utils';
import { shallowMount } from '@vue/test-utils';
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
// eslint-disable-next-line import/no-unresolved
import DatePicker from 'v-calendar/lib/components/date-picker.umd';
import { afterEach, beforeEach, describe, expect, it } from 'vitest';

Expand Down
Loading
Loading