1
0
Fork 0
mirror of synced 2024-06-27 02:20:35 +12:00
ignoring lint for entire query support files, rather than just ignoring a specific line
This commit is contained in:
Mitch-Budibase 2022-01-21 17:50:16 +00:00
parent 220ee31b02
commit 85003f5b9c
3 changed files with 23 additions and 22 deletions

View file

@ -422,13 +422,14 @@ Cypress.Commands.add("addDatasourceConfig", (datasource, skipFetch) => {
// Click to fetch tables // Click to fetch tables
if (skipFetch) { if (skipFetch) {
cy.get(".spectrum-Dialog-grid").within(() => { cy.get(".spectrum-Dialog-grid").within(() => {
cy.get(".spectrum-Button").contains("Skip table fetch") cy.get(".spectrum-Button")
.contains("Skip table fetch")
.click({ force: true }) .click({ force: true })
}) })
} } else {
else {
cy.get(".spectrum-Dialog-grid").within(() => { cy.get(".spectrum-Dialog-grid").within(() => {
cy.get(".spectrum-Button").contains("Save and fetch tables") cy.get(".spectrum-Button")
.contains("Save and fetch tables")
.click({ force: true }) .click({ force: true })
cy.wait(1000) cy.wait(1000)
}) })

View file

@ -1,13 +1,13 @@
// eslint-disable-next-line /* eslint-disable */
const breweries = data const breweries = data
const totals = {} const totals = {}
for (let brewery of breweries) for (let brewery of breweries) {
{const state = brewery.state const state = brewery.state
if (totals[state] == null) if (totals[state] == null) {
{totals[state] = 1 totals[state] = 1
} else } else {
{totals[state]++ totals[state]++
} }
} }
const entries = Object.entries(totals) const entries = Object.entries(totals)

View file

@ -1,16 +1,16 @@
// eslint-disable-next-line /* eslint-disable */
const breweries = data const breweries = data
const totals = {} const totals = {}
for (let brewery of breweries) for (let brewery of breweries) {
{const state = brewery.state const state = brewery.state
if (totals[state] == null) if (totals[state] == null) {
{totals[state] = 1 totals[state] = 1
} else } else {
{totals[state]++ totals[state]++
} }
} }
const stateCodes = const stateCodes = {
{texas: "tx", texas: "tx",
colorado: "co", colorado: "co",
florida: "fl", florida: "fl",
iwoa: "ia", iwoa: "ia",
@ -25,7 +25,7 @@ const stateCodes =
ohio: "oh", ohio: "oh",
} }
const entries = Object.entries(totals) const entries = Object.entries(totals)
return entries.map(([state, count]) => return entries.map(([state, count]) => {
{stateCodes[state.toLowerCase()] stateCodes[state.toLowerCase()]
return { state, count, flag: "http://flags.ox3.in/svg/us/${stateCode}.svg" } return { state, count, flag: "http://flags.ox3.in/svg/us/${stateCode}.svg" }
}) })