Skip to content

Commit 14e910e

Browse files
committed
refactor: update regression test dependencies
Also use ESLint from the root package
1 parent 5e48e57 commit 14e910e

14 files changed

Lines changed: 1296 additions & 5756 deletions

File tree

eslint.config.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@ const finalConfig = tseslint.config(
8282
"/regression-test/**",
8383
"/coverage/**",
8484
"**/stylelint.config.js",
85-
"**/babel.config.js"
85+
"**/babel.config.js",
86+
"**/.next/**",
87+
"**/next-env.d.ts"
8688
]
8789
},
8890
eslint.configs.recommended,

packages/__docs__/buildScripts/samplemedia/placeholder-image.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ import IconSVG from './placeholder.svg'
2626

2727
export default function placeholderImage(width = 512, height = 512) {
2828
// We need to base64 encode this because otherwise FF will add extra escape chars
29-
// eslint-disable-next-line no-undef
3029
const dataUri = Buffer.from(
3130
IconSVG.replace(/{{w}}/g, width).replace(/{{h}}/g, height).trim()
3231
).toString('base64')

packages/command-utils/lib/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import { sync, spawn } from 'cross-spawn'
3333
const require = createRequire(import.meta.url)
3434

3535
function info(...args) {
36-
console.info(chalk.blue(...args)) // eslint-disable-line no-console
36+
console.info(chalk.blue(...args))
3737
}
3838

3939
function warn(...args) {
@@ -163,6 +163,7 @@ function resolveBin(
163163
let pathFromWhich
164164
try {
165165
pathFromWhich = fs.realpathSync(which.sync(executable))
166+
// eslint-disable-next-line no-unused-vars
166167
} catch (_error) {
167168
// ignore _error
168169
}

packages/ui-alerts/src/Alert/v1/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,6 @@ class Alert extends Component<AlertProps, AlertState> {
263263

264264
renderAlert() {
265265
// prevent onDismiss from being passed to the View component
266-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
267266
const {
268267
margin,
269268
styles,

packages/ui-alerts/src/Alert/v2/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,6 @@ class Alert extends Component<AlertProps, AlertState> {
262262

263263
renderAlert() {
264264
// prevent onDismiss from being passed to the View component
265-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
266265
const {
267266
margin,
268267
styles,

packages/ui-calendar/src/Calendar/__tests__/Calendar.test.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ describe('<Calendar />', () => {
122122

123123
expect(selectedDay).toBeDefined()
124124
if (selectedDay) {
125+
// eslint-disable-next-line vitest/no-conditional-expect
125126
expect(window.getComputedStyle(selectedDay)?.background).toBe(
126127
'rgb(3, 137, 61)'
127128
)

packages/ui-react-utils/src/DeterministicIdContext/DeterministicIdContext.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import React from 'react'
2525
import type { DeterministicIdProviderValue } from './DeterministicIdContextProvider'
2626

2727
declare global {
28-
// eslint-disable-next-line no-var
2928
var __INSTUI_GLOBAL_INSTANCE_COUNTER__: Map<string, number>
3029
}
3130
const instUIInstanceCounter = '__INSTUI_GLOBAL_INSTANCE_COUNTER__'

packages/ui-scripts/lib/icons/build-icons.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@ export default {
138138
JSON.stringify(legacyIconsData, null, 2),
139139
'utf8'
140140
)
141-
// eslint-disable-next-line no-console
142141
console.log(
143142
`Generated ${legacyOutputPath} (${legacyIconsData.length} icons)`
144143
)

regression-test/.eslintignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

regression-test/.eslintrc.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)