UNPKG

eslint-config-iplayer-ts

Version:
26 lines (25 loc) 1.15 kB
module.exports = { rules: { '@typescript-eslint/adjacent-overload-signatures': 2, '@typescript-eslint/array-type': 2, '@typescript-eslint/ban-types': 2, '@typescript-eslint/member-delimiter-style': 'error', // https://github.com/typescript-eslint/typescript-eslint/blob/v2.0.0/packages/eslint-plugin/docs/rules/consistent-type-assertions.md '@typescript-eslint/consistent-type-assertions': [2, { assertionStyle: 'as', objectLiteralTypeAssertions: 'never' }], '@typescript-eslint/no-empty-interface': 2, '@typescript-eslint/no-inferrable-types': 2, '@typescript-eslint/no-misused-new': 2, '@typescript-eslint/no-namespace': 2, '@typescript-eslint/no-non-null-assertion': 2, '@typescript-eslint/no-parameter-properties': 2, // https://github.com/typescript-eslint/typescript-eslint/blob/v2.0.0/packages/eslint-plugin/docs/rules/triple-slash-reference.md '@typescript-eslint/triple-slash-reference': [2, { path: 'never', types: 'never', lib: 'never' }], '@typescript-eslint/prefer-namespace-keyword': 2, '@typescript-eslint/type-annotation-spacing': 2 } };