Skip to content

Commit f077a2b

Browse files
authored
chore: Configured Biome import organization assist (#1751)
The entry point of the package is ignored in the configuration since Biome makes it a mess.
1 parent 4bf4b38 commit f077a2b

File tree

140 files changed

+231
-228
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

140 files changed

+231
-228
lines changed

biome.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,14 @@
77
"clientKind": "git",
88
"useIgnoreFile": true
99
},
10-
"assist": { "actions": { "source": { "organizeImports": "on" } } },
10+
"assist": {
11+
"includes": ["src/**/*.ts", "/stories/**/*.ts", "!src/index.ts"],
12+
"actions": {
13+
"source": {
14+
"organizeImports": "on"
15+
}
16+
}
17+
},
1118
"formatter": {
1219
"enabled": false
1320
},
@@ -24,7 +31,10 @@
2431
"noUnusedFunctionParameters": "error",
2532
"noUnusedImports": "error",
2633
"noUnusedPrivateClassMembers": "error",
27-
"useImportExtensions": "error"
34+
"useImportExtensions": {
35+
"level": "error",
36+
"options": { "forceJsExtensions": true }
37+
}
2838
},
2939
"style": {
3040
"noNamespace": "error",

src/animations/player.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
html,
66
unsafeStatic,
77
} from '@open-wc/testing';
8-
import { LitElement, css } from 'lit';
8+
import { css, LitElement } from 'lit';
99

1010
import { EaseOut } from './easings.js';
1111
import { addAnimationController } from './player.js';

src/components/accordion/accordion.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { LitElement, html } from 'lit';
1+
import { html, LitElement } from 'lit';
22
import { property, queryAssignedElements } from 'lit/decorators.js';
33

44
import {

src/components/avatar/avatar.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { LitElement, html, nothing } from 'lit';
1+
import { html, LitElement, nothing } from 'lit';
22
import { property, state } from 'lit/decorators.js';
33
import { ifDefined } from 'lit/directives/if-defined.js';
44

src/components/badge/badge.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { LitElement, html } from 'lit';
1+
import { html, LitElement } from 'lit';
22
import { property } from 'lit/decorators.js';
33

44
import { themes } from '../../theming/theming-decorator.js';

src/components/banner/banner.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { LitElement, html } from 'lit';
1+
import { html, LitElement } from 'lit';
22
import { property } from 'lit/decorators.js';
3-
import { type Ref, createRef, ref } from 'lit/directives/ref.js';
3+
import { createRef, type Ref, ref } from 'lit/directives/ref.js';
44

55
import { addAnimationController } from '../../animations/player.js';
66
import { growVerIn, growVerOut } from '../../animations/presets/grow/index.js';

src/components/button-group/button-group.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import {
88
import { spy } from 'sinon';
99

1010
import {
11+
defineComponents,
1112
IgcButtonGroupComponent,
1213
IgcToggleButtonComponent,
13-
defineComponents,
1414
} from '../../index.js';
1515

1616
describe('Button Group', () => {

src/components/button-group/button-group.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import { LitElement, html } from 'lit';
1+
import { html, LitElement } from 'lit';
22
import { property, queryAssignedElements } from 'lit/decorators.js';
33

44
import { themes } from '../../theming/theming-decorator.js';
55
import {
6-
type MutationControllerParams,
76
createMutationController,
7+
type MutationControllerParams,
88
} from '../common/controllers/mutation-observer.js';
99
import { watch } from '../common/decorators/watch.js';
1010
import { registerComponent } from '../common/definitions/register.js';

src/components/button-group/toggle-button.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
unsafeStatic,
77
} from '@open-wc/testing';
88

9-
import { IgcToggleButtonComponent, defineComponents } from '../../index.js';
9+
import { defineComponents, IgcToggleButtonComponent } from '../../index.js';
1010

1111
describe('Toggle Button', () => {
1212
before(() => {

src/components/button-group/toggle-button.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { LitElement, html } from 'lit';
1+
import { html, LitElement } from 'lit';
22
import { property, query } from 'lit/decorators.js';
33

44
import { themes } from '../../theming/theming-decorator.js';

0 commit comments

Comments
 (0)