infctr / eslint-plugin-typescript-sort-keys

A linter plugin to require sorting interface and string enum keys
ISC License
144 stars 28 forks source link

Crush #10

Closed denisx closed 4 years ago

denisx commented 4 years ago

TypeError: Cannot read property 'name' of undefined

  getPropertyName(node) {
    return module.exports.getStaticPropertyName(node) || node.key.name || null;
  },

sample

export interface IFoo {
    (dependencies?: any): (Widget: ComponentType) => ComponentType<any>;
    a: string;
}