Skip to content

Commit 3be9fcb

Browse files
authored
Lint the generated files, with a few disabled rules (#106)
* Lint the generated files, with a few disabled rules * Install e2e dependencies in CI before linting
1 parent 3a15fd7 commit 3be9fcb

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ jobs:
3131
- name: Install dependencies
3232
run: pnpm install --frozen-lockfile
3333

34+
- name: Install e2e dependencies
35+
run: pnpm install --frozen-lockfile
36+
working-directory: test/e2e
37+
3438
- name: Compile JS and types
3539
run: pnpm run build
3640

eslint.config.mjs

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,19 @@ import solanaConfig from '@solana/eslint-config-solana';
22
import { defineConfig } from 'eslint/config';
33

44
export default defineConfig([
5-
{ ignores: ['**/dist/**', '**/e2e/**'] },
6-
{ files: ['**/*.ts', '**/*.(c|m)?js'], extends: [solanaConfig] },
5+
{ ignores: ['**/dist/**', '**/e2e/**/env-shim.ts', '**/e2e/**/tsup.config.ts', '**/e2e/**/test/**'] },
6+
{ files: ['**/*.ts', '**/*.(c|m)?js'], ignores: ['**/e2e/**'], extends: [solanaConfig] },
7+
{
8+
files: ['**/e2e/**/*.ts', '**/e2e/**/*.(c|m)?js'],
9+
extends: [solanaConfig],
10+
rules: {
11+
'@typescript-eslint/sort-type-constituents': 'off',
12+
'@typescript-eslint/no-unnecessary-type-assertion': 'off',
13+
'@typescript-eslint/no-empty-object-type': 'off',
14+
'@typescript-eslint/restrict-template-expressions': 'off',
15+
'simple-import-sort/imports': 'off',
16+
'sort-keys-fix/sort-keys-fix': 'off',
17+
'typescript-sort-keys/interface': 'off',
18+
},
19+
},
720
]);

0 commit comments

Comments
 (0)