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
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -10,6 +10,8 @@ on:
jobs:
build:
runs-on: ubuntu-latest
env:
PRCI: true
steps:
- name: Check out Git repository
+1 -1
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: