Skip to content

Commit 82b5cc2

Browse files
chore(devdeps): update dependency oxlint to v0.18.1 (#5338)
* chore(devdeps): update dependency oxlint to v0.18.1 * fix: new oxc rules --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Dorian Maliszewski <[email protected]>
1 parent 98b3e83 commit 82b5cc2

File tree

42 files changed

+130
-128
lines changed

Some content is hidden

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

42 files changed

+130
-128
lines changed

.oxlintrc.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,10 @@
1111
},
1212
"plugins": [
1313
"import",
14-
"n",
14+
"eslint",
1515
"node",
1616
"react-perf",
1717
"react",
18-
"security",
19-
"tree_shaking",
2018
"typescript",
2119
"unicorn"
2220
],
@@ -83,6 +81,7 @@
8381
"import/unambiguous": "off",
8482
"import/exports-last": "off",
8583
"import/no-anonymous-default-export": "off",
84+
"import/group-exports": "off",
8685
"react-perf/jsx-no-jsx-as-prop": "off",
8786
"react-perf/jsx-no-new-array-as-prop": "off",
8887
"react-perf/jsx-no-new-function-as-prop": "off",
@@ -122,11 +121,13 @@
122121
"unicorn/prefer-code-point": "off",
123122
"unicorn/prefer-dom-node-append": "off",
124123
"unicorn/prefer-dom-node-remove": "off",
124+
"unicorn/prefer-object-from-entries": "off",
125125
"unicorn/prefer-logical-operator-over-ternary": "off",
126126
"unicorn/prefer-node-protocol": "off",
127127
"unicorn/prefer-query-selector": "off",
128128
"unicorn/prefer-string-replace-all": "off",
129-
"unicorn/prefer-string-slice": "off"
129+
"unicorn/prefer-string-slice": "off",
130+
"unicorn/prefer-global-this": "off"
130131
},
131132
"settings": {
132133
"jsx-a11y": {

e2e/App.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { Global, ThemeProvider } from '@emotion/react'
2+
// oxlint-disable-next-line import/no-unassigned-import
23
import '@ultraviolet/fonts/fonts.css'
34
import { consoleLightTheme } from '@ultraviolet/themes'
45
import { Text, normalize } from '@ultraviolet/ui'

examples/next-app-router/app/GlobalStyles.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import { Global, css } from '@emotion/react'
44
import { normalize } from '@ultraviolet/ui'
5+
// oxlint-disable-next-line import/no-unassigned-import
56
import '@ultraviolet/fonts/fonts.css'
67

78
const styles = css`

examples/next-app-router/app/layout.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import type { Metadata } from 'next'
2+
// oxlint-disable-next-line import/no-unassigned-import
23
import './globals.css'
34
import { consoleLightTheme } from '@ultraviolet/themes'
45
import { ThemeRegistry } from '@ultraviolet/ui'
5-
import { ReactNode } from 'react'
6+
import type { ReactNode } from 'react'
67
import { GlobalStyles } from './GlobalStyles'
78

89
export const metadata: Metadata = {

examples/next-app-router/emotion.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import '@emotion/react'
2-
import { consoleLightTheme } from '@ultraviolet/themes'
2+
import type { consoleLightTheme } from '@ultraviolet/themes'
33

44
type CustomTheme = typeof consoleLightTheme
55

examples/next/src/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { FormErrors } from '@ultraviolet/form'
1+
import type { FormErrors } from '@ultraviolet/form'
22
export const APP_MAX_WIDTH = 1140
33

44
export const EMAIL_REGEX = /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i

examples/next/src/pages/_app.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import Footer from '../components/Footer'
66
import GlobalStyle from '../components/GlobalStyle'
77
import Head from '../components/Head'
88
import Header from '../components/Header'
9+
// oxlint-disable-next-line import/no-unassigned-import
910
import '@ultraviolet/fonts/fonts.css'
1011

1112
type Themes = 'light' | 'dark'

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@
168168
"identity-obj-proxy": "3.0.0",
169169
"jest-axe": "10.0.0",
170170
"lint-staged": "16.1.2",
171-
"oxlint": "0.16.5",
171+
"oxlint": "0.18.1",
172172
"postcss": "8.5.6",
173173
"publint": "0.3.12",
174174
"react": "19.1.0",

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
'use client'
22

33
import { Radio } from '@ultraviolet/ui'
4-
import { type ComponentProps, useMemo } from 'react'
4+
import type { ComponentProps } from 'react'
5+
import { useMemo } from 'react'
56
import type { FieldPath, FieldValues } from 'react-hook-form'
67
import { useController } from 'react-hook-form'
78
import { useErrors } from '../../providers'

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
'use client'
22

33
import { SelectInputV2 } from '@ultraviolet/ui'
4-
import { type ComponentProps, useCallback } from 'react'
4+
import type { ComponentProps } from 'react'
5+
import { useCallback } from 'react'
56
import type { FieldPath, FieldValues, PathValue } from 'react-hook-form'
67
import { useController } from 'react-hook-form'
78
import { useErrors } from '../../providers'

0 commit comments

Comments
 (0)