Skip to content

Commit

Permalink
Simplify script
Browse files Browse the repository at this point in the history
  • Loading branch information
lorisleiva committed Nov 28, 2024
1 parent dd190aa commit e53e821
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import tseslint from 'typescript-eslint';
export default tseslint.config([
{
files: ['**/*.ts', '**/*.(c|m)?js'],
ignores: ['**/dist/**', '**/e2e/**'],
extends: [solanaConfig],
},
{
Expand Down
4 changes: 2 additions & 2 deletions packages/internals/scripts/lint.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { $, argv } from 'zx';
// Lint and format the code.
$.stdio = 'inherit';
if (argv.fix) {
await $`pnpm eslint --fix "src/**" "test/**" && pnpm prettier --log-level warn --ignore-unknown --write ./*`;
await $`pnpm eslint --fix . && pnpm prettier --log-level warn --ignore-unknown --write ./*`;
} else {
await $`pnpm eslint "src/**" "test/**" && pnpm prettier --check .`;
await $`pnpm eslint . && pnpm prettier --check .`;
}

0 comments on commit e53e821

Please sign in to comment.