-
-
Notifications
You must be signed in to change notification settings - Fork 221
feat: TypeScript support for Espree #705
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
607b37e
feat: typescript
brettz9 a924a79
Update packages/espree/package.json
brettz9 d85ab78
rename ParserOptions -> Options
brettz9 5c31699
rename ecmaVersion -> EcmaVersion; remove unused imports
brettz9 4988665
cast lastTemplateToken as (defined) acorn.Token
brettz9 9276b01
add tsd tests and inspired fixes (making arguments optional)
brettz9 c62f3a1
add further public exports
brettz9 b0ce158
tsd fixes
brettz9 1a75b30
Update packages/espree/package.json
brettz9 5af5b76
assume loc and range are defined
brettz9 a405d61
liberalize version string type
brettz9 7742d81
remove unused import
brettz9 7996a56
moving definitions to main export file; attempt to avoid lib folder
brettz9 233d7d8
Revert "moving definitions to main export file; attempt to avoid lib …
brettz9 086b897
inline BaseEsprimaToken
brettz9 b2350a0
delete dist/lib at end of build
brettz9 6a09b5c
check dist file types; make eslint-visitor-keys explicit to avoid bro…
brettz9 d73b6b0
remove dist/lib with evaluated script
brettz9 8a72a35
revert to stable acorn-jsx
brettz9 281e211
inline acorn-jsx types
brettz9 a12f55f
Update packages/espree/lib/espree.js
brettz9 1ee7bbf
switch from Integer to number
brettz9 6c50b1b
liberalize version
brettz9 942c70b
Update packages/espree/tsconfig.json
brettz9 9188d5d
Update packages/espree/tsconfig-cjs.json
brettz9 1f834d5
use bare import specifier
brettz9 277b720
set `getLatestEcmaVersion` to last `const` value in union
brettz9 50565bc
narrow parse return type to acorn.Program
brettz9 7b20583
reuse existing import for types
brettz9 81bca5f
double quotes
brettz9 46ff304
Update packages/espree/lib/espree.js
brettz9 a664f3f
Update packages/espree/espree.js
brettz9 8cd7135
Update packages/espree/lib/options.js
brettz9 33ac707
use `@import`
brettz9 2d9e38a
Update packages/espree/espree.js
brettz9 edf4744
normalizedEcmaVersion -> NormalizedEcmaVersion
brettz9 2b9725d
infer _R -> unknown[]
brettz9 d4a27f9
move JSDoc types after imports
brettz9 bcef526
use EcmaVersion internally to options.js function
brettz9 e58590e
revert EcmaVersion values and add need for updating to CONTRIBUTING
brettz9 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| import * as espree from "./espree.js"; | ||
| export = espree; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.