How to use the @typescript-eslint/typescript-estree.AST_NODE_TYPES.Identifier function in @typescript-eslint/typescript-estree

To help you get started, we’ve selected a few @typescript-eslint/typescript-estree examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github storybookjs / storybook / lib / config / src / preshake.ts View on Github external
(p: any) =>
              p.type === AST_NODE_TYPES.Property &&
              p.value.type === AST_NODE_TYPES.Identifier &&
              allowed.includes(p.value.name)
          );
github Halliwood / ts2lua / src / gen / LuaMaker.ts View on Github external
private codeFromForStatement(ast: ForStatement): string {
    this.hasContinue = false;
  
    let str = '';
    if (ast.init && ast.init.type != AST_NODE_TYPES.Identifier) {
      str += this.codeFromAST(ast.init) + '\n';
    }
    str += 'repeat\n';
    let repeatBodyStr = this.codeFromAST(ast.body);
    if(this.hasContinue) {
      repeatBodyStr = 'repeat\n' + this.indent(repeatBodyStr) + '\nuntil true'
    }
    if (ast.update) {
      repeatBodyStr += '\n';
      repeatBodyStr += this.codeFromAST(ast.update);
    }
    str += this.indent(repeatBodyStr) + '\n';
    str += 'until ';
    if (ast.test) {
      str += 'not(' + this.codeFromAST(ast.test) + ')';
    } else {

@typescript-eslint/typescript-estree

A parser that converts TypeScript source code into an ESTree compatible form

BSD-2-Clause
Latest version published 5 days ago

Package Health Score

95 / 100
Full package analysis