Skip to content

Commit

Permalink
chore: add explicit-member-accessibility (typescript-eslint/typescrip…
Browse files Browse the repository at this point in the history
  • Loading branch information
jinasonlin committed Apr 8, 2019
1 parent d23b07e commit b4f7372
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions rules/typescript.js
Expand Up @@ -33,16 +33,18 @@ module.exports = {
],
'@typescript-eslint/no-useless-constructor': 'error',


'@typescript-eslint/adjacent-overload-signatures': 'error',
'@typescript-eslint/array-type': 'off',
'@typescript-eslint/ban-ts-ignore': 'off',
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/class-name-casing': 'error',
'@typescript-eslint/explicit-function-return-type': 'off',
// 规则如提供 noPublic 时, 原则上需要启用
// https://github.com/typescript-eslint/typescript-eslint/issues/214
'@typescript-eslint/explicit-member-accessibility': 'off',
'@typescript-eslint/explicit-member-accessibility': [
'error',
{
accessibility: 'no-public',
},
],
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/member-delimiter-style': 'error',
'@typescript-eslint/member-naming': 'off',
Expand Down

0 comments on commit b4f7372

Please sign in to comment.