module.exports = {
  /*
   * Enforces avoiding trailing commas in Object and Tuple annotations.
   */
  'flowtype/delimiter-dangle': 'error',

  /*
   * Checks for duplicate properties in Object annotations.
   */
  'flowtype/no-dupe-keys': 'error',

  /*
   * Disallows use of primitive constructors as types, such as Boolean, Number and String
   */
  'flowtype/no-primitive-constructor-types': 'error',

  /*
   * Enforces consistent separators between properties in Flow object types.
   */
  'flowtype/object-type-delimiter': 'error',

  /*
   * Enforces sorting of Object annotations.
   */
  'flowtype/sort-keys': 'error',

  /*
   * All defined flow types should start with a capital letter and end in a "T"
   */
  'flowtype/type-id-match': ['error', '^([A-Z][a-z0-9]*)+T$']
}
