diff --git a/.github/workflows/pr-ci.yml b/.github/workflows/pr-ci.yml index 2fd3cf174..170c4ca90 100644 --- a/.github/workflows/pr-ci.yml +++ b/.github/workflows/pr-ci.yml @@ -10,6 +10,8 @@ on: jobs: build: runs-on: ubuntu-latest + env: + PRCI: true steps: - name: Check out Git repository diff --git a/eslint.config.mjs b/eslint.config.mjs index 1878b62b6..abaadac84 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -56,7 +56,7 @@ export default defineConfig([ ignores: ['src/**/__tests__/**', 'src/**/__mocks__/**', 'src/**/*.test.*'], rules: { 'no-restricted-syntax': [ - 'warn', + process.env.PRCI ? 'error' : 'warn', { selector: 'CallExpression[callee.object.name="console"]', message: