Commit 43443b64 authored by yann300's avatar yann300

add standard reporter

parent 2ef943bd
build build
node_modules node_modules
npm-debug.log npm-debug.log
lint.xml
...@@ -21,12 +21,13 @@ ...@@ -21,12 +21,13 @@
"devDependencies": { "devDependencies": {
"babel-preset-react": "^6.5.0", "babel-preset-react": "^6.5.0",
"babelify": "^7.2.0", "babelify": "^7.2.0",
"standard": "^7.0.1" "standard": "^7.0.1",
"standard-reporter": "^0.0.9"
}, },
"scripts": { "scripts": {
"start_node": "eth --rpccorsdomain \"*\" -j -v 0", "start_node": "eth --rpccorsdomain \"*\" -j -v 0",
"build": "mkdir -p build; browserify -t [ babelify --presets [ react ] ] src/index.js -o build/app.js", "build": "mkdir -p build; browserify -t [ babelify --presets [ react ] ] src/index.js -o build/app.js",
"test" : "standard" "test" : "standard 2>&1 | standard-reporter > lint.xml"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
...@@ -39,7 +40,6 @@ ...@@ -39,7 +40,6 @@
}, },
"homepage": "https://github.com/ethereum/remix#readme", "homepage": "https://github.com/ethereum/remix#readme",
"standard": { "standard": {
"global": ["web3"],
"ignore": [ "ignore": [
"node_modules/*", "node_modules/*",
"build/*" "build/*"
......
...@@ -13,7 +13,7 @@ const codes = { ...@@ -13,7 +13,7 @@ const codes = {
0x08: ['ADDMOD', 8, 3, 1, false], 0x08: ['ADDMOD', 8, 3, 1, false],
0x09: ['MULMOD', 8, 3, 1, false], 0x09: ['MULMOD', 8, 3, 1, false],
0x0a: ['EXP', 10, 2, 1, false], 0x0a: ['EXP', 10, 2, 1, false],
0x0b: ['SIGNEXTEND', 5, 1, 1, false], 0x0b: ['SIGNEXTEND', 5, 1, 1, false]
// 0x10 range - bit ops // 0x10 range - bit ops
0x10: ['LT', 3, 2, 1, false], 0x10: ['LT', 3, 2, 1, false],
......
...@@ -21,7 +21,7 @@ module.exports = React.createClass({ ...@@ -21,7 +21,7 @@ module.exports = React.createClass({
this.setState({from: tx.from, to: tx.to, hash: tx.hash}) this.setState({from: tx.from, to: tx.to, hash: tx.hash})
} }
this.props.onNewTxRequested(this.state.blockNumber, parseInt(this.state.txNumber)) this.props.onNewTxRequested(this.state.blockNumber, parseInt(this.state.txNumber))
}, }
updateBlockN: function (ev) { updateBlockN: function (ev) {
this.state.blockNumber = ev.target.value this.state.blockNumber = ev.target.value
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment