1
0
Fork 0

feat[react]: Linting with eslint 9

This commit is contained in:
joostdecock 2025-05-30 11:29:55 +02:00
parent 14eab04d5b
commit f69093b0dc
99 changed files with 1260 additions and 956 deletions

View file

@ -1,4 +1,3 @@
// eslint-disable-next-line no-unused-vars
import React from 'react'
import sanitize from 'html-react-parser'

View file

@ -1,5 +1,3 @@
// Dependencies
import { cloudflareImageUrl } from '@freesewing/utils'
// Components
import React, { forwardRef } from 'react'
import { Svg as DefaultSvg } from './svg.mjs'
@ -14,7 +12,6 @@ import { Grid as DefaultGrid } from './grid.mjs'
import { Text as DefaultText, TextOnPath as DefaultTextOnPath } from './text.mjs'
import { Circle as DefaultCircle } from './circle.mjs'
import { getId, getProps, withinPartBounds, translateStrings } from './utils.mjs'
import { Link as WebLink } from '@freesewing/react/components/Link'
/**
* Default Pattern components that you can override
@ -101,6 +98,7 @@ const Pattern = forwardRef((props, ref) => {
</Svg>
)
})
Pattern.displayName = 'Pattern'
export {
// utils

View file

@ -1,4 +1,3 @@
// eslint-disable-next-line no-unused-vars
import React, { forwardRef } from 'react'
import { getId, getProps } from './utils.mjs'

View file

@ -1,4 +1,3 @@
// eslint-disable-next-line no-unused-vars
import React from 'react'
import { getId, getProps } from './utils.mjs'

View file

@ -1,4 +1,3 @@
// eslint-disable-next-line no-unused-vars
import React from 'react'
import { withinPartBounds } from './utils.mjs'

View file

@ -1,4 +1,3 @@
// eslint-disable-next-line no-unused-vars
import React from 'react'
import { getProps } from './utils.mjs'

View file

@ -1,4 +1,3 @@
// eslint-disable-next-line no-unused-vars
import React from 'react'
import { forwardRef } from 'react'

View file

@ -1,4 +1,3 @@
// eslint-disable-next-line no-unused-vars
import React from 'react'
import { translateStrings } from './utils.mjs'

View file

@ -1,5 +1,3 @@
import React from 'react'
/**
* A method to generated an ID for an object part of a FreeSewing pattern
*