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" } + ] }