Skip to content

Commit

Permalink
Compatible with wechaty code (wechaty/wechaty#1793)
Browse files Browse the repository at this point in the history
  • Loading branch information
huan committed Jun 12, 2019
1 parent a96679d commit 3031f42
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/eslint-rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,14 @@ const ESLINT_RULES = {
'key-spacing': 'off',
'no-console': ['error', { allow: ['info', 'warn', 'error'] }],
'no-multi-spaces': 'off',
// note you must disable the base rule as it can report incorrect errors
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': 'error',
'no-useless-constructor': 'off',
'@typescript-eslint/no-useless-constructor': 'off',
'no-dupe-class-members': 'off',
'operator-linebreak': ['error', 'before'],
'padded-blocks': ['error', { 'classes': 'always' }],

}

module.exports = {
Expand Down

0 comments on commit 3031f42

Please sign in to comment.