Skip to content

Commit

Permalink
feat: ban omit type
Browse files Browse the repository at this point in the history
  • Loading branch information
christophehurpeau committed Jul 9, 2019
1 parent 495f602 commit 3a8946b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions @ornikar/eslint-config-typescript/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,15 @@ module.exports = {
// https://github.com/typescript-eslint/typescript-eslint/issues/201
// private is comming in js world and no-public will be the most common way to read a js file (and probably ts)
'@typescript-eslint/explicit-member-accessibility': ['error', { accessibility: 'no-public' }],

'@typescript-eslint/ban-types': [
'error',
{
types: {
Omit:
'Prefer `Except` from type-fest. https://github.com/sindresorhus/type-fest/blob/master/source/except.d.ts',
},
},
],
},
};

0 comments on commit 3a8946b

Please sign in to comment.