feat(eslint-config): enable no-unused-vars (#6691)

This commit is contained in:
neverland 2020-07-03 15:27:28 +08:00 committed by GitHub
parent 44140fe7f8
commit de8985b4f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -58,6 +58,7 @@ module.exports = {
// typescript-eslint // typescript-eslint
'@typescript-eslint/camelcase': 'off', '@typescript-eslint/camelcase': 'off',
'@typescript-eslint/ban-ts-ignore': 'off', '@typescript-eslint/ban-ts-ignore': 'off',
'@typescript-eslint/no-unused-vars': 'error',
'@typescript-eslint/no-var-requires': 'off', '@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/no-explicit-any': 'off', '@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-empty-function': 'off', '@typescript-eslint/no-empty-function': 'off',

View File

@ -3,9 +3,9 @@
.van-tab { .van-tab {
position: relative; position: relative;
display: flex; display: flex;
flex: 1;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
flex: 1;
box-sizing: border-box; box-sizing: border-box;
padding: 0 @padding-base; padding: 0 @padding-base;
color: @tab-text-color; color: @tab-text-color;
@ -25,9 +25,9 @@
&__text { &__text {
&--ellipsis { &--ellipsis {
display: -webkit-box; display: -webkit-box;
overflow: hidden;
-webkit-line-clamp: 1; -webkit-line-clamp: 1;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
overflow: hidden;
} }
} }