From 1efa335fd3393eb33f505f6cc83b1c3016dc0ecb Mon Sep 17 00:00:00 2001 From: Skip R Date: Fri, 13 Sep 2024 20:25:24 -0700 Subject: [PATCH] move config fragments into `lib/` --- configs.mjs | 8 ++++---- basic.mjs => lib/basic.mjs | 0 react.mjs => lib/react.mjs | 0 style.mjs => lib/style.mjs | 0 typescript.mjs => lib/typescript.mjs | 0 package.json | 2 +- tsconfig.json | 3 ++- 7 files changed, 7 insertions(+), 6 deletions(-) rename basic.mjs => lib/basic.mjs (100%) rename react.mjs => lib/react.mjs (100%) rename style.mjs => lib/style.mjs (100%) rename typescript.mjs => lib/typescript.mjs (100%) 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": {