Skip to content

Commit e93d19a

Browse files
author
lukaw3d
committed
Refactor prettier as a warning in vscode but as an error in CI
1 parent f9005fe commit e93d19a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ const config = {
7777
overrides: [
7878
{
7979
files: ['**/*.ts?(x)'],
80-
rules: { 'prettier/prettier': 'warn' },
80+
rules: { 'prettier/prettier': process.env.CI ? 'error' : 'warn' },
8181
},
8282
{
8383
files: ['internals/**'],

.github/workflows/ci-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
if: always()
7878
- name: ESLint
7979
# Disallow warnings and always throw errors.
80-
run: yarn lint --max-warnings 0
80+
run: yarn lint
8181
# Always run this step so that all linting errors can be seen at once.
8282
if: always()
8383
- name: Validate TypeScript

0 commit comments

Comments
 (0)