Commit graph

9 commits

Author SHA1 Message Date
Brian Donovan
efaae58d3d
refactor: replace assert with tiny-invariant 2024-03-01 15:27:32 -08:00
Ben Newman
8cc1f42408
Reformat codebase with printWidth:80 instead of 100. 2020-08-24 11:43:55 -04:00
Ben Newman
af696f3276
Run Prettier and fix eslint errors across entire codebase. 2020-08-23 16:32:08 -04:00
Brian Donovan
822b013218 refactor: use block scoping
This was done automatically using the following:

```
npm i @codemod/cli @resugar/codemod-declarations-block-scope
./node_modules/.bin/codemod -p @resugar/codemod-declarations-block-scope {src,test}/**/*.ts
```
2019-10-16 12:39:27 -07:00
Ben Newman
efae1f45fb
Eliminate recast/lib/types.ts wrapper module.
After this change, recast.types is now simply the ast-types namespace,
with no extra layers of indirection:

  import * as types from "ast-types"
  assert.strictEqual(recast.types, types)

The ASTNode, NodePath, and Type types are no longer exported directly from
recast, but can now be obtained via recast.types.{ASTNode,NodePath,Type}.

This is definitely a minor breaking change.
2019-05-13 13:27:40 -04:00
Ben Newman
8498bbb5b4
Convert Mapping to a class. 2019-01-12 17:37:13 -05:00
Ben Newman
7225f58cba
Reindent lib/mappings.ts to use two spaces per tab. 2019-01-12 17:37:03 -05:00
Brie
72aa176d38 Fix TypeScript compilation errors 2019-01-08 17:43:48 -08:00
Brie
268797b991 Rename files from JS to TS 2019-01-08 17:31:14 -08:00
Renamed from lib/mapping.js (Browse further)