Ignore some eslint error about log

pull/2195/head
Jérémy Rialland 2022-06-27 10:20:36 +02:00 committed by Jérémy Rialland
parent eccbea537d
commit 3082af0caf
6 changed files with 5 additions and 3 deletions

View File

@ -1,3 +1,4 @@
/* eslint-disable no-console */
import 'isomorphic-fetch'
import { exec } from 'child_process'
import { promisify } from 'util'

View File

@ -12,8 +12,6 @@ describe('Persistence (simulateur salarié)', function () {
})
it('should persist the current simulation (persistSimulation)', function () {
console.log(inputSelector)
cy.get(inputSelector).first().type('{selectall}42')
cy.contains('Passer').click()
cy.contains('Passer').click()

View File

@ -76,6 +76,7 @@ if (index > -1 && argv[index + 1]) {
data.replace(/#\[prerender\]#/g, redirects.join(''))
)
// eslint-disable-next-line no-console
console.log('Redirects added to ' + netlifyTomlPath)
} else {
throw new Error('tag #[prerender]# not found in ' + netlifyTomlPath)

View File

@ -1,3 +1,4 @@
/* eslint-disable no-console */
import './smarttag.js'
// Ci-dessous les indicateurs personnalisés de site et de page

View File

@ -17,6 +17,7 @@ const roundResult = (arr: number[]) => arr.map((x) => Math.round(x))
export const engine = engineFactory(rules, {
logger: {
warn: () => undefined,
// eslint-disable-next-line no-console
error: (m: string) => console.error(m),
log: () => undefined,
},

View File

@ -6,7 +6,7 @@ export default defineConfig({
entry: './source/iframe-integration-script.js',
name: 'monEntrepriseIframe',
formats: ['iife'],
fileName: (f) => 'simulateur-iframe-integration.js',
fileName: () => 'simulateur-iframe-integration.js',
},
emptyOutDir: false,
},