Socket
Socket
Sign inDemoInstall

@typescript-eslint/typescript-estree

Package Overview
Dependencies
Maintainers
1
Versions
3820
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@typescript-eslint/typescript-estree - npm Package Compare versions

Comparing version 0.2.2-alpha.0 to 1.0.0

6

CHANGELOG.md

@@ -6,4 +6,10 @@ # Change Log

# [1.0.0](https://github.com/typescript-eslint/typescript-eslint/compare/v0.2.1...v1.0.0) (2019-01-20)
### Features
- **parser:** support ecmaFeatures.jsx flag and tests ([#85](https://github.com/typescript-eslint/typescript-eslint/issues/85)) ([b321736](https://github.com/typescript-eslint/typescript-eslint/commit/b321736))
## [0.2.1](https://github.com/typescript-eslint/typescript-eslint/compare/v0.2.0...v0.2.1) (2019-01-20)
**Note:** Version bump only for package @typescript-eslint/typescript-estree

6

dist/parser.d.ts

@@ -11,5 +11,3 @@ import ts from 'typescript';

} : {});
export { AST_NODE_TYPES } from './ast-node-types';
export { version };
declare const version: any;
export declare const version: string;
export declare function parse<T extends ParserOptions = ParserOptions>(code: string, options?: T): AST<T>;

@@ -24,1 +22,3 @@ export declare function parseAndGenerateServices(code: string, options: ParserOptions): {

};
export { AST_NODE_TYPES } from './ast-node-types';
export { ParserOptions };

@@ -252,6 +252,3 @@ "use strict";

//------------------------------------------------------------------------------
var ast_node_types_1 = require("./ast-node-types");
exports.AST_NODE_TYPES = ast_node_types_1.AST_NODE_TYPES;
const version = packageJSON.version;
exports.version = version;
exports.version = packageJSON.version;
function parse(code, options) {

@@ -276,1 +273,3 @@ if (options && options.errorOnTypeScriptSyntacticAndSemanticIssues) {

exports.parseAndGenerateServices = parseAndGenerateServices;
var ast_node_types_1 = require("./ast-node-types");
exports.AST_NODE_TYPES = ast_node_types_1.AST_NODE_TYPES;
{
"name": "@typescript-eslint/typescript-estree",
"version": "0.2.2-alpha.0+5ab031a",
"version": "1.0.0",
"description": "A parser that converts TypeScript source code into an ESTree compatible form",

@@ -44,6 +44,6 @@ "main": "dist/parser.js",

"devDependencies": {
"@typescript-eslint/shared-fixtures": "^0.2.2-alpha.0+5ab031a",
"@typescript-eslint/shared-fixtures": "1.0.0",
"typescript": "~3.2.1"
},
"gitHead": "5ab031a48295daed37336597693863f80ef5d071"
"gitHead": "af460d4ad0c4646ed2c6e1de25629c4a2e8fd0f8"
}

@@ -6,8 +6,7 @@ <h1 align="center">TypeScript ESTree</h1>

<p align="center">
<a href="https://travis-ci.org/JamesHenry/typescript-estree"><img src="https://img.shields.io/travis/JamesHenry/typescript-estree.svg?style=flat-square" alt="Travis"/></a>
<a href="https://github.com/JamesHenry/typescript-estree/blob/master/LICENSE"><img src="https://img.shields.io/npm/l/typescript-estree.svg?style=flat-square" alt="GitHub license" /></a>
<a href="https://www.npmjs.com/package/typescript-estree"><img src="https://img.shields.io/npm/v/typescript-estree.svg?style=flat-square" alt="NPM Version" /></a>
<a href="https://www.npmjs.com/package/typescript-estree"><img src="https://img.shields.io/npm/dt/typescript-estree.svg?style=flat-square" alt="NPM Downloads" /></a>
<a href="http://commitizen.github.io/cz-cli/"><img src="https://img.shields.io/badge/commitizen-friendly-brightgreen.svg" alt="Commitizen friendly" /></a>
<a href="https://github.com/semantic-release/semantic-release"><img src="https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=flat-square" alt="semantic-release" /></a>
<a href="https://travis-ci.com/typescript-eslint/typescript-eslint"><img src="https://img.shields.io/travis/com/typescript-eslint/typescript-eslint.svg?style=flat-square" alt="Travis"/></a>
<a href="https://github.com/typescript-eslint/typescript-eslint/blob/master/LICENSE"><img src="https://img.shields.io/npm/l/typescript-estree.svg?style=flat-square" alt="GitHub license" /></a>
<a href="https://www.npmjs.com/package/@typescript-eslint/typescript-estree"><img src="https://img.shields.io/npm/v/@typescript-eslint/typescript-estree.svg?style=flat-square" alt="NPM Version" /></a>
<a href="https://www.npmjs.com/package/@typescript-eslint/typescript-estree"><img src="https://img.shields.io/npm/dm/@typescript-eslint/typescript-estree.svg?style=flat-square" alt="NPM Downloads" /></a>
<a href="http://commitizen.github.io/cz-cli/"><img src="https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=flat-square" alt="Commitizen friendly" /></a>
</p>

@@ -28,5 +27,5 @@

```sh
npm install @typescript-eslint/typescript-estree --save-dev
```
npm install --save @typescript-eslint/typescript-estree
```

@@ -39,36 +38,36 @@ ## API

```javascript
```js
{
// attach range information to each node
range: false,
// attach range information to each node
range: false,
// attach line/column location information to each node
loc: false,
// attach line/column location information to each node
loc: false,
// create a top-level tokens array containing all tokens
tokens: false,
// create a top-level tokens array containing all tokens
tokens: false,
// create a top-level comments array containing all comments
comment: false,
// create a top-level comments array containing all comments
comment: false,
// enable parsing JSX. For more details, see https://www.typescriptlang.org/docs/handbook/jsx.html
jsx: false,
// enable parsing JSX. For more details, see https://www.typescriptlang.org/docs/handbook/jsx.html
jsx: false,
/*
* The JSX AST changed the node type for string literals
* inside a JSX Element from `Literal` to `JSXText`.
* When value is `true`, these nodes will be parsed as type `JSXText`.
* When value is `false`, these nodes will be parsed as type `Literal`.
*/
useJSXTextNode: false,
/*
* The JSX AST changed the node type for string literals
* inside a JSX Element from `Literal` to `JSXText`.
* When value is `true`, these nodes will be parsed as type `JSXText`.
* When value is `false`, these nodes will be parsed as type `Literal`.
*/
useJSXTextNode: false,
// Cause the parser to error if it encounters an unknown AST node type (useful for testing)
errorOnUnknownASTType: false,
// Cause the parser to error if it encounters an unknown AST node type (useful for testing)
errorOnUnknownASTType: false,
/*
* Allows overriding of function used for logging.
* When value is `false`, no logging will occur.
* When value is not provided, `console.log()` will be used.
*/
loggerFn: undefined
/*
* Allows overriding of function used for logging.
* When value is `false`, no logging will occur.
* When value is not provided, `console.log()` will be used.
*/
loggerFn: undefined
}

@@ -79,3 +78,3 @@ ```

```javascript
```js
const parser = require('@typescript-eslint/typescript-estree');

@@ -95,3 +94,3 @@ const code = `const hello: string = 'world';`;

```javascript
```js
const parser = require('@typescript-eslint/typescript-estree');

@@ -107,3 +106,3 @@ const version = parser.version;

```javascript
```js
const parser = require('@typescript-eslint/typescript-estree');

@@ -110,0 +109,0 @@ const astNodeTypes = parser.AST_NODE_TYPES;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc