Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeNervoXS committed Apr 17, 2024
1 parent af4a238 commit d483599
Show file tree
Hide file tree
Showing 14 changed files with 432 additions and 596 deletions.
78 changes: 78 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
{
"$schema": "https://biomejs.dev/schemas/1.6.3/schema.json",
"linter": {
"enabled": true,
"rules": {
"suspicious": {
"noAssignInExpressions": "warn",
"noConfusingVoidType": "warn",
"noExplicitAny": "warn",
"noFallthroughSwitchClause": "warn",
"noImplicitAnyLet": "warn",
"noPrototypeBuiltins": "warn",
"recommended": true
},
"correctness": {
"recommended": true,
"noUnusedImports": "error",
"noUnusedVariables": "warn"
},
"style": {
"recommended": true,
"noUnusedTemplateLiteral": "warn",
"noNonNullAssertion": "off",
"useNodejsImportProtocol": "warn",
"noParameterAssign": "off",
"useLiteralEnumMembers": "off",
"useImportType": "off"
},
"complexity": {
"noStaticOnlyClass": "off",
"noBannedTypes": "warn",
"noExcessiveCognitiveComplexity": "off",
"noExtraBooleanCast": "off",
"noForEach": "off",
"noThisInStatic": "error",
"noUselessCatch": "warn",
"noUselessConstructor": "error",
"noUselessEmptyExport": "warn",
"noUselessFragments": "warn",
"noUselessLabel": "off",
"noUselessRename": "error",
"noUselessSwitchCase": "error",
"noUselessThisAlias": "off",
"noUselessTypeConstraint": "warn",
"noVoid": "error",
"useLiteralKeys": "warn"
}
}
},
"organizeImports": {
"enabled": true
},
"javascript": {
"formatter": {
"enabled": true,
"indentWidth": 2,
"indentStyle": "space",
"lineEnding": "lf",
"semicolons": "always",
"trailingComma": "es5",
"quoteStyle": "double",
"jsxQuoteStyle": "double",
"quoteProperties": "asNeeded",
"arrowParentheses": "asNeeded",
"lineWidth": 120,
"bracketSameLine": true,
"bracketSpacing": true
}
},
"formatter": {
"indentStyle": "space",
"enabled": true,
"formatWithErrors": true,
"indentWidth": 2,
"lineWidth": 120,
"lineEnding": "lf"
}
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"checks": "yarn check:pq && yarn check:tsc && yarn check:es"
},
"dependencies": {
"@biomejs/biome": "^1.6.3",
"@0x/utils": "^4.5.2",
"@bgd-labs/aave-address-book": "2.21.1",
"@ethersproject/abi": "^5.7.0",
Expand Down
Loading

0 comments on commit d483599

Please sign in to comment.