Skip to content

Commit

Permalink
调整 eslint 配置
Browse files Browse the repository at this point in the history
  • Loading branch information
purocean committed Oct 27, 2020
1 parent 286f849 commit c5e1269
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion frontend/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module.exports = {
'@typescript-eslint/camelcase': 'off',
'@typescript-eslint/no-namespace': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-console': 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'comma-dangle': 'off',
},
Expand Down
2 changes: 0 additions & 2 deletions frontend/src/components/TreeNode.vue
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,6 @@ export default defineComponent({
select: true
})
console.log('filename', filename)
if (!filename) {
return
}
Expand Down
7 changes: 4 additions & 3 deletions frontend/src/useful/bus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ import mitt, { Emitter, EventType, Handler, WildcardHandler } from 'mitt'

const emitter = mitt()

emitter.on('*', (type, payload) => {
console.log('debug bus >', type, payload)
})
// debug
// emitter.on('*', (type, payload) => {
// console.log('debug bus >', type, payload)
// })

interface XEmitter extends Emitter {
once<T = any>(type: EventType, handler: Handler<T>): void;
Expand Down

0 comments on commit c5e1269

Please sign in to comment.