From 6b3d6a97d880f260ea8ed8062b37f315e9db07bd Mon Sep 17 00:00:00 2001 From: Adam DeHaven Date: Wed, 13 Sep 2023 11:51:09 -0400 Subject: [PATCH] fix: linting --- package.json | 6 +++--- src/composables/useI18n.ts | 2 +- src/elements/kong-auth-login/KongAuthLogin.spec.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 6cd3c9e4f..08dee7f8d 100644 --- a/package.json +++ b/package.json @@ -17,9 +17,9 @@ "dev:elements": "cross-env SANDBOX=elements vite", "typecheck": "vue-tsc --noEmit", "lint": "eslint '**/*.{js,ts,vue}'", - "lint:fix": "eslint '**/*.{js,ts,vue}' --fix", - "stylelint": "stylelint './src/**/*.{css,scss,sass,less,styl,vue}'", - "stylelint:fix": "stylelint './src/**/*.{css,scss,sass,less,styl,vue}' --fix", + "lint:fix": "yarn lint --fix", + "stylelint": "stylelint './src/**/*.{css,scss,sass,vue}'", + "stylelint:fix": "yarn stylelint --fix", "test": "cypress run --component -b chrome", "test:open": "cypress open --component -b chrome", "test:spec": "cypress run --component -b chrome --spec", diff --git a/src/composables/useI18n.ts b/src/composables/useI18n.ts index d6eb4f714..1c01f2a01 100644 --- a/src/composables/useI18n.ts +++ b/src/composables/useI18n.ts @@ -11,7 +11,7 @@ export default function useI18n(lang: SupportedLanguages = 'en') { let messages const languages: MessageLanguages = { - en: en, + en, } // If lang exists, set to use provided language diff --git a/src/elements/kong-auth-login/KongAuthLogin.spec.ts b/src/elements/kong-auth-login/KongAuthLogin.spec.ts index b8178a8ec..56940d011 100644 --- a/src/elements/kong-auth-login/KongAuthLogin.spec.ts +++ b/src/elements/kong-auth-login/KongAuthLogin.spec.ts @@ -552,7 +552,7 @@ describe('KongAuthLogin.ce.vue', () => { const portalId = '12345-67890' cy.stub(getConfigOptions, 'userEntity').returns('developer') cy.stub(getConfigOptions, 'developerConfig').returns({ - portalId: portalId, + portalId, }) cy.stub(win, 'getLocationPathname').returns('/login/sso') cy.stub(win, 'setLocationHref').as('set-location')