Skip to content

Commit

Permalink
Getting rid of all trailing commas
Browse files Browse the repository at this point in the history
  • Loading branch information
brdandu committed Aug 21, 2024
1 parent 28f4483 commit bd7574c
Show file tree
Hide file tree
Showing 285 changed files with 5,628 additions and 5,667 deletions.
12 changes: 6 additions & 6 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,21 @@ module.exports = {
parserOptions: {
parser: '@babel/eslint-parser',
sourceType: 'module',
ecmaVersion: 2018,
ecmaVersion: 2018
},

env: {
node: true,
browser: true,
'vue/setup-compiler-macros': true,
'vue/setup-compiler-macros': true
},

extends: [
// https://eslint.vuejs.org/rules/#priority-a-essential-error-prevention
// consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules.
'plugin:vue/vue3-essential',
'prettier',
'eslint:recommended',
'eslint:recommended'
],

// required to lint *.vue files
Expand All @@ -30,7 +30,7 @@ module.exports = {
__statics: true,
process: true,
Capacitor: true,
chrome: true,
chrome: true
},

// add your custom rules here
Expand Down Expand Up @@ -62,6 +62,6 @@ module.exports = {

// random rules added
'no-undef': 'off',
'no-unused-vars': 'off',
},
'no-unused-vars': 'off'
}
}
4 changes: 2 additions & 2 deletions .postcssrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
module.exports = {
plugins: [
// to edit target browsers: use "browserslist" field in package.json
require('autoprefixer'),
],
require('autoprefixer')
]
}
3 changes: 2 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
"printWidth": 80,
"tabWidth": 2,
"useTabs": false,
"arrowParens": "always"
"arrowParens": "always",
"trailingComma": "none"
}
4 changes: 2 additions & 2 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module.exports = (api) => {
return {
presets: [
['@quasar/babel-preset-app', envOptions],
'@babel/preset-typescript',
],
'@babel/preset-typescript'
]
}
}
6 changes: 3 additions & 3 deletions cypress.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default defineConfig({
'**/*.xml',
'**/*.zap',
'**/custom_xml.spec.js',
'**/check-cluster-attributes-singleton-in-zigbee-mode.spec.js',
],
},
'**/check-cluster-attributes-singleton-in-zigbee-mode.spec.js'
]
}
})
6 changes: 3 additions & 3 deletions cypress/e2e/attribute_validations/bitmap.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@ describe('Testing BITMAP type validation', () => {
() => {
cy.fixture('data').then((data) => {
cy.get(
`:nth-child(${data.bitmapinputpath}) > [style="min-width: 180px;"] > .q-field > .q-field__inner > .q-field__control > .q-field__control-container > input`,
`:nth-child(${data.bitmapinputpath}) > [style="min-width: 180px;"] > .q-field > .q-field__inner > .q-field__control > .q-field__control-container > input`
)
.clear({ force: true })
.type('test', { force: true })
})
},
}
)
it('check if validation works properly', () => {
cy.fixture('data').then((data) => {
cy.get(
`:nth-child(${data.bitmapinputpath}) > [style="min-width: 180px;"] > .q-field > .q-field__inner > .q-field__bottom > .q-field__messages > div`,
`:nth-child(${data.bitmapinputpath}) > [style="min-width: 180px;"] > .q-field > .q-field__inner > .q-field__bottom > .q-field__messages > div`
).should('exist')
})
})
Expand Down
8 changes: 4 additions & 4 deletions cypress/e2e/attribute_validations/boolean.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ describe('Testing BOOLEAN type validation', () => {
cy.gotoAttributePage(
data.endpoint1,
data.cluster1,
data.booleanclusterpath,
data.booleanclusterpath
)
})
})
Expand All @@ -26,17 +26,17 @@ describe('Testing BOOLEAN type validation', () => {
() => {
cy.fixture('data').then((data) => {
cy.get(
`:nth-child(${data.booleaninputpath}) > [style="min-width: 180px;"] > .q-field > .q-field__inner > .q-field__control > .q-field__control-container > input`,
`:nth-child(${data.booleaninputpath}) > [style="min-width: 180px;"] > .q-field > .q-field__inner > .q-field__control > .q-field__control-container > input`
)
.clear({ force: true })
.type('test', { force: true })
})
},
}
)
it('check if validation works properly', () => {
cy.fixture('data').then((data) => {
cy.get(
`:nth-child(${data.booleaninputpath}) > [style="min-width: 180px;"] > .q-field > .q-field__inner > .q-field__bottom > .q-field__messages > div`,
`:nth-child(${data.booleaninputpath}) > [style="min-width: 180px;"] > .q-field > .q-field__inner > .q-field__bottom > .q-field__messages > div`
).should('exist')
})
})
Expand Down
6 changes: 3 additions & 3 deletions cypress/e2e/attribute_validations/enum8.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@ describe('Testing ENUM8 type validation', () => {
() => {
cy.fixture('data').then((data) => {
cy.get(
`:nth-child(${data.enum8inputpath}) > [style="min-width: 180px;"] > .q-field > .q-field__inner > .q-field__control > .q-field__control-container > input`,
`:nth-child(${data.enum8inputpath}) > [style="min-width: 180px;"] > .q-field > .q-field__inner > .q-field__control > .q-field__control-container > input`
)
.clear({ force: true })
.type('test', { force: true })
})
},
}
)
it('check if validation works properly', () => {
cy.fixture('data').then((data) => {
cy.get(
`:nth-child(${data.enum8inputpath}) > [style="min-width: 180px;"] > .q-field > .q-field__inner > .q-field__bottom > .q-field__messages > div`,
`:nth-child(${data.enum8inputpath}) > [style="min-width: 180px;"] > .q-field > .q-field__inner > .q-field__bottom > .q-field__messages > div`
).should('exist')
})
})
Expand Down
8 changes: 4 additions & 4 deletions cypress/e2e/attribute_validations/int16.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,22 @@ describe('Testing INT16U type validation', () => {
() => {
cy.fixture('data').then((data) => {
cy.get(
`:nth-child(${data.int16inputpath}) > [style="min-width: 180px;"] > .q-field > .q-field__inner > .q-field__control > .q-field__control-container > input`,
`:nth-child(${data.int16inputpath}) > [style="min-width: 180px;"] > .q-field > .q-field__inner > .q-field__control > .q-field__control-container > input`
)
.clear({ force: true })
.type('test', { force: true })
})
},
}
)
it(
'check if validation works properly',
{ retries: { runMode: 2, openMode: 2 } },
() => {
cy.fixture('data').then((data) => {
cy.get(
`:nth-child(${data.int16inputpath}) > [style="min-width: 180px;"] > .q-field > .q-field__inner > .q-field__bottom > .q-field__messages > div`,
`:nth-child(${data.int16inputpath}) > [style="min-width: 180px;"] > .q-field > .q-field__inner > .q-field__bottom > .q-field__messages > div`
).should('exist')
})
},
}
)
})
6 changes: 3 additions & 3 deletions cypress/e2e/attribute_validations/int8.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ describe('Testing INT8U type validation', () => {
{ retries: { runMode: 2, openMode: 2 } },
() => {
cy.get(
':nth-child(1) > [style="min-width: 180px;"] > .q-field > .q-field__inner > .q-field__control > .q-field__control-container > input',
':nth-child(1) > [style="min-width: 180px;"] > .q-field > .q-field__inner > .q-field__control > .q-field__control-container > input'
)
.clear({ force: true })
.type('test', { force: true })
},
}
)
it('check if validation works properly', () => {
cy.get(
':nth-child(1) > [style="min-width: 180px;"] > .q-field > .q-field__inner > .q-field__bottom > .q-field__messages > div',
':nth-child(1) > [style="min-width: 180px;"] > .q-field > .q-field__inner > .q-field__bottom > .q-field__messages > div'
).should('exist')
})
})
10 changes: 5 additions & 5 deletions cypress/e2e/attributes/check-required-attributes.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@ describe('Testing disabling enabled attributes', () => {
{ retries: { runMode: 2, openMode: 2 } },
() => {
cy.get(
'.attribute_table_body:first > :nth-child(2) > .q-mt-xs > .q-toggle__inner ',
'.attribute_table_body:first > :nth-child(2) > .q-mt-xs > .q-toggle__inner '
).click()
cy.get(
'.attribute_table_body:first > :nth-child(2) > .q-mt-xs > .q-toggle__inner',
'.attribute_table_body:first > :nth-child(2) > .q-mt-xs > .q-toggle__inner'
).should('be.visible')
cy.get(
'.attribute_table_body:first > :nth-child(2) > .q-mt-xs > .q-toggle__inner',
'.attribute_table_body:first > :nth-child(2) > .q-mt-xs > .q-toggle__inner'
).click()
cy.contains(
'.attribute_table_body:first > :nth-child(2) > .q-mt-xs > .q-toggle__inner',
'.attribute_table_body:first > :nth-child(2) > .q-mt-xs > .q-toggle__inner'
).should('not.exist')
},
}
)
})
4 changes: 2 additions & 2 deletions cypress/e2e/attributes/check-search.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ describe('Testing attribute search', () => {
.should('contain', data.attribute1)
.and('contain', data.attribute2)
})
},
}
)
it('Search for application', () => {
cy.fixture('data').then((data) => {
cy.get(
'.col-auto > .q-field > .q-field__inner > .q-field__control > .q-field__control-container > input',
'.col-auto > .q-field > .q-field__inner > .q-field__control > .q-field__control-container > input'
)
.clear({ force: true })
.type(data.searchString1, { force: true })
Expand Down
4 changes: 2 additions & 2 deletions cypress/e2e/clusters/cluster-filter.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ describe('Testing cluster filters', () => {
() => {
cy.get('[data-test="filter-input"]').click()
cy.get('.q-virtual-scroll__content > :nth-child(3)').click({
force: true,
force: true
})
cy.fixture('data').then((data) => {
cy.get('tbody').children().contains(data.cluster2).should('not.exist')
})
},
}
)
})
2 changes: 1 addition & 1 deletion cypress/e2e/clusters/cluster-multiple-search.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ describe('Add multiple clusters and search', () => {
cy.get('.flex > strong').should('contain', 'Endpoint - 3')
cy.fixture('data').then((data) => {
cy.get('#General > .q-expansion-item__container > .q-item').click({
force: true,
force: true
})
cy.get('tbody')
.children()
Expand Down
6 changes: 3 additions & 3 deletions cypress/e2e/clusters/cluster-search.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ describe('Testing cluster search', () => {
cy.addEndpoint(data.endpoint1, data.cluster1)
})
cy.get('#General > .q-expansion-item__container > .q-item').click({
force: true,
force: true
})
cy.fixture('data').then((data) => {
cy.get('tbody')
Expand Down Expand Up @@ -48,12 +48,12 @@ describe('Testing cluster search', () => {
cy.dataCy('cluster-general').children().children().eq(0).click()
cy.dataCy('cluster-general').should(
'have.class',
'q-expansion-item--collapsed',
'q-expansion-item--collapsed'
)
cy.dataCy('cluster-general').children().children().eq(0).click()
cy.dataCy('cluster-general').should(
'have.class',
'q-expansion-item--expanded',
'q-expansion-item--expanded'
)
cy.dataCy('cluster-btn-closeall').click()
cy.get('[data-test=Cluster').each(($row) => {
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/clusters/dimmable-light.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ describe(
.type(data.cluster4)
})
})
},
}
)
2 changes: 1 addition & 1 deletion cypress/e2e/endpoints/edit-endpoint.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ describe('Testing Editing endpoints', () => {
cy.fixture('data').then((data) => {
cy.get('aside').children().should('contain', data.endpoint2)
})
},
}
)
})
4 changes: 2 additions & 2 deletions cypress/e2e/theme/theme.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ describe('Check theme functionality', () => {
cy.wait(500)
cy.get('#darkTheme').find('input').uncheck({ force: true })
cy.get('body').should('have.class', 'body--light')
},
}
)

it(
Expand All @@ -33,7 +33,7 @@ describe('Check theme functionality', () => {
cy.wait(500)
cy.get('#darkTheme').find('input').check({ force: true })
cy.get('body').should('have.class', 'body--dark')
},
}
)

it('RendererApi: set light theme', () => {
Expand Down
6 changes: 3 additions & 3 deletions cypress/e2e/ui/notification-panel.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ describe('Check notification panel functionality', () => {
cy.get('#NotificationPanel')
.parent()
.should('not.have.class', ' q-layout--prevent-focus')
},
}
)
it('Check active status on navbar', () => {
cy.get('#Notifications').should('have.class', 'navmenu-item--active')
Expand All @@ -36,7 +36,7 @@ describe('Check notification panel functionality', () => {
cy.get('#NotificationPanel')
.parent()
.should('have.class', 'q-layout--prevent-focus')
},
}
)
it(
'Open notification panel and open preview panel',
Expand All @@ -51,6 +51,6 @@ describe('Check notification panel functionality', () => {
cy.get('#NotificationPanel')
.parent()
.should('have.class', 'q-layout--prevent-focus')
},
}
)
})
4 changes: 2 additions & 2 deletions cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Cypress.Commands.add('gotoAttributePage', (endpoint, cluster, nth = 0) => {
cy.get('div').contains(cluster).click({ force: true })
cy.wait(1000)
cy.get(
`#${cluster} > .q-expansion-item__container > .q-expansion-item__content > .q-card > .q-card__section > .row > .q-table__container > .q-table__middle > .q-table > tbody > :nth-child(1) > :nth-child(7) > .q-btn `,
`#${cluster} > .q-expansion-item__container > .q-expansion-item__content > .q-card > .q-card__section > .row > .q-table__container > .q-table__middle > .q-table > tbody > :nth-child(1) > :nth-child(7) > .q-btn `
)
.eq(nth)
.click({ force: true })
Expand All @@ -41,7 +41,7 @@ Cypress.Commands.add('rendererApi', (...args) => {
const log = Cypress.log({
name: 'rendererApi',
displayName: 'RendererApi',
message: [`🚀 ${args[0]}(${args.slice(1)})`],
message: [`🚀 ${args[0]}(${args.slice(1)})`]
})

log.snapshot('before')
Expand Down
Loading

0 comments on commit bd7574c

Please sign in to comment.