Skip to content
Merged
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
33 changes: 33 additions & 0 deletions .trunk/trunk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,39 @@ lint:
parse_regex: ${semver}
run: yamlfmt -version
known_good_version: 0.16.0
- name: biome
files:
- astro
- css
- graphql
- html
- javascript
- json
- sass
- typescript
commands:
- output: regex
success_codes:
- 0
- 1
batch: true
cache_results: true
name: lint
parse_regex: " *(?P<path>.*?):(?P<line>\\d+):(?P<col>\\d+) (?P<code>[^ ]+)(?:[^×]*\\n).*× (?P<message>.*)\\n"
read_output_from: stderr
run: biome check ${target}
run_from: ${parent}
- output: rewrite
success_codes:
- 0
- 1
batch: true
cache_results: true
formatter: true
in_place: true
name: fmt
run: biome check --fix "${target}"
run_from: ${parent}
enabled:
- actionlint@1.7.7
- biome@2.0.0! # datasource=npm depName=@biomejs/biome
Expand Down
91 changes: 52 additions & 39 deletions biome.jsonc
Original file line number Diff line number Diff line change
@@ -1,32 +1,15 @@
{
"$schema": "https://biomejs.dev/schemas/2.0.0/schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
},
"files": {
"includes": ["**", "!**/.trunk/**", "!**/build/**", "!**/dist/**", "!**/package.json"]
},
"formatter": {
"attributePosition": "auto",
"bracketSpacing": true,
"enabled": true,
"formatWithErrors": false,
"indentStyle": "space",
"indentWidth": 2,
"lineEnding": "lf",
"lineWidth": 120,
"useEditorconfig": true
},
"assist": {
"actions": {
"source": {
"organizeImports": {
"level": "on",
"options": {
"groups": [
{ "type": false },
{
"type": false
},
":NODE:",
":BLANK_LINE:",
"@freelensapp/**",
Expand All @@ -40,27 +23,63 @@
}
}
},
"files": {
"includes": ["**", "!**/.trunk/**", "!**/build/**", "!**/dist/**", "!**/package.json"]
},
"formatter": {
"attributePosition": "auto",
"bracketSpacing": true,
"enabled": true,
"formatWithErrors": false,
"indentStyle": "space",
"indentWidth": 2,
"lineEnding": "lf",
"lineWidth": 120,
"useEditorconfig": true
},
"html": {
"formatter": {
"enabled": true
}
},
"javascript": {
"formatter": {
"arrowParentheses": "always",
"attributePosition": "auto",
"bracketSameLine": false,
"bracketSpacing": true,
"jsxQuoteStyle": "double",
"quoteProperties": "asNeeded",
"quoteStyle": "double",
"semicolons": "always",
"trailingCommas": "all"
}
},
"linter": {
"enabled": true,
"rules": {
"a11y": {
"noRedundantRoles": "off"
},
"complexity": {
"noBannedTypes": "off", // should be error later
// should be error later
"noBannedTypes": "off",
"noUselessConstructor": "off",
"noUselessThisAlias": "error",
"noUselessTypeConstraint": "error"
},
"correctness": {
"noInvalidUseBeforeDeclaration": "error",
"noUnusedVariables": "off", // should be error later
// should be error later
"noUnusedVariables": "off",
"useExhaustiveDependencies": "off"
},
"recommended": false,
"style": {
"noNamespace": "error",
"noParameterAssign": "off", // should be error later
// should be error later
"noParameterAssign": "off",
"useArrayLiterals": "off",
"useAsConstAssertion": "error",
"useBlockStatements": "off",
"useNamingConvention": {
Expand All @@ -69,30 +88,24 @@
"strictCase": false
}
},
"useTemplate": "off", // should be error later
"useArrayLiterals": "off"
// should be error later
"useTemplate": "off"
},
"suspicious": {
"noEmptyInterface": "off",
"noExplicitAny": "off", // should be error later
// should be error later
"noExplicitAny": "off",
"noExtraNonNullAssertion": "error",
"noMisleadingInstantiator": "error",
"noUnsafeDeclarationMerging": "off", // should be error later
// should be error later
"noUnsafeDeclarationMerging": "off",
"useNamespaceKeyword": "error"
}
}
},
"javascript": {
"formatter": {
"arrowParentheses": "always",
"attributePosition": "auto",
"bracketSameLine": false,
"bracketSpacing": true,
"jsxQuoteStyle": "double",
"quoteProperties": "asNeeded",
"quoteStyle": "double",
"semicolons": "always",
"trailingCommas": "all"
}
"vcs": {
"clientKind": "git",
"enabled": true,
"useIgnoreFile": true
}
}
42 changes: 38 additions & 4 deletions freelens/static/splash.html

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions packages/core/src/renderer/components/events/events.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ enum columnId {
lastSeen = "last-seen",
}

export interface EventsProps
extends Partial<KubeObjectListLayoutProps<KubeEvent, KubeEventApi, KubeEventData>> {
export interface EventsProps extends Partial<KubeObjectListLayoutProps<KubeEvent, KubeEventApi, KubeEventData>> {
className?: IClassName;
compact?: boolean;
compactLimit?: number;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ import type { SearchInputUrlProps } from "../input";
import type { TableProps, TableRowProps, TableSortCallbacks } from "../table";
import type { PageFiltersStore } from "./page-filters/store";

export type ListLayoutSearchFilter<I extends ItemObject> = (item: I) => SingleOrMany<string | number | undefined | null>;
export type ListLayoutSearchFilter<I extends ItemObject> = (
item: I,
) => SingleOrMany<string | number | undefined | null>;
export type ListLayoutSearchFilters<I extends ItemObject> = Record<string, ListLayoutSearchFilter<I>>;
export type ListLayoutItemsFilter<I extends ItemObject> = (items: I[]) => I[];
export type ListLayoutItemsFilters<I extends ItemObject> = Record<string, ListLayoutItemsFilter<I>>;
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/renderer/template.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta charset="UTF-8" >
</head>
<body>
<div id="app"></div>
Expand Down
Loading
Loading