fix: set consolelog eslint to error when in prci lint check (#8532)

set consolelog eslint to error when in prci lint check
This commit is contained in:
fullex 2025-07-26 09:21:18 +08:00 committed by GitHub
parent b2935d800e
commit 640985a5e6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -10,6 +10,8 @@ on:
jobs:
build:
runs-on: ubuntu-latest
env:
PRCI: true
steps:
- name: Check out Git repository

View File

@ -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: