Skip to content

Commit

Permalink
add eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
chaitanyapotti committed Apr 17, 2024
1 parent 24d2544 commit e23675d
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
29 changes: 29 additions & 0 deletions packages/hooks/modal-react-hooks/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"root": true,
"extends": ["@toruslabs/eslint-config-react"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 11,
"project": "./tsconfig.json"
},
"rules": {
"no-console": 2,
"@typescript-eslint/no-throw-literal": 0,
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
]
},
"env": {
"es2020": true,
"browser": true,
"node": true
}
}
2 changes: 1 addition & 1 deletion packages/hooks/modal-react-hooks/src/Web3AuthProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export function Web3AuthProvider(params: PropsWithChildren<Web3AuthProviderProps
if (adapters.length) adapters.map((adapter) => web3Instance.configureAdapter(adapter));
if (plugins.length) plugins.map((plugin) => web3Instance.addPlugin(plugin));
setWeb3Auth(web3Instance);
}, []);
}, [config]);

const props = { value: web3Auth };
return createElement(Web3AuthContext.Provider, props, children);
Expand Down

0 comments on commit e23675d

Please sign in to comment.