diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4d697c4..2c4ecb2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,7 +2,7 @@ name: CI on: push: - branches: [develop] + branches: [main] pull_request: jobs: diff --git a/.github/workflows/semgrep.yml b/.github/workflows/semgrep.yml index 0263d60..a305ebd 100644 --- a/.github/workflows/semgrep.yml +++ b/.github/workflows/semgrep.yml @@ -3,7 +3,7 @@ name: Semgrep on: pull_request: - branches: ['develop'] + branches: ['main'] # Schedule the CI job (this method uses cron syntax): schedule: diff --git a/src/error.js b/src/error.js index 198eb96..da537a7 100644 --- a/src/error.js +++ b/src/error.js @@ -49,7 +49,6 @@ export default function error(type) { export function isValidStrict(type) { let valid = false; - // eslint-disable-next-line no-restricted-syntax for (const i in errors) { if (Object.prototype.hasOwnProperty.call(errors, i) && errors[i] === type) { valid = true; diff --git a/test/integration/parsing/error.js b/test/integration/parsing/error.js index 16ce5da..f6068cc 100644 --- a/test/integration/parsing/error.js +++ b/test/integration/parsing/error.js @@ -25,7 +25,6 @@ describe('.parse() error', () => { expect(parser.parse('#N/A')).toMatchObject({ error: '#N/A', result: null }); expect(parser.parse('#N/A!')).toMatchObject({ error: '#ERROR!', result: null }); expect(parser.parse('#N/A?')).toMatchObject({ error: '#ERROR!', result: null }); - /* eslint-disable no-useless-escape */ expect(parser.parse('#NA')).toMatchObject({ error: '#ERROR!', result: null }); });