File tree Expand file tree Collapse file tree
packages/cli/snap-tests/oxlint-typeaware Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ {}
Original file line number Diff line number Diff line change 1+ > vite lint ./src
2+ Found 0 warnings and 0 errors.
3+ Finished in <variable>ms on 1 file with <variable> rules using <variable> threads.
4+
5+
6+ > echo //comment >> types.ts
7+ > vite lint ./src # non-type-aware linting doesn't read types.ts
8+ ✓ cache hit, replaying
9+ Found 0 warnings and 0 errors.
10+ Finished in <variable>ms on 1 file with <variable> rules using <variable> threads.
11+
12+
13+ > vite lint --type-aware ./src
14+ Found 0 warnings and 0 errors.
15+ Finished in <variable>ms on 1 file with <variable> rules using <variable> threads.
16+
17+
18+ > echo //comment >> types.ts
19+ > vite lint --type-aware ./src # type-aware linting reads types.ts
20+ ✗ cache miss: content of input 'types.ts' changed, executing
21+ Found 0 warnings and 0 errors.
22+ Finished in <variable>ms on 1 file with <variable> rules using <variable> threads.
23+
Original file line number Diff line number Diff line change 1+ import type { Foo } from '../types' ;
2+
3+ declare const _foo : Foo ;
Original file line number Diff line number Diff line change 1+ {
2+ "ignoredPlatforms" : [" linux" ],
3+ "env" : {
4+ "VITE_DISABLE_AUTO_INSTALL" : " 1"
5+ },
6+ "commands" : [
7+ " vite lint ./src" ,
8+ " echo //comment >> types.ts" ,
9+ " vite lint ./src # non-type-aware linting doesn't read types.ts" ,
10+
11+ " vite lint --type-aware ./src" ,
12+ " echo //comment >> types.ts" ,
13+ " vite lint --type-aware ./src # type-aware linting reads types.ts"
14+ ]
15+ }
Original file line number Diff line number Diff line change 1+ export type Foo = number ;
You can’t perform that action at this time.
0 commit comments