diff --git a/.eslintignore b/.eslintignore index f3c62e6..6e53b3b 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,2 +1,3 @@ **/dist/* **/node_modules/* +**/out/* diff --git a/package.json b/package.json index 949b6f0..94eb1e5 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "postinstall": "husky install", "clean": "rm -rf node_modules/ output/ */*/node_modules */*/dist */*/tsconfig.tsbuildinfo", "build": "tsc --build packages/**/tsconfig.json", - "lint": "yarn build && eslint . --ignore-pattern=node_modules --ignore-pattern=output --ignore-pattern=dist --ext .js,.jsx,.ts", + "lint": "yarn build && eslint . --ignore-pattern=node_modules --ignore-pattern=output --ignore-pattern=dist --ext .js,.jsx,.ts,.tsx", "test": "yarn build && vitest run --exclude '**/integration.test.ts'", "test:integration": "yarn build && vitest watch integration.test.ts", "test:watch": "yarn build && vitest watch --exclude '**/integration.test.ts'", diff --git a/packages/website/src/components/GitHubLink.tsx b/packages/website/src/components/GitHubLink.tsx index a79502e..2318946 100644 --- a/packages/website/src/components/GitHubLink.tsx +++ b/packages/website/src/components/GitHubLink.tsx @@ -1,5 +1,6 @@ -// eslint-disable-next-line import/no-unresolved, import/extensions -import { iconMarkGithub } from '../../output/es6-dataurl-octicons/icons/octicons-by-github'; +import { iconMarkGithub } + // @ts-ignore This imported file in auto-generated + from '../../output/es6-dataurl-octicons/icons/octicons-by-github'; const GitHubLink = () => (
diff --git a/packages/website/src/components/SvgOcticons.tsx b/packages/website/src/components/SvgOcticons.tsx index 5b9bee6..34127ab 100644 --- a/packages/website/src/components/SvgOcticons.tsx +++ b/packages/website/src/components/SvgOcticons.tsx @@ -1,8 +1,10 @@ -// eslint-disable-next-line import/no-unresolved, import/extensions -import * as Octicons from '../../output/es6-dataurl-octicons/icons/octicons-by-github'; +import * as Octicons + // @ts-ignore This imported file in auto-generated + from '../../output/es6-dataurl-octicons/icons/octicons-by-github'; -// eslint-disable-next-line import/no-unresolved, import/extensions -import { figmaArrow } from '../../output/es6-dataurl/icons'; +import { figmaArrow } + // @ts-ignore This imported file in auto-generated + from '../../output/es6-dataurl/icons'; const SvgOcticons = () => (
@@ -19,7 +21,7 @@ const SvgOcticons = () => (
{ Object.values(Octicons).reverse().map( - (octicon, index) => {`Icon + (octicon, index) => {`Icon ) }
diff --git a/packages/website/src/components/output-components/ComponentsAsES6_base64.tsx b/packages/website/src/components/output-components/ComponentsAsES6_base64.tsx index d48d108..87c3f50 100644 --- a/packages/website/src/components/output-components/ComponentsAsES6_base64.tsx +++ b/packages/website/src/components/output-components/ComponentsAsES6_base64.tsx @@ -1,7 +1,8 @@ import CodeBlock from '@/components/CodeBlock'; -// eslint-disable-next-line import/no-unresolved, import/extensions -import { figmaExport, figmaLogo } from '../../../output/es6-base64/icons'; +import { figmaExport, figmaLogo } + // @ts-ignore This imported file in auto-generated + from '../../../output/es6-base64/icons'; const props = { title: ( diff --git a/packages/website/src/components/output-components/ComponentsAsES6_dataUrl.tsx b/packages/website/src/components/output-components/ComponentsAsES6_dataUrl.tsx index ea9af83..8312686 100644 --- a/packages/website/src/components/output-components/ComponentsAsES6_dataUrl.tsx +++ b/packages/website/src/components/output-components/ComponentsAsES6_dataUrl.tsx @@ -1,7 +1,8 @@ import CodeBlock from '@/components/CodeBlock'; -// eslint-disable-next-line import/no-unresolved, import/extensions -import { figmaExport, figmaLogo } from '../../../output/es6-dataurl/icons'; +import { figmaExport, figmaLogo } + // @ts-ignore This imported file in auto-generated + from '../../../output/es6-dataurl/icons'; const props = { title: ( diff --git a/packages/website/src/components/output-components/ComponentsAsSvgr_default.tsx b/packages/website/src/components/output-components/ComponentsAsSvgr_default.tsx index 4697716..efeabf0 100644 --- a/packages/website/src/components/output-components/ComponentsAsSvgr_default.tsx +++ b/packages/website/src/components/output-components/ComponentsAsSvgr_default.tsx @@ -1,10 +1,12 @@ import CodeBlock from '@/components/CodeBlock'; -// eslint-disable-next-line import/no-unresolved, import/extensions -import * as FigmaIcons from '../../../output/svgr/icons'; +import * as FigmaIcons + // @ts-ignore This imported file in auto-generated + from '../../../output/svgr/icons'; -// eslint-disable-next-line import/no-unresolved, import/extensions -import { Squirrel } from '../../../output/svgr-octicons/icons/octicons-by-github'; +import { Squirrel } + // @ts-ignore This imported file in auto-generated + from '../../../output/svgr-octicons/icons/octicons-by-github'; const props = { title: (