Skip to content

Commit f38c4e8

Browse files
renovate[bot]jsulpisphilibea
authored
chore(devdeps): update dependency @scaleway/oxlint-config to v0.2.0 (#6561)
* chore(devdeps): update dependency @scaleway/oxlint-config to v0.2.0 Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix: broken lint --------- Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Julien Sulpis <jsulpis@scaleway.com> Co-authored-by: philibeaux <aphilibeaux@scaleway.com>
1 parent b3e7d68 commit f38c4e8

31 files changed

Lines changed: 11 additions & 73 deletions

File tree

.oxlintrc.jsonc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"extends": [
44
"./node_modules/@scaleway/oxlint-config/configs/index.json",
55
"./node_modules/@scaleway/oxlint-config/configs/react.json",
6-
"./node_modules/@scaleway/oxlint-config/configs/typescript.json",
76
],
87
"jsPlugins": ["./.oxlint/rules/storybook-a11y-partial.cjs"],
98
"options": {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"@manypkg/cli": "0.25.1",
4646
"@playwright/test": "1.61.1",
4747
"@scaleway/oxfmt-config": "1.1.3",
48-
"@scaleway/oxlint-config": "0.1.17",
48+
"@scaleway/oxlint-config": "0.2.0",
4949
"@scaleway/tsconfig": "1.1.6",
5050
"@size-limit/file": "12.1.0",
5151
"@size-limit/preset-big-lib": "12.1.0",

packages/animations/src/hooks/__tests__/usePrefersReducedMotion.test.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { usePrefersReducedMotion } from '../usePrefersReducedMotion'
44

55
describe(usePrefersReducedMotion, () => {
66
it('should return true when prefers-reduced-motion is enabled', () => {
7-
// oxlint-disable-next-line vitest/prefer-spy-on
87
window.matchMedia = vi.fn().mockReturnValue({
98
matches: false,
109
addEventListener: vi.fn(),
@@ -17,7 +16,6 @@ describe(usePrefersReducedMotion, () => {
1716
})
1817

1918
it('should return false when prefers-reduced-motion is disabled', () => {
20-
// oxlint-disable-next-line vitest/prefer-spy-on
2119
window.matchMedia = vi.fn().mockReturnValue({
2220
matches: true,
2321
addEventListener: vi.fn(),
@@ -32,7 +30,6 @@ describe(usePrefersReducedMotion, () => {
3230
it('should cleanup event listener on unmount', () => {
3331
const mockRemoveListener = vi.fn()
3432

35-
// oxlint-disable-next-line vitest/prefer-spy-on
3633
window.matchMedia = vi.fn().mockReturnValue({
3734
matches: true,
3835
addEventListener: vi.fn(),

packages/form/src/components/Form/index.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,7 @@ import { ErrorProvider } from '../../providers'
77
import type { FormErrors } from '../../types'
88
import { defaultErrors } from './defaultErrors'
99

10-
type OnSubmitReturn =
11-
| string
12-
| null
13-
| undefined
14-
// oxlint-disable-next-line typescript/no-invalid-void-type
15-
| void
10+
type OnSubmitReturn = string | null | undefined | void
1611

1712
type FormProps<TFieldValues extends FieldValues> = {
1813
children?: ReactNode

packages/illustrations/src/assets/products/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
* PLEASE DO NOT EDIT HERE
44
*/
55

6-
// oxlint-disable import/no-namespace
7-
86
import * as accountExperience from './accountExperience'
97
import * as annotations from './annotations'
108
import * as apiGateway from './apiGateway'

packages/illustrations/src/assets/various/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// oxlint-disable import/no-namespace
2-
31
import * as documentation from './documentation'
42
import * as empty from './empty'
53
import * as feedback from './feedback'

packages/illustrations/src/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// oxlint-disable import/no-namespace
2-
31
import * as products from './assets/products'
42
import * as various from './assets/various'
53
import * as components from './components'

packages/ui/src/components/BarChart/__tests__/index.test.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ describe('barChart', () => {
5151
)
5252

5353
const bar = container.querySelector('svg[role="img"] g line')
54-
// oxlint-disable-next-line vitest/no-conditional-in-test
5554
if (!bar) {
5655
throw new Error('BarChart column not found')
5756
}

packages/ui/src/components/DateInput/__stories__/I18n.stories.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ export const I18n: StoryFn = args => {
4343
<SelectInput
4444
label="Switch Locale"
4545
name="locale-switcher"
46-
// oxlint-disable-next-line typescript/no-misused-promises
4746
onChange={onChange}
4847
options={localesOptions}
4948
searchable={false}

packages/ui/src/components/DateInput/__tests__/index.test.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ describe('dateInput', () => {
2121
it('renders correctly with default props', () => {
2222
const { asFragment } = renderWithTheme(
2323
<DateInput
24-
// oxlint-disable-next-line vitest/no-conditional-in-test
2524
format={value => (value instanceof Date ? value.toISOString() : value)}
2625
label="Date"
2726
locale={fr}
@@ -358,7 +357,6 @@ describe('dateInput', () => {
358357
const { asFragment } = renderWithTheme(
359358
<DateInput
360359
endDate={new Date('1995-12-11T03:24:00.000+00:00')}
361-
// oxlint-disable-next-line vitest/no-conditional-in-test
362360
format={value => (value instanceof Date ? value.toISOString() : value)}
363361
label="Date"
364362
name="test"

0 commit comments

Comments
 (0)