Skip to content

Commit

Permalink
chore: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
danisharora099 committed Oct 28, 2024
1 parent 84aa782 commit 91d6927
Show file tree
Hide file tree
Showing 7 changed files with 250 additions and 176 deletions.
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
dist
build
31 changes: 31 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: [
'@typescript-eslint',
'react',
'react-hooks'
],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react/recommended',
'plugin:react-hooks/recommended'
],
env: {
browser: true,
es2021: true,
node: true
},
settings: {
react: {
version: 'detect'
}
},
rules: {
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': ['error'],
'react/react-in-jsx-scope': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off'
}
}
11 changes: 11 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ interface FormData {
uuid: string;
}



const DEFAULT_FORM_DATA: FormData = {
title: 'Devcon24 DeFi Dynamo',
description: 'A revolutionary blockchain for Devcon 24, focusing on scalable DeFi solutions and cross-chain interoperability.',
Expand Down Expand Up @@ -185,7 +183,7 @@ const ChainCreationForm: React.FC = () => {
<>
{signedMessage && (
<QRCode
data={{
text={JSON.stringify({
chainUUID: formData.uuid,
blockUUID: uuidv4(),
title: formData.title,
Expand All @@ -194,7 +192,7 @@ const ChainCreationForm: React.FC = () => {
timestamp: Date.now(),
signatures: [{address: address!, signature: signedMessage}],
parentBlockUUID: null
}}
})}
/>
)}
</>
Expand Down
2 changes: 1 addition & 1 deletion examples/experimental/relay-direct-rtc/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {
createRelayNode,
createNode as createRelayNode,
bytesToUtf8,
utf8ToBytes,
createDecoder,
Expand Down
Loading

0 comments on commit 91d6927

Please sign in to comment.