Skip to content

Detect TypeScript rules defined with variable export #262

@bmish

Description

@bmish

We detect many TypeScript rules already but we're failing to detect those using the TypeScript-specific export = rule syntax:

import {Rule} from 'eslint';

const rule: Rule.RuleModule = {
  meta: {},

  create(context): Rule.RuleListener {
    const source = context.getSourceCode();
    // ...
  }
};

export = rule;

Example: https://github.com/43081j/eslint-plugin-lit/blob/master/src/rules/no-duplicate-template-bindings.ts

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions