mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-11 20:08:56 +00:00
update eslint sorting
This commit is contained in:
@@ -223,7 +223,7 @@ module.exports = {
|
||||
'import/order': [
|
||||
'warn',
|
||||
{
|
||||
groups: ['builtin', 'external', ['parent', 'internal', 'index'], 'sibling'],
|
||||
groups: ['builtin', 'external', 'internal', 'unknown', 'parent', 'sibling', 'index', 'object', 'type'],
|
||||
pathGroups: [
|
||||
{
|
||||
pattern: '~/**',
|
||||
|
||||
5
.vscode/settings.json
vendored
5
.vscode/settings.json
vendored
@@ -1,4 +1,7 @@
|
||||
{
|
||||
"editor.formatOnSave": true,
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
||||
"editor.codeActionsOnSave": {
|
||||
"source.fixAll.eslint": true
|
||||
}
|
||||
}
|
||||
|
||||
@@ -156,7 +156,6 @@ export default class SlAnimation extends LitElement {
|
||||
}
|
||||
|
||||
async createAnimation() {
|
||||
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -- The specified easing may not exist
|
||||
const easing = animations.easings[this.easing] ?? this.easing;
|
||||
const keyframes = this.keyframes ?? (animations as unknown as Partial<Record<string, Keyframe[]>>)[this.name];
|
||||
const slot = await this.defaultSlot;
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import type { Instance as PopperInstance } from '@popperjs/core/dist/esm';
|
||||
import { createPopper } from '@popperjs/core/dist/esm';
|
||||
import { html, LitElement } from 'lit';
|
||||
import { customElement, property, query } from 'lit/decorators.js';
|
||||
@@ -12,6 +11,7 @@ import { getTabbableBoundary } from '~/internal/tabbable';
|
||||
import { watch } from '~/internal/watch';
|
||||
import { getAnimation, setDefaultAnimation } from '~/utilities/animation-registry';
|
||||
import styles from './dropdown.styles';
|
||||
import type { Instance as PopperInstance } from '@popperjs/core/dist/esm';
|
||||
|
||||
/**
|
||||
* @since 2.0
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import type { TemplateResult } from 'lit';
|
||||
import { html, LitElement } from 'lit';
|
||||
import { customElement, property, query, state } from 'lit/decorators.js';
|
||||
import { classMap } from 'lit/directives/class-map.js';
|
||||
@@ -18,6 +17,7 @@ import { FormSubmitController, getLabelledBy, renderFormControl } from '~/intern
|
||||
import { getTextContent, HasSlotController } from '~/internal/slot';
|
||||
import { watch } from '~/internal/watch';
|
||||
import styles from './select.styles';
|
||||
import type { TemplateResult } from 'lit';
|
||||
|
||||
/**
|
||||
* @since 2.0
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import type { Instance as PopperInstance } from '@popperjs/core/dist/esm';
|
||||
import { createPopper } from '@popperjs/core/dist/esm';
|
||||
import { html, LitElement } from 'lit';
|
||||
import { customElement, property, query } from 'lit/decorators.js';
|
||||
@@ -8,6 +7,7 @@ import { emit, waitForEvent } from '~/internal/event';
|
||||
import { watch } from '~/internal/watch';
|
||||
import { getAnimation, setDefaultAnimation } from '~/utilities/animation-registry';
|
||||
import styles from './tooltip.styles';
|
||||
import type { Instance as PopperInstance } from '@popperjs/core/dist/esm';
|
||||
|
||||
/**
|
||||
* @since 2.0
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import type { ReactiveController, ReactiveControllerHost, TemplateResult } from 'lit';
|
||||
import { html } from 'lit';
|
||||
import { classMap } from 'lit/directives/class-map.js';
|
||||
import { ifDefined } from 'lit/directives/if-defined.js';
|
||||
import type SlButton from '~/components/button/button';
|
||||
import './formdata-event-polyfill';
|
||||
import type { ReactiveController, ReactiveControllerHost, TemplateResult } from 'lit';
|
||||
|
||||
export interface FormSubmitControllerOptions {
|
||||
/** A function that returns the form containing the form control. */
|
||||
|
||||
Reference in New Issue
Block a user