From 8f7bfac91f58c773b5dbc440e25ff76bcc06bb85 Mon Sep 17 00:00:00 2001 From: Joseph Phelan Date: Thu, 11 Jul 2024 08:13:31 -0500 Subject: [PATCH] restore ts --- packages/eslint-config-widen/package.json | 12 ++++++------ .../eslint-config-widen/src/{index.js => index.ts} | 0 .../eslint-config-widen/src/{jest.js => jest.ts} | 0 .../src/{playwright.js => playwright.ts} | 0 .../eslint-config-widen/src/{react.js => react.ts} | 0 packages/eslint-config-widen/src/types.d.ts | 9 +++++++++ .../src/{typescript.js => typescript.ts} | 0 packages/eslint-config-widen/tsconfig.json | 7 +++++++ tsconfig.json | 5 ++++- 9 files changed, 26 insertions(+), 7 deletions(-) rename packages/eslint-config-widen/src/{index.js => index.ts} (100%) rename packages/eslint-config-widen/src/{jest.js => jest.ts} (100%) rename packages/eslint-config-widen/src/{playwright.js => playwright.ts} (100%) rename packages/eslint-config-widen/src/{react.js => react.ts} (100%) create mode 100644 packages/eslint-config-widen/src/types.d.ts rename packages/eslint-config-widen/src/{typescript.js => typescript.ts} (100%) create mode 100644 packages/eslint-config-widen/tsconfig.json diff --git a/packages/eslint-config-widen/package.json b/packages/eslint-config-widen/package.json index a3aa605..13e3856 100644 --- a/packages/eslint-config-widen/package.json +++ b/packages/eslint-config-widen/package.json @@ -5,14 +5,14 @@ }, "description": "Widen's shared ESLint config.", "exports": { - ".": "./src/index.js", - "./jest": "./src/jest.js", - "./playwright": "./src/playwright.js", - "./react": "./src/react.js", - "./typescript": "./src/typescript.js" + ".": "./lib/index.js", + "./jest": "./lib/jest.js", + "./playwright": "./lib/playwright.js", + "./react": "./lib/react.js", + "./typescript": "./lib/typescript.js" }, "files": [ - "src" + "lib" ], "homepage": "https://github.com/Widen/eslint-config/tree/master/packages/eslint-config-widen#readme", "license": "ISC", diff --git a/packages/eslint-config-widen/src/index.js b/packages/eslint-config-widen/src/index.ts similarity index 100% rename from packages/eslint-config-widen/src/index.js rename to packages/eslint-config-widen/src/index.ts diff --git a/packages/eslint-config-widen/src/jest.js b/packages/eslint-config-widen/src/jest.ts similarity index 100% rename from packages/eslint-config-widen/src/jest.js rename to packages/eslint-config-widen/src/jest.ts diff --git a/packages/eslint-config-widen/src/playwright.js b/packages/eslint-config-widen/src/playwright.ts similarity index 100% rename from packages/eslint-config-widen/src/playwright.js rename to packages/eslint-config-widen/src/playwright.ts diff --git a/packages/eslint-config-widen/src/react.js b/packages/eslint-config-widen/src/react.ts similarity index 100% rename from packages/eslint-config-widen/src/react.js rename to packages/eslint-config-widen/src/react.ts diff --git a/packages/eslint-config-widen/src/types.d.ts b/packages/eslint-config-widen/src/types.d.ts new file mode 100644 index 0000000..94f3ef8 --- /dev/null +++ b/packages/eslint-config-widen/src/types.d.ts @@ -0,0 +1,9 @@ +declare module 'eslint-plugin-jsx-a11y' +declare module 'eslint-plugin-react' +declare module 'eslint-plugin-react-hooks' +declare module '@eslint/js' +declare module 'eslint-plugin-jest' +declare module 'globals' +declare module 'eslint-plugin-sort' +declare module 'eslint-plugin-widen' +declare module '@babel/eslint-parser' diff --git a/packages/eslint-config-widen/src/typescript.js b/packages/eslint-config-widen/src/typescript.ts similarity index 100% rename from packages/eslint-config-widen/src/typescript.js rename to packages/eslint-config-widen/src/typescript.ts diff --git a/packages/eslint-config-widen/tsconfig.json b/packages/eslint-config-widen/tsconfig.json new file mode 100644 index 0000000..2bf5bb4 --- /dev/null +++ b/packages/eslint-config-widen/tsconfig.json @@ -0,0 +1,7 @@ +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "outDir": "lib", + "rootDir": "src" + } +} diff --git a/tsconfig.json b/tsconfig.json index 73742af..53a897a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,4 +1,7 @@ { "files": [], - "references": [{ "path": "packages/eslint-plugin-widen" }] + "references": [ + { "path": "packages/eslint-config-widen" }, + { "path": "packages/eslint-plugin-widen" } + ] }