Skip to content

Commit b7fe5f1

Browse files
committed
chore: change eslint rules
1 parent 9ab4da5 commit b7fe5f1

File tree

12 files changed

+7
-403
lines changed

12 files changed

+7
-403
lines changed

.eslintignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
node_modules
22
src/weui-wxss
33
miniprogram_dist
4-
miniprogram_dev
4+
miniprogram_dev
5+
tools

.eslintrc.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ module.exports = {
3232
'prettier/prettier': 'error',
3333
'no-console': ["error", { allow: ["warn", "error"] } ],
3434
'@typescript-eslint/ban-ts-ignore': 'off',
35-
'@typescript-eslint/no-empty-function': 'off'
35+
'@typescript-eslint/no-empty-function': 'off',
36+
'@typescript-eslint/explicit-function-return-type': 'off',
37+
'@typescript-eslint/no-explicit-any': 'off'
3638
}
3739
}

src/form/form-validator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class FormValidator {
4040
let failCount = 0
4141
const errors = this.errors
4242
const models = this.models
43-
let errorChanged = false
43+
// let errorChanged = false
4444
Object.keys(this.rules).forEach((fieldName) => {
4545
const oldError = errors[fieldName]
4646
this._innerValidateField(fieldName, models[fieldName], (valid, newError) => {

src/half-screen-dialog/half-screen-dialog.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Component({
6767
const { index } = e.currentTarget.dataset
6868
this.triggerEvent('buttontap', { index, item: this.data.buttons[index] }, {})
6969
},
70-
onMaskMouseMove(e) {
70+
onMaskMouseMove() {
7171
// do nothing
7272
}
7373
}

tools/tslint-config-wxapp/README.md

Whitespace-only changes.

tools/tslint-config-wxapp/index.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

tools/tslint-config-wxapp/package.json

Lines changed: 0 additions & 47 deletions
This file was deleted.

tools/tslint-config-wxapp/references.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

tools/tslint-config-wxapp/tsconfig.json

Lines changed: 0 additions & 72 deletions
This file was deleted.

tools/tslint-config-wxapp/tslint.json

Lines changed: 0 additions & 131 deletions
This file was deleted.

0 commit comments

Comments
 (0)