TSTypeLiteral()

in scripts/prettier-plugin/index.js [58:68]


    TSTypeLiteral(node) {
      const { members } = node;
      members.sort((a, b) => {
        const { key: aKey } = a;
        const { key: bKey } = b;
        if (aKey.type === 'Identifier' && bKey.type === 'Identifier') {
          return aKey.name.localeCompare(bKey.name);
        }
        return 0;
      });
    }