Skip to content

Commit

Permalink
feat(neuron-ui): remove eslint rule of no-bitwise
Browse files Browse the repository at this point in the history
  • Loading branch information
Keith-CY committed Oct 11, 2019
1 parent 7599cb7 commit c5c5101
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion packages/neuron-ui/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ module.exports = {
"no-alert": [0],
"no-console": [2, {
"allow": ["info", "warn", "error", "group", "groupEnd"]
}]
}],
"no-bitwise": [0]
},
"env": {
"jest": true,
Expand Down
2 changes: 0 additions & 2 deletions packages/neuron-ui/src/utils/parsers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,10 @@ export const prompt = (search: string) => {
}
export const queryParsers = { history, prompt }

/* eslint-disable no-bitwise */
export const epochParser = (epoch: string) => {
return {
index: +epoch & 0xffff,
}
}
/* eslint-enable no-bitwise */

export default { queryParsers, epochParser }

0 comments on commit c5c5101

Please sign in to comment.