Skip to content

Commit

Permalink
Merge pull request #180 from hubblecommerce/rc2.11
Browse files Browse the repository at this point in the history
Rc2.11
  • Loading branch information
dm-heinze authored Nov 14, 2024
2 parents 1650697 + 9755eca commit 7772caf
Show file tree
Hide file tree
Showing 49 changed files with 9,124 additions and 10,475 deletions.
3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

1 change: 1 addition & 0 deletions bin/hubble-cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
module.default(args)
}
} catch (e) {
// eslint-disable-next-line no-console
console.log(e)
if (e.code === 'MODULE_NOT_FOUND') {
// eslint-disable-next-line no-console
Expand Down
3 changes: 2 additions & 1 deletion cypress/support/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export const customFaker = new Faker({
})

declare global {
// eslint-disable-next-line @typescript-eslint/no-namespace
namespace Cypress {
interface Chainable {
selectRandomProduct (): Chainable<void>
Expand Down Expand Up @@ -63,7 +64,7 @@ Cypress.Commands.add('selectRandomProduct', () => {
let count
cy.get('.grid .card').then(($value) => {
count = $value.length
const randomIndex = Math.floor(Math.random() * parseInt(count)) + 1
const randomIndex = Math.floor(Math.random() * Number.parseInt(count)) + 1
cy.get(`.grid .card:nth-child(${randomIndex})`).contains('Details').click()
})
})
Expand Down
80 changes: 80 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
// @ts-check
import { createConfigForNuxt } from '@nuxt/eslint-config/flat'

export default createConfigForNuxt({
features: {
tooling: true,
stylistic: false,
},
dirs: {
src: [
'./src',
'./playground',
],
}
}).append({
ignores: [
'dist',
'node_modules',
'__tests__',
'src/platforms/shopware/api-client/generated'
],
}).override('nuxt/rules', {
rules: {
'quotes': [
'error',
'single'
],
'semi': [
'error',
'never'
],
'indent': [
'error',
4
],
'vue/html-indent': [
'error',
4
],
'no-multi-spaces': [
'error'
],
'@typescript-eslint/no-unused-vars': [
'off'
],
'vue/multi-word-component-names': [
'off'
],
'no-trailing-spaces': [
'off'
],
'@typescript-eslint/ban-ts-comment': [
'off'
],
'vue/no-multiple-template-root': [
'off'
],
'no-useless-return': [
'off'
],
'@typescript-eslint/no-explicit-any': [
'off'
],
'vue/padding-line-between-blocks': [
'off'
],
'@typescript-eslint/no-import-type-side-effects': [
'off'
],
'no-console': [
'error',
{
'allow': ['warn', 'error']
}
],
'@typescript-eslint/no-invalid-void-type': [
'off'
]
}
})
Loading

0 comments on commit 7772caf

Please sign in to comment.