mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-12 08:59:02 +08:00
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:
parent
b2935d800e
commit
640985a5e6
2
.github/workflows/pr-ci.yml
vendored
2
.github/workflows/pr-ci.yml
vendored
@ -10,6 +10,8 @@ on:
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
PRCI: true
|
||||
|
||||
steps:
|
||||
- name: Check out Git repository
|
||||
|
||||
@ -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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user