Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 43c3c8f

Browse files
authored
Merge pull request #88 from EOSIO/linting
Linting
2 parents c0d8f99 + 5fc3307 commit 43c3c8f

File tree

19 files changed

+578
-1055
lines changed

19 files changed

+578
-1055
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
22
"extends": "@blockone/blockone"
3-
}
3+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
22
"extends": "@blockone/blockone"
3-
}
3+
}

examples/package.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,20 @@
1313
"license": "MIT",
1414
"scripts": {
1515
"build": "rm -rf build && webpack --config webpack.config.react.js",
16-
"lint": "eslint ../src/**/*.js",
17-
"example": "webpack-dev-server --config webpack.config.react.js"
16+
"example": "webpack-dev-server --config webpack.config.react.js",
17+
"lint": "eslint --ext .js,.jsx,.ts,.tsx src"
1818
},
1919
"devDependencies": {
2020
"@babel/core": "^7.8.7",
2121
"@babel/node": "^7.8.7",
2222
"@babel/preset-env": "^7.8.7",
2323
"@babel/preset-react": "^7.8.3",
24-
"@blockone/eslint-config-blockone": "^0.0.5",
25-
"@types/react": "15.0.4",
24+
"@blockone/eslint-config-blockone": "^3.0.0",
25+
"@types/react": "^15.0.4",
2626
"awesome-typescript-loader": "^5.2.1",
2727
"babel-loader": "^8.0.4",
2828
"babel-polyfill": "^6.26.0",
2929
"dotenv": "^8.2.0",
30-
"eslint": "^5.10.0",
31-
"eslint-plugin-no-exclusive-tests": "^1.0.0-rc.1",
3230
"html-webpack-plugin": "^3.2.0",
3331
"typescript": "^3.8.3",
3432
"webpack": "^4.29.6",

examples/src/ButtonWebViewReact.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ interface TransactionState {
4242
rpc: JsonRpc
4343
}
4444

45-
declare var EXAMPLE_ENV: ExampleEnv
45+
declare const EXAMPLE_ENV: ExampleEnv
4646

4747
const exampleNet = {
4848
chainId: EXAMPLE_ENV.CHAIN_ID,
@@ -109,7 +109,7 @@ class TransactionApp extends React.Component<TransactionProps, TransactionState>
109109
demoTransaction.actions[0].data.from = accountName
110110
try {
111111
await activeUser.signTransaction(demoTransaction, { broadcast: true })
112-
this.updateAccountBalance()
112+
await this.updateAccountBalance()
113113
} catch (error) {
114114
console.warn(error)
115115
}

examples/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
},
1919
"lib": ["esnext"],
2020
"include": [
21-
"src/**/*.ts",
21+
"src/**/*.tsx",
2222
"examples/**/*"
2323
],
2424
"exclude": [
25-
"src/**/*.test.ts",
25+
"src/**/*.test.tsx",
2626
"public",
2727
"node_modules"
2828
]

examples/tslint.json

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

0 commit comments

Comments
 (0)