Skip to content

Commit cc65a81

Browse files
chore(devdeps): update oxlint monorepo to v1.14.0 (#5423)
* chore(devdeps): update oxlint monorepo to v1.14.0 * fix: upgrade * fix: test and linter --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Matthias <[email protected]>
1 parent 1c57ac4 commit cc65a81

File tree

277 files changed

+32430
-1356
lines changed

Some content is hidden

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

277 files changed

+32430
-1356
lines changed

.oxlintrc.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@
5555
"import/no-anonymous-default-export": "off",
5656
"import/no-unassigned-import": "off",
5757
"jsx_a11y/label-has-associated-control": "off",
58-
"vitest/prefer-lowercase-title": "error"
58+
"vitest/prefer-lowercase-title": "error",
59+
"no-console": "off"
5960
}
6061
}
6162
],
@@ -107,7 +108,7 @@
107108
"@typescript-eslint/no-unsafe-declaration-merging": "error",
108109
"@typescript-eslint/no-var-requires": "error",
109110
"@typescript-eslint/prefer-as-const": "error",
110-
"@typescript/no-unsafe-member-access": "error",
111+
"@typescript-eslint/no-unsafe-member-access": "error",
111112
"@typescript-eslint/prefer-enum-initializers": "off",
112113
"@typescript-eslint/prefer-for-of": "error",
113114
"@typescript-eslint/prefer-function-type": "off",
@@ -357,7 +358,12 @@
357358
"unicorn/require-number-to-fixed-digits-argument": "error",
358359
"unicorn/switch-case-braces": "error",
359360
"unicorn/text-encoding-identifier-case": "error",
360-
"unicorn/throw-new-error": "error"
361+
"unicorn/throw-new-error": "error",
362+
"arrow-body-style": "off",
363+
"typescript/explicit-module-boundary-types": "off",
364+
"prefer-destructuring": "off",
365+
"import/no-anonymous-default-export": "off",
366+
"react/jsx-handler-names": "off"
361367
},
362368
"settings": {
363369
"jsx-a11y": {

.storybook/storybookThemes.ts

Lines changed: 24 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { create } from 'storybook/theming'
22
import lightTheme, { darkTheme } from '../packages/ui/src/theme'
33
import logoDark from './assets/logo-dark.png'
44
import logoLight from './assets/logo-light.png'
5-
import lightBrandImage from './assets/scaleway-text-light.png'
5+
import type lightBrandImage from './assets/scaleway-text-light.png'
66

77
enum Base {
88
LIGHT = 'light',
@@ -23,53 +23,52 @@ const generateStorybookTheme = ({
2323
brandImage,
2424
}: GenerateStorybookThemeProps) =>
2525
create({
26-
base,
27-
brandTitle: 'Ultraviolet UI',
28-
29-
brandUrl,
30-
brandImage,
31-
32-
colorPrimary: theme.colors.primary.backgroundStrong,
33-
colorSecondary: theme.colors.primary.backgroundStrong,
34-
3526
// UI
3627
appBg: theme.colors.neutral.background,
37-
appContentBg: theme.colors.neutral.background,
3828
appBorderColor: theme.colors.neutral.borderWeak,
39-
40-
// Text colors
41-
textColor: theme.colors.neutral.text,
42-
textInverseColor: theme.colors.neutral.textStronger,
29+
appContentBg: theme.colors.neutral.background,
30+
barBg: theme.colors.neutral.backgroundWeak,
31+
barSelectedColor: theme.colors.primary.textWeak,
4332

4433
// Toolbar default and active colors
4534
barTextColor: theme.colors.neutral.textWeak,
46-
barSelectedColor: theme.colors.primary.textWeak,
47-
barBg: theme.colors.neutral.backgroundWeak,
48-
49-
buttonBg: theme.colors.neutral.background,
50-
buttonBorder: theme.colors.neutral.border,
35+
base,
5136

5237
// BIZARRE
5338
booleanBg: theme.colors.neutral.background,
5439
booleanSelectedBg: theme.colors.primary.background,
40+
brandImage,
41+
brandTitle: 'Ultraviolet UI',
42+
43+
brandUrl,
44+
45+
buttonBg: theme.colors.neutral.background,
46+
buttonBorder: theme.colors.neutral.border,
47+
48+
colorPrimary: theme.colors.primary.backgroundStrong,
49+
colorSecondary: theme.colors.primary.backgroundStrong,
5550

5651
// Form colors
5752
inputBg: theme.colors.neutral.background,
5853
inputBorder: theme.colors.neutral.border,
59-
inputTextColor: theme.colors.neutral.text,
6054
inputBorderRadius: 4,
55+
inputTextColor: theme.colors.neutral.text,
56+
57+
// Text colors
58+
textColor: theme.colors.neutral.text,
59+
textInverseColor: theme.colors.neutral.textStronger,
6160
})
6261

6362
export const light = generateStorybookTheme({
6463
base: Base.LIGHT,
65-
theme: lightTheme,
66-
brandUrl: 'https://github.com/scaleway/ultraviolet',
6764
brandImage: logoLight,
65+
brandUrl: 'https://github.com/scaleway/ultraviolet',
66+
theme: lightTheme,
6867
})
6968

7069
export const dark = generateStorybookTheme({
7170
base: Base.DARK,
72-
theme: darkTheme,
73-
brandUrl: 'https://github.com/scaleway/ultraviolet',
7471
brandImage: logoDark,
72+
brandUrl: 'https://github.com/scaleway/ultraviolet',
73+
theme: darkTheme,
7574
})

eslint.config.mjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ const disableRules = {
2020
'import/no-unresolved': 'off',
2121
'@stylistic/no-extra-semi': 'off',
2222
'@stylistic/brace-style': 'off',
23+
'@typescript-eslint/no-unsafe-return': 'off',
24+
'@typescript-eslint/no-unsafe-assignment': 'off',
25+
'@typescript-eslint/no-unsafe-member-access': 'off',
2326

2427
// to check
2528
'react/no-unused-prop-types': 'off',
@@ -101,7 +104,7 @@ export default [
101104
...config.rules,
102105
...disableRules,
103106
'react/jsx-props-no-spreading': 'warn',
104-
'@typescript-eslint/no-unnecessary-condition': 'off',
107+
'@typescript-eslint/no-unnecessary-condition': 'off'
105108
},
106109
})),
107110
{

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
"emoji-toolkit": "9.0.1",
149149
"esbuild-plugin-browserslist": "1.0.1",
150150
"eslint": "9.32.0",
151-
"eslint-plugin-oxlint": "1.6.0",
151+
"eslint-plugin-oxlint": "1.14.0",
152152
"eslint-plugin-storybook": "9.1.5",
153153
"eslint-plugin-testing-library": "7.5.3",
154154
"expect": "30.1.2",
@@ -160,7 +160,7 @@
160160
"identity-obj-proxy": "3.0.0",
161161
"jest-axe": "10.0.0",
162162
"lint-staged": "16.1.6",
163-
"oxlint": "1.6.0",
163+
"oxlint": "1.14.0",
164164
"postcss": "8.5.6",
165165
"publint": "0.3.12",
166166
"react": "19.1.1",

packages/form/src/components/CheckboxField/__tests__/__snapshots__/index.test.tsx.snap

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
22

3-
exports[`CheckboxField > should render correctly 1`] = `
3+
exports[`checkboxField > should render correctly 1`] = `
44
<DocumentFragment>
55
.emotion-0 {
66
display: contents;
@@ -282,7 +282,7 @@ exports[`CheckboxField > should render correctly 1`] = `
282282
</DocumentFragment>
283283
`;
284284

285-
exports[`CheckboxField > should render correctly checked without value 1`] = `
285+
exports[`checkboxField > should render correctly checked without value 1`] = `
286286
<DocumentFragment>
287287
.emotion-0 {
288288
display: contents;
@@ -565,7 +565,7 @@ exports[`CheckboxField > should render correctly checked without value 1`] = `
565565
</DocumentFragment>
566566
`;
567567

568-
exports[`CheckboxField > should render correctly disabled 1`] = `
568+
exports[`checkboxField > should render correctly disabled 1`] = `
569569
<DocumentFragment>
570570
.emotion-0 {
571571
display: contents;
@@ -848,7 +848,7 @@ exports[`CheckboxField > should render correctly disabled 1`] = `
848848
</DocumentFragment>
849849
`;
850850

851-
exports[`CheckboxField > should render correctly not checked without value 1`] = `
851+
exports[`checkboxField > should render correctly not checked without value 1`] = `
852852
<DocumentFragment>
853853
.emotion-0 {
854854
display: contents;
@@ -1130,7 +1130,7 @@ exports[`CheckboxField > should render correctly not checked without value 1`] =
11301130
</DocumentFragment>
11311131
`;
11321132

1133-
exports[`CheckboxField > should render correctly with aria-label 1`] = `
1133+
exports[`checkboxField > should render correctly with aria-label 1`] = `
11341134
<DocumentFragment>
11351135
.emotion-0 {
11361136
display: contents;
@@ -1413,7 +1413,7 @@ exports[`CheckboxField > should render correctly with aria-label 1`] = `
14131413
</DocumentFragment>
14141414
`;
14151415

1416-
exports[`CheckboxField > should render correctly with errors 1`] = `
1416+
exports[`checkboxField > should render correctly with errors 1`] = `
14171417
<DocumentFragment>
14181418
.emotion-0 {
14191419
display: contents;
@@ -1797,7 +1797,7 @@ exports[`CheckboxField > should render correctly with errors 1`] = `
17971797
</DocumentFragment>
17981798
`;
17991799

1800-
exports[`CheckboxField > should trigger events correctly 1`] = `
1800+
exports[`checkboxField > should trigger events correctly 1`] = `
18011801
<DocumentFragment>
18021802
.emotion-0 {
18031803
display: contents;

packages/form/src/components/CheckboxField/__tests__/index.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { describe, expect, test, vi } from 'vitest'
66
import { CheckboxField } from '../..'
77
import { Form } from '../../Form'
88

9-
describe('CheckboxField', () => {
9+
describe('checkboxField', () => {
1010
test('should render correctly', () => {
1111
const { asFragment } = renderWithForm(<CheckboxField name="test" />)
1212
expect(asFragment()).toMatchSnapshot()

packages/form/src/components/CheckboxGroupField/__tests__/__snapshots__/index.test.tsx.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
22

3-
exports[`CheckboxField > should render correctly checked 1`] = `
3+
exports[`checkboxField > should render correctly checked 1`] = `
44
<DocumentFragment>
55
.emotion-0 {
66
display: contents;
@@ -539,7 +539,7 @@ exports[`CheckboxField > should render correctly checked 1`] = `
539539
</DocumentFragment>
540540
`;
541541

542-
exports[`CheckboxField > should trigger events correctly with required prop 1`] = `
542+
exports[`checkboxField > should trigger events correctly with required prop 1`] = `
543543
<DocumentFragment>
544544
.emotion-0 {
545545
display: contents;

packages/form/src/components/CheckboxGroupField/__tests__/index.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { renderWithForm } from '@utils/test'
44
import { describe, expect, test, vi } from 'vitest'
55
import { CheckboxGroupField } from '..'
66

7-
describe('CheckboxField', () => {
7+
describe('checkboxField', () => {
88
test('should render correctly checked', async () => {
99
const { asFragment } = renderWithForm(
1010
<CheckboxGroupField legend="Label" name="Checkbox" onChange={() => {}}>

packages/form/src/components/DateInputField/__tests__/__snapshots__/index.test.tsx.snap

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
22

3-
exports[`DateInputField > should clear field 1`] = `
3+
exports[`dateInputField > should clear field 1`] = `
44
<DocumentFragment>
55
@keyframes animation-0 {
66
0% {
@@ -1054,7 +1054,7 @@ exports[`DateInputField > should clear field 1`] = `
10541054
</DocumentFragment>
10551055
`;
10561056

1057-
exports[`DateInputField > should render correctly 1`] = `
1057+
exports[`dateInputField > should render correctly 1`] = `
10581058
<DocumentFragment>
10591059
.emotion-0 {
10601060
display: contents;
@@ -1297,7 +1297,7 @@ exports[`DateInputField > should render correctly 1`] = `
12971297
</DocumentFragment>
12981298
`;
12991299

1300-
exports[`DateInputField > should render correctly disabled 1`] = `
1300+
exports[`dateInputField > should render correctly disabled 1`] = `
13011301
<DocumentFragment>
13021302
.emotion-0 {
13031303
display: contents;
@@ -1541,7 +1541,7 @@ exports[`DateInputField > should render correctly disabled 1`] = `
15411541
</DocumentFragment>
15421542
`;
15431543

1544-
exports[`DateInputField > should test range 1`] = `
1544+
exports[`dateInputField > should test range 1`] = `
15451545
<DocumentFragment>
15461546
.emotion-0 {
15471547
display: contents;
@@ -1786,7 +1786,7 @@ exports[`DateInputField > should test range 1`] = `
17861786
</DocumentFragment>
17871787
`;
17881788

1789-
exports[`DateInputField > should trigger events 1`] = `
1789+
exports[`dateInputField > should trigger events 1`] = `
17901790
<DocumentFragment>
17911791
.emotion-0 {
17921792
display: contents;

packages/form/src/components/DateInputField/__tests__/index.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { renderWithForm } from '@utils/test'
44
import { describe, expect, test, vi } from 'vitest'
55
import { DateInputField } from '..'
66

7-
describe('DateInputField', () => {
7+
describe('dateInputField', () => {
88
test('should render correctly', () => {
99
const { asFragment } = renderWithForm(<DateInputField name="test" />)
1010
expect(asFragment()).toMatchSnapshot()

0 commit comments

Comments
 (0)