Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
32 changes: 21 additions & 11 deletions academy/lending-protocol/biome.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,25 @@
{
"$schema": "https://biomejs.dev/schemas/1.7.3/schema.json",
"organizeImports": {
"enabled": true
},
"root": false,
"$schema": "https://biomejs.dev/schemas/2.0.6/schema.json",
"assist": { "actions": { "source": { "organizeImports": "on" } } },
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"style": {
"useTemplate": {
"level": "off"
}
},
"noParameterAssign": "error",
"useAsConstAssertion": "error",
"useDefaultParameterLast": "error",
"useEnumInitializers": "error",
"useSelfClosingElements": "error",
"useSingleVarDeclarator": "error",
"noUnusedTemplateLiteral": "error",
"useNumberNamespace": "error",
"noInferrableTypes": "error",
"noUselessElse": "error"
}
}
},
Expand All @@ -22,12 +31,13 @@
"lineWidth": 80
},
"files": {
"ignore": [
"node_modules",
"artifacts",
"cache",
"typechain-types",
"ignition/deployments"
"includes": [
"**",
"!**/node_modules",
"!**/artifacts",
"!**/cache",
"!**/typechain-types",
"!**/ignition/deployments"
]
}
}
32 changes: 21 additions & 11 deletions academy/token-split/biome.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,25 @@
{
"$schema": "https://biomejs.dev/schemas/1.7.3/schema.json",
"organizeImports": {
"enabled": true
},
"root": false,
"$schema": "https://biomejs.dev/schemas/2.0.6/schema.json",
"assist": { "actions": { "source": { "organizeImports": "on" } } },
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"style": {
"useTemplate": {
"level": "off"
}
},
"noParameterAssign": "error",
"useAsConstAssertion": "error",
"useDefaultParameterLast": "error",
"useEnumInitializers": "error",
"useSelfClosingElements": "error",
"useSingleVarDeclarator": "error",
"noUnusedTemplateLiteral": "error",
"useNumberNamespace": "error",
"noInferrableTypes": "error",
"noUselessElse": "error"
}
}
},
Expand All @@ -22,12 +31,13 @@
"lineWidth": 80
},
"files": {
"ignore": [
"node_modules",
"artifacts",
"cache",
"typechain-types",
"ignition/deployments"
"includes": [
"**",
"!**/node_modules",
"!**/artifacts",
"!**/cache",
"!**/typechain-types",
"!**/ignition/deployments"
]
}
}
21 changes: 14 additions & 7 deletions biome.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"organizeImports": {
"enabled": true
},
"$schema": "https://biomejs.dev/schemas/2.0.6/schema.json",
"assist": { "actions": { "source": { "organizeImports": "on" } } },
"linter": {
"enabled": true,
"rules": {
Expand All @@ -12,7 +10,17 @@
},
"style": {
"noDefaultExport": "warn",
"noNonNullAssertion": "warn"
"noNonNullAssertion": "warn",
"noParameterAssign": "error",
"useAsConstAssertion": "error",
"useDefaultParameterLast": "error",
"useEnumInitializers": "error",
"useSelfClosingElements": "error",
"useSingleVarDeclarator": "error",
"noUnusedTemplateLiteral": "error",
"useNumberNamespace": "error",
"noInferrableTypes": "error",
"noUselessElse": "error"
}
}
},
Expand All @@ -24,8 +32,7 @@
"lineWidth": 100
},
"files": {
"ignore": ["node_modules", "dist", "test/coverage"],
"include": [
"includes": [
"niljs",
"hardhat-plugin",
"create-nil-hardhat-project",
Expand Down
19 changes: 15 additions & 4 deletions clijs/biome.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"root": false,
"$schema": "https://biomejs.dev/schemas/2.0.6/schema.json",
"extends": ["../biome.json"],
"files": {
"include": ["src/**", "test/**"]
"includes": ["**/src/**", "**/test/**"]
},
"linter": {
"rules": {
Expand All @@ -13,14 +14,24 @@
"options": {
"strictCase": false,
"requireAscii": true,
"enumMemberCase": "PascalCase",
"conventions": [
{ "selector": { "kind": "enumMember" }, "formats": ["PascalCase"] },
{
"formats": ["camelCase", "PascalCase", "CONSTANT_CASE"]
}
]
}
}
},
"noParameterAssign": "error",
"useAsConstAssertion": "error",
"useDefaultParameterLast": "error",
"useEnumInitializers": "error",
"useSelfClosingElements": "error",
"useSingleVarDeclarator": "error",
"noUnusedTemplateLiteral": "error",
"useNumberNamespace": "error",
"noInferrableTypes": "error",
"noUselessElse": "error"
}
}
}
Expand Down
21 changes: 19 additions & 2 deletions docs/biome.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,24 @@
{
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"root": false,
"$schema": "https://biomejs.dev/schemas/2.0.6/schema.json",
"extends": ["../biome.json"],
"files": {
"include": ["tests/**"]
"includes": ["**/tests/**"]
},
"linter": {
"rules": {
"style": {
"noParameterAssign": "error",
"useAsConstAssertion": "error",
"useDefaultParameterLast": "error",
"useEnumInitializers": "error",
"useSelfClosingElements": "error",
"useSingleVarDeclarator": "error",
"noUnusedTemplateLiteral": "error",
"useNumberNamespace": "error",
"noInferrableTypes": "error",
"noUselessElse": "error"
}
}
}
}
21 changes: 16 additions & 5 deletions explorer_backend/biome.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,28 @@
{
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"root": false,
"$schema": "https://biomejs.dev/schemas/2.0.6/schema.json",
"extends": ["../biome.json"],
"organizeImports": {
"enabled": false
},
"assist": { "actions": { "source": { "organizeImports": "off" } } },
"linter": {
"rules": {
"complexity": {
"noBannedTypes": "off"
},
"style": {
"noParameterAssign": "error",
"useAsConstAssertion": "error",
"useDefaultParameterLast": "error",
"useEnumInitializers": "error",
"useSelfClosingElements": "error",
"useSingleVarDeclarator": "error",
"noUnusedTemplateLiteral": "error",
"useNumberNamespace": "error",
"noInferrableTypes": "error",
"noUselessElse": "error"
}
}
},
"files": {
"include": ["**/*.ts"]
"includes": ["**/*.ts"]
}
}
68 changes: 41 additions & 27 deletions explorer_frontend/biome.json
Original file line number Diff line number Diff line change
@@ -1,29 +1,43 @@
{
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"extends": ["../biome.json"],
"organizeImports": {
"enabled": true
},
"linter": {
"rules": {
"style": {
"noNonNullAssertion": "off"
},
"suspicious": {
"noExplicitAny": "off"
},
"complexity": {
"noForEach": "warn"
},
"a11y": {
"useKeyWithClickEvents": "off"
},
"correctness": {
"useExhaustiveDependencies": "warn"
}
}
},
"files": {
"include": ["src/**/*.ts", "src/**/*.tsx", "tests/**/*.ts", "tests/**/*.tsx"]
}
"root": false,
"$schema": "https://biomejs.dev/schemas/2.0.6/schema.json",
"extends": ["../biome.json"],
"assist": { "actions": { "source": { "organizeImports": "on" } } },
"linter": {
"rules": {
"style": {
"noNonNullAssertion": "off",
"noParameterAssign": "error",
"useAsConstAssertion": "error",
"useDefaultParameterLast": "error",
"useEnumInitializers": "error",
"useSelfClosingElements": "error",
"useSingleVarDeclarator": "error",
"noUnusedTemplateLiteral": "error",
"useNumberNamespace": "error",
"noInferrableTypes": "error",
"noUselessElse": "error"
},
"suspicious": {
"noExplicitAny": "off"
},
"complexity": {
"noForEach": "warn"
},
"a11y": {
"useKeyWithClickEvents": "off"
},
"correctness": {
"useExhaustiveDependencies": "warn"
}
}
},
"files": {
"includes": [
"**/src/**/*.ts",
"**/src/**/*.tsx",
"**/tests/**/*.ts",
"**/tests/**/*.tsx"
]
}
}
2 changes: 1 addition & 1 deletion explorer_frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"scripts": {
"dev": "vite",
"test": "echo \"Error: no test specified\" && exit 1",
"lint": "biome check src --diagnostic-level=error",
"lint": "biome check --diagnostic-level=error",
"lint:fix": "biome check --write src",
"build": "vite build",
"analyze-bundle": "npx vite-bundle-visualizer --port 5000 --open",
Expand Down
5 changes: 3 additions & 2 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading