diff --git a/configs.mjs b/configs.mjs index d3f81af..66af765 100644 --- a/configs.mjs +++ b/configs.mjs @@ -1,9 +1,9 @@ // @ts-check -import basicConfig from './basic.mjs' -import stylisticConfig from './style.mjs' -import typescriptConfig from './typescript.mjs' -import reactConfig from './react.mjs' +import basicConfig from './lib/basic.mjs' +import stylisticConfig from './lib/style.mjs' +import typescriptConfig from './lib/typescript.mjs' +import reactConfig from './lib/react.mjs' /** @type {import('eslint').Linter.Config[]} */ const base = [ diff --git a/basic.mjs b/lib/basic.mjs similarity index 100% rename from basic.mjs rename to lib/basic.mjs diff --git a/react.mjs b/lib/react.mjs similarity index 100% rename from react.mjs rename to lib/react.mjs diff --git a/style.mjs b/lib/style.mjs similarity index 100% rename from style.mjs rename to lib/style.mjs diff --git a/typescript.mjs b/lib/typescript.mjs similarity index 100% rename from typescript.mjs rename to lib/typescript.mjs diff --git a/package.json b/package.json index 56c3f4c..576b087 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "type": "module", "exports": { ".": "./configs.mjs", - "./style": "./style.mjs" + "./style": "./lib/style.mjs" }, "dependencies": { "@eslint/compat": "^1.1.1", diff --git a/tsconfig.json b/tsconfig.json index 03fa020..82a057a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,7 @@ { "include": [ - "*.mjs", + "*.{mjs,ts,js}", + "lib/**.{mjs,ts,js}", "*.d.ts" ], "compilerOptions": {