Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update #331

Merged
merged 31 commits into from
Sep 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
0c86d0b
chore: add and init biome
gabitoesmiapodo Sep 25, 2024
f11a964
chore: migrate eslint and prettier configs to biome
gabitoesmiapodo Sep 25, 2024
7da2066
fix: ignore files and folders
gabitoesmiapodo Sep 25, 2024
4210981
chore: remove eslint, its dependencies, and prettier
gabitoesmiapodo Sep 25, 2024
3f6fa0b
chore: remove eslint and prettier config files
gabitoesmiapodo Sep 25, 2024
e88c5ff
fix: linting / biomeing issues
gabitoesmiapodo Sep 25, 2024
0a60b87
chore: update linting npm scripts
gabitoesmiapodo Sep 25, 2024
5198480
chore: remove prettier and eslint from lint-staged
gabitoesmiapodo Sep 25, 2024
421db0d
chore: lint index.html
gabitoesmiapodo Sep 25, 2024
e9b47e8
chore: update and fix biome config
gabitoesmiapodo Sep 25, 2024
2a7a40f
chore: fixes according to new linting rules
gabitoesmiapodo Sep 25, 2024
43b4572
chore: remove reviewers from dependabot.yml
gabitoesmiapodo Sep 25, 2024
c43da33
chore: update lint-staged config
gabitoesmiapodo Sep 25, 2024
9612fc1
fix: address pull request feedback
gabitoesmiapodo Sep 26, 2024
a43e732
fix: pull request feedback
gabitoesmiapodo Sep 26, 2024
51523c0
fix(biome): simplify config file, no rules touched
fernandomg Sep 26, 2024
e85ffcc
fix: formatting
gabitoesmiapodo Sep 26, 2024
3c4aa89
Merge pull request #324 from BootNodeDev/biome
gabitoesmiapodo Sep 26, 2024
e2bab21
chore: bump wagmi from 2.12.13 to 2.12.14
dependabot[bot] Sep 26, 2024
c537be4
chore: bump vocs from 1.0.0-alpha.58 to 1.0.0-alpha.59
dependabot[bot] Sep 26, 2024
7950c6b
Merge pull request #325 from BootNodeDev/dependabot-npm_and_yarn-wagm…
gabitoesmiapodo Sep 26, 2024
65dbdd1
Merge branch 'develop' into dependabot-npm_and_yarn-vocs-1.0.0-alpha.59
gabitoesmiapodo Sep 26, 2024
55cc8f1
Merge pull request #326 from BootNodeDev/dependabot-npm_and_yarn-vocs…
gabitoesmiapodo Sep 26, 2024
554d068
chore: bump @tanstack/react-query-devtools from 5.56.2 to 5.58.0
dependabot[bot] Sep 26, 2024
d57c528
Merge pull request #327 from BootNodeDev/dependabot-npm_and_yarn-tans…
gabitoesmiapodo Sep 26, 2024
fb2c970
chore: bump viem from 2.21.14 to 2.21.15
dependabot[bot] Sep 26, 2024
44a4bf0
Merge pull request #328 from BootNodeDev/dependabot-npm_and_yarn-viem…
gabitoesmiapodo Sep 26, 2024
7b00b08
chore: bump vite from 5.4.7 to 5.4.8
dependabot[bot] Sep 26, 2024
7fa25b1
Merge pull request #329 from BootNodeDev/dependabot-npm_and_yarn-vite…
gabitoesmiapodo Sep 26, 2024
b0257a7
chore: version bumping
gabitoesmiapodo Sep 26, 2024
4006c80
Merge pull request #330 from BootNodeDev/develop
gabitoesmiapodo Sep 26, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
121 changes: 0 additions & 121 deletions .eslintrc.cjs

This file was deleted.

7 changes: 0 additions & 7 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,3 @@ updates:
labels:
- "dependencies"
- "pnpm"
reviewers:
- "fernandomg"
- "luchobonatti"
- "nicosampler"
- "paterson1"
- "tloffler"
- "gabitoesmiapodo"
7 changes: 1 addition & 6 deletions .lintstagedrc.mjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
export default {
'src/**/*.{ts,tsx}': [
'prettier --write --ignore-unknown',
'eslint --fix',
'stylelint --fix',
'vitest related --run --coverage=false',
],
'*': ['stylelint --fix', 'biome check --write', 'vitest related --run --coverage=false'],
}
19 changes: 0 additions & 19 deletions .prettierignore

This file was deleted.

7 changes: 0 additions & 7 deletions .prettierrc

This file was deleted.

180 changes: 180 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,180 @@
{
"$schema": "https://biomejs.dev/schemas/1.9.2/schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
},
"files": {
"ignore": [
"src/routeTree.gen.ts",
"src/subgraphs/queries/aave",
"src/subgraphs/queries/uniswap"
]
},
"formatter": {
"attributePosition": "multiline",
"indentStyle": "space",
"lineWidth": 100
},
"javascript": {
"formatter": {
"quoteStyle": "single",
"semicolons": "asNeeded"
}
},
"linter": {
"rules": {
"a11y": {
"noAccessKey": "error",
"noAriaUnsupportedElements": "error",
"noAutofocus": "error",
"noBlankTarget": "error",
"noDistractingElements": "error",
"noHeaderScope": "error",
"noInteractiveElementToNoninteractiveRole": "error",
"noLabelWithoutControl": "warn",
"noNoninteractiveElementToInteractiveRole": "error",
"noNoninteractiveTabindex": "error",
"noPositiveTabindex": "error",
"noRedundantAlt": "error",
"noRedundantRoles": "error",
"noSvgWithoutTitle": "off",
"useAltText": "error",
"useAnchorContent": "error",
"useAriaActivedescendantWithTabindex": "error",
"useAriaPropsForRole": "error",
"useFocusableInteractive": "error",
"useHeadingContent": "error",
"useHtmlLang": "error",
"useIframeTitle": "error",
"useKeyWithClickEvents": "error",
"useKeyWithMouseEvents": "error",
"useMediaCaption": "error",
"useValidAnchor": "error",
"useValidAriaProps": "error",
"useValidAriaRole": "error",
"useValidAriaValues": "error"
},
"complexity": {
"noExtraBooleanCast": "error",
"noMultipleSpacesInRegularExpressionLiterals": "error",
"noUselessCatch": "error",
"noUselessTypeConstraint": "error",
"noWith": "error"
},
"correctness": {
"noChildrenProp": "error",
"noConstAssign": "error",
"noConstantCondition": "error",
"noEmptyCharacterClassInRegex": "error",
"noEmptyPattern": "error",
"noGlobalObjectCalls": "error",
"noInnerDeclarations": "error",
"noInvalidConstructorSuper": "error",
"noInvalidUseBeforeDeclaration": "error",
"noNewSymbol": "error",
"noNonoctalDecimalEscape": "error",
"noPrecisionLoss": "error",
"noSelfAssign": "error",
"noSetterReturn": "error",
"noSwitchDeclarations": "error",
"noUndeclaredVariables": "error",
"noUnreachable": "error",
"noUnreachableSuper": "error",
"noUnsafeFinally": "error",
"noUnsafeOptionalChaining": "error",
"noUnusedLabels": "error",
"noUnusedVariables": "error",
"useArrayLiterals": "off",
"useExhaustiveDependencies": "error",
"useHookAtTopLevel": "error",
"useIsNan": "error",
"useJsxKeyInIterable": "error",
"useValidForDirection": "error",
"useYield": "error"
},
"security": {
"noDangerouslySetInnerHtmlWithChildren": "error"
},
"style": {
"noNamespace": "error",
"noRestrictedGlobals": {
"level": "error",
"options": {
"deniedGlobals": ["React"]
}
},
"useAsConstAssertion": "error",
"useBlockStatements": "off"
},
"suspicious": {
"noAsyncPromiseExecutor": "error",
"noCatchAssign": "error",
"noClassAssign": "error",
"noCommentText": "error",
"noCompareNegZero": "error",
"noControlCharactersInRegex": "error",
"noDebugger": "error",
"noDuplicateCase": "error",
"noDuplicateClassMembers": "error",
"noDuplicateJsxProps": "error",
"noDuplicateObjectKeys": "error",
"noDuplicateParameters": "error",
"noEmptyBlockStatements": "error",
"noExplicitAny": "warn",
"noExtraNonNullAssertion": "error",
"noFallthroughSwitchClause": "error",
"noFunctionAssign": "error",
"noGlobalAssign": "error",
"noImportAssign": "error",
"noMisleadingCharacterClass": "error",
"noMisleadingInstantiator": "error",
"noPrototypeBuiltins": "error",
"noRedeclare": "error",
"noShadowRestrictedNames": "error",
"noSparseArray": "error",
"noUnsafeDeclarationMerging": "error",
"noUnsafeNegation": "error",
"useGetterReturn": "error",
"useNamespaceKeyword": "error",
"useValidTypeof": "error"
}
}
},
"overrides": [
{
"include": ["*.ts", "*.tsx", "*.mts", "*.cts"],
"linter": {
"rules": {
"correctness": {
"noConstAssign": "off",
"noGlobalObjectCalls": "off",
"noInvalidBuiltinInstantiation": "off",
"noInvalidConstructorSuper": "off",
"noNewSymbol": "off",
"noSetterReturn": "off",
"noUndeclaredVariables": "off",
"noUnreachable": "off",
"noUnreachableSuper": "off"
},
"style": {
"noArguments": "error",
"noVar": "error",
"useConst": "error"
},
"suspicious": {
"noDuplicateClassMembers": "off",
"noDuplicateObjectKeys": "off",
"noDuplicateParameters": "off",
"noFunctionAssign": "off",
"noImportAssign": "off",
"noRedeclare": "off",
"noUnsafeNegation": "off",
"useGetterReturn": "off"
}
}
}
}
]
}
24 changes: 18 additions & 6 deletions docs/footer.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
import React from 'react'

export default function Footer() {
return (
<div>
<div>Released under the MIT License.</div>
<div style={{display: 'flex', alignItems: 'center', columnGap: '8px'}}>Copyright © 2024-present - <a href="https://www.bootnode.dev/" target="_blank"><img src="/img/footer/logo.svg" alt="BootNode" /></a></div>
return (
<div>
<div>Released under the MIT License.</div>
<div style={{ display: 'flex', alignItems: 'center', columnGap: '8px' }}>
Copyright © 2024-present -{' '}
<a
href="https://www.bootnode.dev/"
target="_blank"
rel="noreferrer"
>
<img
src="/img/footer/logo.svg"
alt="BootNode"
/>
</a>
</div>
)
}
</div>
)
}
Loading
Loading