Skip to content

Commit 91d6927

Browse files
chore: fix
1 parent 84aa782 commit 91d6927

File tree

7 files changed

+250
-176
lines changed

7 files changed

+250
-176
lines changed

.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules
2+
dist
3+
build

.eslintrc.js

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
module.exports = {
2+
root: true,
3+
parser: '@typescript-eslint/parser',
4+
plugins: [
5+
'@typescript-eslint',
6+
'react',
7+
'react-hooks'
8+
],
9+
extends: [
10+
'eslint:recommended',
11+
'plugin:@typescript-eslint/recommended',
12+
'plugin:react/recommended',
13+
'plugin:react-hooks/recommended'
14+
],
15+
env: {
16+
browser: true,
17+
es2021: true,
18+
node: true
19+
},
20+
settings: {
21+
react: {
22+
version: 'detect'
23+
}
24+
},
25+
rules: {
26+
'no-unused-vars': 'off',
27+
'@typescript-eslint/no-unused-vars': ['error'],
28+
'react/react-in-jsx-scope': 'off',
29+
'@typescript-eslint/explicit-module-boundary-types': 'off'
30+
}
31+
}

.vscode/settings.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"editor.codeActionsOnSave": {
3+
"source.fixAll.eslint": "explicit"
4+
},
5+
"eslint.validate": [
6+
"javascript",
7+
"javascriptreact",
8+
"typescript",
9+
"typescriptreact"
10+
]
11+
}

examples/buddybook/src/components/Chain/Create/CreationPreview.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ interface FormData {
1919
uuid: string;
2020
}
2121

22-
23-
2422
const DEFAULT_FORM_DATA: FormData = {
2523
title: 'Devcon24 DeFi Dynamo',
2624
description: 'A revolutionary blockchain for Devcon 24, focusing on scalable DeFi solutions and cross-chain interoperability.',
@@ -185,7 +183,7 @@ const ChainCreationForm: React.FC = () => {
185183
<>
186184
{signedMessage && (
187185
<QRCode
188-
data={{
186+
text={JSON.stringify({
189187
chainUUID: formData.uuid,
190188
blockUUID: uuidv4(),
191189
title: formData.title,
@@ -194,7 +192,7 @@ const ChainCreationForm: React.FC = () => {
194192
timestamp: Date.now(),
195193
signatures: [{address: address!, signature: signedMessage}],
196194
parentBlockUUID: null
197-
}}
195+
})}
198196
/>
199197
)}
200198
</>

examples/experimental/relay-direct-rtc/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {
2-
createRelayNode,
2+
createNode as createRelayNode,
33
bytesToUtf8,
44
utf8ToBytes,
55
createDecoder,

0 commit comments

Comments
 (0)