Skip to content

Commit

Permalink
ci(root): remove dts file for perfectionist eslint plugin wd-270
Browse files Browse the repository at this point in the history
  • Loading branch information
what1s1ove committed Jul 28, 2024
1 parent b089d19 commit af95fcf
Show file tree
Hide file tree
Showing 14 changed files with 122 additions and 84 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!
import ffmpegInstaller from '@ffmpeg-installer/ffmpeg'
import ffprobeInstaller from '@ffprobe-installer/ffprobe'
import { ProcessExitCode, getShuffledItems } from '@whatislove.dev/shared'
import { getShuffledItems, ProcessExitCode } from '@whatislove.dev/shared'
import ffmpeg from 'fluent-ffmpeg'
import { existsSync } from 'node:fs'
import { readdir } from 'node:fs/promises'
Expand Down
2 changes: 1 addition & 1 deletion apps/careers-whatislove-dev/src/libs/components/app/app.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { LitElement, html } from 'lit'
import { html, LitElement } from 'lit'

import {
defineCustomElement,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { LitElement, html } from 'lit'
import { html, LitElement } from 'lit'

import {
defineCustomElement,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { ControlType, getFormValues } from 'form-payload'
import { LitElement, html } from 'lit'
import { html, LitElement } from 'lit'

import {
defineCustomElement,
parseRawStyleSheet,
} from '~/libs/helpers/helpers.js'
import { TableNames, database } from '~/libs/modules/database/database.js'
import { database, TableNames } from '~/libs/modules/database/database.js'
import { notify } from '~/libs/modules/notify/notify.js'

import { Scene } from '../../enums/enums.js'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { LitElement, html } from 'lit'
import { html, LitElement } from 'lit'

import {
defineCustomElement,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { LitElement, html, nothing } from 'lit'
import { html, LitElement, nothing } from 'lit'
import { property } from 'lit/decorators.js'
import { createRef, ref } from 'lit/directives/ref.js'

Expand Down
2 changes: 1 addition & 1 deletion apps/careers-whatislove-dev/src/pages/root/root.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { LitElement, html } from 'lit'
import { html, LitElement } from 'lit'
import { property } from 'lit/decorators.js'

import {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ export { App } from './app/app.jsx'
export {
Document,
G as PDFG,
PDFViewer,
Page,
Path as PDFPath,
PDFViewer,
Svg as PDFSvg,
Text,
View,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ class WhatisloveMath {
MENTEE: `mentee`,
})

static NOTHING_TODO_VALUE = /** @type {const} */ (10)

static boostEntityToProfessionalValue = /** @type {const} */ ({
[WhatisloveMath.BoostEntity.BOOK]: 1,
[WhatisloveMath.BoostEntity.COURSE]: 3,
[WhatisloveMath.BoostEntity.MENTEE]: 10,
})

static NOTHING_TODO_VALUE = /** @type {const} */ (10)

/**
* @param {number} initialValue
* @param {ValuesOf<WhatisloveMath.BoostEntity>[]} boostEntities
Expand All @@ -24,8 +24,8 @@ class WhatisloveMath {
static calculateProfessionalLevel(initialValue = 0, ...boostEntities) {
let {
BoostEntity,
NOTHING_TODO_VALUE,
boostEntityToProfessionalValue,
NOTHING_TODO_VALUE,
} = WhatisloveMath

let hasBoostEntities = boostEntities.length > 0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Loader } from '~/libs/components/components.js'
import { checkIsBeforeElement } from '~/libs/helpers/helpers.js'
import {
Timeline as TTimeline,
TimelineApi,
TimelineFilter,
Timeline as TTimeline,
} from '~/modules/timeline/timeline.js'

import { TimelineForm, TimelineList } from './libs/components/components.js'
Expand Down
8 changes: 6 additions & 2 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,13 @@ let unicornConfig = {
/** @type {FlatConfig} */
let perfectionistConfig = {
plugins: {
perfectionist,
perfectionist: /** @type {Plugin} */ (
/** @type {unknown} */ (perfectionist)
),
},
rules: perfectionist.configs[`recommended-natural`].rules,
rules: /** @type {RulesRecord} */ (
perfectionist.configs[`recommended-natural`].rules
),
}

/** @type {FlatConfig} */
Expand Down
158 changes: 101 additions & 57 deletions package-lock.json

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

Loading

0 comments on commit af95fcf

Please sign in to comment.