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 3cf0c47
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions @ornikar/eslint-config-typescript/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,14 @@ 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 `OmitStrict`.',
},
},
],
},
};

0 comments on commit 3cf0c47

Please sign in to comment.