@santi020k/eslint-config-integrations 2.1.1 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/compose.js +2 -0
- package/dist/compose.js.map +1 -1
- package/dist/extensions/astro-doctor.d.ts +5 -0
- package/dist/extensions/astro-doctor.js +17 -0
- package/dist/extensions/astro-doctor.js.map +1 -0
- package/dist/extensions/index.d.ts +2 -0
- package/dist/extensions/index.js +2 -0
- package/dist/extensions/index.js.map +1 -1
- package/dist/extensions/no-only-tests.js.map +1 -1
- package/dist/extensions/oxlint.js +4 -6
- package/dist/extensions/oxlint.js.map +1 -1
- package/dist/extensions/unicorn.js +0 -1
- package/dist/extensions/unicorn.js.map +1 -1
- package/dist/formats/jsonc.js.map +1 -1
- package/dist/formats/toml.js +4 -6
- package/dist/formats/toml.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/lazy.js.map +1 -1
- package/dist/testing/index.d.ts +1 -1
- package/dist/testing/index.js +1 -1
- package/dist/testing/index.js.map +1 -1
- package/package.json +67 -43
package/dist/compose.js
CHANGED
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
Tool
|
|
7
7
|
} from "@santi020k/eslint-config-core";
|
|
8
8
|
import { a11y } from "./extensions/a11y.js";
|
|
9
|
+
import { astroDoctor } from "./extensions/astro-doctor.js";
|
|
9
10
|
import { bestPractices } from "./extensions/best-practices.js";
|
|
10
11
|
import { biome } from "./extensions/biome.js";
|
|
11
12
|
import { boundaries } from "./extensions/boundaries.js";
|
|
@@ -105,6 +106,7 @@ const getIntegrationConfigs = async (libraries, tools, testing, formats, extensi
|
|
|
105
106
|
addIf(formats.includes(Format.Graphql), graphql),
|
|
106
107
|
// Extensions
|
|
107
108
|
addIf(extensions.includes(Extension.A11y), a11y),
|
|
109
|
+
addIf(extensions.includes(Extension.AstroDoctor), astroDoctor),
|
|
108
110
|
addIf(extensions.includes(Extension.Biome), biome),
|
|
109
111
|
addIf(extensions.includes(Extension.Boundaries), () => boundaries),
|
|
110
112
|
addIf(extensions.includes(Extension.BestPractices), () => bestPractices),
|
package/dist/compose.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/compose.ts"],"sourcesContent":["import {\n Extension,\n type FlatConfigArray,\n Format,\n Library,\n Testing,\n Tool\n} from '@santi020k/eslint-config-core'\n\nimport { a11y } from './extensions/a11y.js'\nimport { bestPractices } from './extensions/best-practices.js'\nimport { biome } from './extensions/biome.js'\nimport { boundaries } from './extensions/boundaries.js'\nimport { compat } from './extensions/compat.js'\nimport { deMorgan } from './extensions/de-morgan.js'\nimport { depend } from './extensions/depend.js'\nimport { noOnlyTests } from './extensions/no-only-tests.js'\nimport { node } from './extensions/node.js'\nimport { oxlint } from './extensions/oxlint.js'\nimport { perfectionist } from './extensions/perfectionist.js'\nimport { regexp } from './extensions/regexp.js'\nimport { security } from './extensions/security.js'\nimport { sonarjs } from './extensions/sonarjs.js'\nimport { unicorn } from './extensions/unicorn.js'\nimport { css } from './formats/css.js'\nimport { graphql } from './formats/graphql.js'\nimport { html } from './formats/html.js'\nimport { jsonc } from './formats/jsonc.js'\nimport { markdown } from './formats/markdown.js'\nimport { mdx } from './formats/mdx.js'\nimport { packageJson } from './formats/package-json.js'\nimport { toml } from './formats/toml.js'\nimport { yaml } from './formats/yaml.js'\nimport { aiSdk } from './libraries/ai.js'\nimport { autogen } from './libraries/autogen.js'\nimport { googleGenAi } from './libraries/google-genai.js'\nimport { i18next } from './libraries/i18next.js'\nimport { langchain } from './libraries/langchain.js'\nimport { llamaIndex } from './libraries/llamaindex.js'\nimport { mastra } from './libraries/mastra.js'\nimport { mcp } from './libraries/mcp.js'\nimport { openAiAgents } from './libraries/openai-agents.js'\nimport { drizzle, mikroOrm, prisma, sequelize, typeorm } from './libraries/orm.js'\nimport { stencil } from './libraries/stencil.js'\nimport { storybook } from './libraries/storybook.js'\nimport { tailwind } from './libraries/tailwind.js'\nimport { tanstackQuery, tanstackRouter } from './libraries/tanstack.js'\nimport { turbo } from './libraries/turbo.js'\nimport { zod } from './libraries/zod.js'\nimport { cypress } from './testing/cypress.js'\nimport { jest } from './testing/jest.js'\nimport { jestDom } from './testing/jest-dom.js'\nimport { playwright } from './testing/playwright.js'\nimport { testingLibrary } from './testing/testing-library.js'\nimport { vitest } from './testing/vitest.js'\nimport { command } from './tools/command.js'\nimport { cspell } from './tools/cspell.js'\nimport { docker } from './tools/docker.js'\nimport { githubActions } from './tools/github-actions.js'\nimport { jsdoc } from './tools/jsdoc.js'\nimport { nx } from './tools/nx.js'\nimport { pnpm } from './tools/pnpm.js'\nimport { prettier } from './tools/prettier.js'\nimport { swagger } from './tools/swagger.js'\n\nconst addIf = async (\n flag: boolean,\n loader: () => FlatConfigArray | Promise<FlatConfigArray>\n): Promise<FlatConfigArray> => flag ? loader() : []\n\n/**\n * Gets integration configs based on selected options.\n * This function maintains the recommended ordering (e.g. Prettier last).\n * @param libraries - List of libraries to configure\n * @param tools - List of tools to configure\n * @param testing - List of testing frameworks to configure\n * @param formats - List of file formats to configure\n * @param extensions - List of extensions to configure\n * @returns The resolved flat configurations\n */\nexport const getIntegrationConfigs = async (\n libraries: Library[],\n tools: Tool[],\n testing: Testing[],\n formats: Format[],\n extensions: Extension[]\n): Promise<FlatConfigArray> => (await Promise.all([\n // Tools (Except Prettier which goes last)\n addIf(tools.includes(Tool.Cspell), cspell),\n // Libraries\n addIf(libraries.includes(Library.AiSdk), aiSdk),\n addIf(libraries.includes(Library.Mcp), () => mcp()),\n addIf(libraries.includes(Library.Mastra), () => mastra()),\n addIf(libraries.includes(Library.OpenAiAgents), () => openAiAgents()),\n addIf(libraries.includes(Library.GoogleGenAi), () => googleGenAi()),\n addIf(libraries.includes(Library.Autogen), () => autogen()),\n addIf(libraries.includes(Library.Langchain), () => langchain()),\n addIf(libraries.includes(Library.LlamaIndex), () => llamaIndex()),\n addIf(libraries.includes(Library.Typeorm), () => typeorm()),\n addIf(libraries.includes(Library.Prisma), () => prisma()),\n addIf(libraries.includes(Library.Drizzle), () => drizzle()),\n addIf(libraries.includes(Library.MikroOrm), () => mikroOrm()),\n addIf(libraries.includes(Library.Sequelize), () => sequelize()),\n addIf(libraries.includes(Library.Tailwind), tailwind),\n addIf(libraries.includes(Library.I18next), i18next),\n addIf(libraries.includes(Library.Stencil), stencil),\n addIf(libraries.includes(Library.TanstackQuery), tanstackQuery),\n addIf(libraries.includes(Library.TanstackRouter), tanstackRouter),\n addIf(libraries.includes(Library.Storybook), storybook),\n addIf(libraries.includes(Library.Zod), zod),\n addIf(libraries.includes(Library.Turbo), turbo),\n // Testing\n addIf(testing.includes(Testing.Vitest), vitest),\n addIf(testing.includes(Testing.Playwright), playwright),\n addIf(testing.includes(Testing.Jest), jest),\n addIf(testing.includes(Testing.JestDom), jestDom),\n addIf(testing.includes(Testing.Cypress), cypress),\n addIf(testing.includes(Testing.TestingLibrary), testingLibrary),\n // Formats\n addIf(formats.includes(Format.Css), css),\n addIf(formats.includes(Format.Html), html),\n addIf(formats.includes(Format.Mdx), mdx),\n addIf(formats.includes(Format.Markdown), markdown),\n addIf(formats.includes(Format.PackageJson), packageJson),\n addIf(formats.includes(Format.Jsonc), jsonc),\n addIf(formats.includes(Format.Yaml), yaml),\n addIf(formats.includes(Format.Toml), toml),\n addIf(formats.includes(Format.Graphql), graphql),\n // Extensions\n addIf(extensions.includes(Extension.A11y), a11y),\n addIf(extensions.includes(Extension.Biome), biome),\n addIf(extensions.includes(Extension.Boundaries), () => boundaries),\n addIf(extensions.includes(Extension.BestPractices), () => bestPractices),\n addIf(extensions.includes(Extension.Regexp), regexp),\n addIf(extensions.includes(Extension.Unicorn), unicorn),\n addIf(extensions.includes(Extension.Sonarjs), sonarjs),\n addIf(extensions.includes(Extension.Security), security),\n addIf(extensions.includes(Extension.Perfectionist), perfectionist),\n addIf(extensions.includes(Extension.Node), node),\n addIf(extensions.includes(Extension.Compat), compat),\n addIf(extensions.includes(Extension.DeMorgan), deMorgan),\n addIf(extensions.includes(Extension.Depend), depend),\n addIf(extensions.includes(Extension.NoOnlyTests), noOnlyTests),\n // Oxlint goes after other extensions so its rule disables win\n addIf(extensions.includes(Extension.Oxlint), oxlint),\n // Standalone tools\n addIf(tools.includes(Tool.Command), command),\n addIf(tools.includes(Tool.GithubActions), githubActions),\n addIf(tools.includes(Tool.Docker), docker),\n addIf(tools.includes(Tool.Nx), nx),\n addIf(tools.includes(Tool.Pnpm), pnpm),\n addIf(tools.includes(Tool.Jsdoc), jsdoc),\n addIf(tools.includes(Tool.Swagger), swagger)\n])).flat()\n\n/**\n * Returns the Prettier configuration if selected.\n * @param tools - The tools to configure\n * @returns The prettier config or an empty array\n */\nexport const getPrettierConfig = async (tools: Tool[]): Promise<FlatConfigArray> => tools.includes(Tool.Prettier) ? await prettier() : []\n"],"mappings":"AAAA;AAAA,EACE;AAAA,EAEA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAEP,SAAS,YAAY;AACrB,SAAS,qBAAqB;AAC9B,SAAS,aAAa;AACtB,SAAS,kBAAkB;AAC3B,SAAS,cAAc;AACvB,SAAS,gBAAgB;AACzB,SAAS,cAAc;AACvB,SAAS,mBAAmB;AAC5B,SAAS,YAAY;AACrB,SAAS,cAAc;AACvB,SAAS,qBAAqB;AAC9B,SAAS,cAAc;AACvB,SAAS,gBAAgB;AACzB,SAAS,eAAe;AACxB,SAAS,eAAe;AACxB,SAAS,WAAW;AACpB,SAAS,eAAe;AACxB,SAAS,YAAY;AACrB,SAAS,aAAa;AACtB,SAAS,gBAAgB;AACzB,SAAS,WAAW;AACpB,SAAS,mBAAmB;AAC5B,SAAS,YAAY;AACrB,SAAS,YAAY;AACrB,SAAS,aAAa;AACtB,SAAS,eAAe;AACxB,SAAS,mBAAmB;AAC5B,SAAS,eAAe;AACxB,SAAS,iBAAiB;AAC1B,SAAS,kBAAkB;AAC3B,SAAS,cAAc;A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AS,UAAU,MAAM,GAAG,MAAM;AAAA;AAAA,EAEnD,MAAM,MAAM,SAAS,KAAK,OAAO,GAAG,OAAO;AAAA,EAC3C,MAAM,MAAM,SAAS,KAAK,aAAa,GAAG,aAAa;AAAA,EACvD,MAAM,MAAM,SAAS,KAAK,MAAM,GAAG,MAAM;AAAA,EACzC,MAAM,MAAM,SAAS,KAAK,EAAE,GAAG,EAAE;AAAA,EACjC,MAAM,MAAM,SAAS,KAAK,IAAI,GAAG,IAAI;AAAA,EACrC,MAAM,MAAM,SAAS,KAAK,KAAK,GAAG,KAAK;AAAA,EACvC,MAAM,MAAM,SAAS,KAAK,OAAO,GAAG,OAAO;AAC7C,CAAC,GAAG,KAAK;AAOF,MAAM,oBAAoB,OAAO,UAA4C,MAAM,SAAS,KAAK,QAAQ,IAAI,MAAM,SAAS,IAAI,CAAC;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../src/compose.ts"],"sourcesContent":["import {\n Extension,\n type FlatConfigArray,\n Format,\n Library,\n Testing,\n Tool\n} from '@santi020k/eslint-config-core'\n\nimport { a11y } from './extensions/a11y.js'\nimport { astroDoctor } from './extensions/astro-doctor.js'\nimport { bestPractices } from './extensions/best-practices.js'\nimport { biome } from './extensions/biome.js'\nimport { boundaries } from './extensions/boundaries.js'\nimport { compat } from './extensions/compat.js'\nimport { deMorgan } from './extensions/de-morgan.js'\nimport { depend } from './extensions/depend.js'\nimport { noOnlyTests } from './extensions/no-only-tests.js'\nimport { node } from './extensions/node.js'\nimport { oxlint } from './extensions/oxlint.js'\nimport { perfectionist } from './extensions/perfectionist.js'\nimport { regexp } from './extensions/regexp.js'\nimport { security } from './extensions/security.js'\nimport { sonarjs } from './extensions/sonarjs.js'\nimport { unicorn } from './extensions/unicorn.js'\nimport { css } from './formats/css.js'\nimport { graphql } from './formats/graphql.js'\nimport { html } from './formats/html.js'\nimport { jsonc } from './formats/jsonc.js'\nimport { markdown } from './formats/markdown.js'\nimport { mdx } from './formats/mdx.js'\nimport { packageJson } from './formats/package-json.js'\nimport { toml } from './formats/toml.js'\nimport { yaml } from './formats/yaml.js'\nimport { aiSdk } from './libraries/ai.js'\nimport { autogen } from './libraries/autogen.js'\nimport { googleGenAi } from './libraries/google-genai.js'\nimport { i18next } from './libraries/i18next.js'\nimport { langchain } from './libraries/langchain.js'\nimport { llamaIndex } from './libraries/llamaindex.js'\nimport { mastra } from './libraries/mastra.js'\nimport { mcp } from './libraries/mcp.js'\nimport { openAiAgents } from './libraries/openai-agents.js'\nimport { drizzle, mikroOrm, prisma, sequelize, typeorm } from './libraries/orm.js'\nimport { stencil } from './libraries/stencil.js'\nimport { storybook } from './libraries/storybook.js'\nimport { tailwind } from './libraries/tailwind.js'\nimport { tanstackQuery, tanstackRouter } from './libraries/tanstack.js'\nimport { turbo } from './libraries/turbo.js'\nimport { zod } from './libraries/zod.js'\nimport { cypress } from './testing/cypress.js'\nimport { jest } from './testing/jest.js'\nimport { jestDom } from './testing/jest-dom.js'\nimport { playwright } from './testing/playwright.js'\nimport { testingLibrary } from './testing/testing-library.js'\nimport { vitest } from './testing/vitest.js'\nimport { command } from './tools/command.js'\nimport { cspell } from './tools/cspell.js'\nimport { docker } from './tools/docker.js'\nimport { githubActions } from './tools/github-actions.js'\nimport { jsdoc } from './tools/jsdoc.js'\nimport { nx } from './tools/nx.js'\nimport { pnpm } from './tools/pnpm.js'\nimport { prettier } from './tools/prettier.js'\nimport { swagger } from './tools/swagger.js'\n\nconst addIf = async (\n flag: boolean,\n loader: () => FlatConfigArray | Promise<FlatConfigArray>\n): Promise<FlatConfigArray> => flag ? loader() : []\n\n/**\n * Gets integration configs based on selected options.\n * This function maintains the recommended ordering (e.g. Prettier last).\n * @param libraries - List of libraries to configure\n * @param tools - List of tools to configure\n * @param testing - List of testing frameworks to configure\n * @param formats - List of file formats to configure\n * @param extensions - List of extensions to configure\n * @returns The resolved flat configurations\n */\nexport const getIntegrationConfigs = async (\n libraries: Library[],\n tools: Tool[],\n testing: Testing[],\n formats: Format[],\n extensions: Extension[]\n): Promise<FlatConfigArray> => (await Promise.all([\n // Tools (Except Prettier which goes last)\n addIf(tools.includes(Tool.Cspell), cspell),\n // Libraries\n addIf(libraries.includes(Library.AiSdk), aiSdk),\n addIf(libraries.includes(Library.Mcp), () => mcp()),\n addIf(libraries.includes(Library.Mastra), () => mastra()),\n addIf(libraries.includes(Library.OpenAiAgents), () => openAiAgents()),\n addIf(libraries.includes(Library.GoogleGenAi), () => googleGenAi()),\n addIf(libraries.includes(Library.Autogen), () => autogen()),\n addIf(libraries.includes(Library.Langchain), () => langchain()),\n addIf(libraries.includes(Library.LlamaIndex), () => llamaIndex()),\n addIf(libraries.includes(Library.Typeorm), () => typeorm()),\n addIf(libraries.includes(Library.Prisma), () => prisma()),\n addIf(libraries.includes(Library.Drizzle), () => drizzle()),\n addIf(libraries.includes(Library.MikroOrm), () => mikroOrm()),\n addIf(libraries.includes(Library.Sequelize), () => sequelize()),\n addIf(libraries.includes(Library.Tailwind), tailwind),\n addIf(libraries.includes(Library.I18next), i18next),\n addIf(libraries.includes(Library.Stencil), stencil),\n addIf(libraries.includes(Library.TanstackQuery), tanstackQuery),\n addIf(libraries.includes(Library.TanstackRouter), tanstackRouter),\n addIf(libraries.includes(Library.Storybook), storybook),\n addIf(libraries.includes(Library.Zod), zod),\n addIf(libraries.includes(Library.Turbo), turbo),\n // Testing\n addIf(testing.includes(Testing.Vitest), vitest),\n addIf(testing.includes(Testing.Playwright), playwright),\n addIf(testing.includes(Testing.Jest), jest),\n addIf(testing.includes(Testing.JestDom), jestDom),\n addIf(testing.includes(Testing.Cypress), cypress),\n addIf(testing.includes(Testing.TestingLibrary), testingLibrary),\n // Formats\n addIf(formats.includes(Format.Css), css),\n addIf(formats.includes(Format.Html), html),\n addIf(formats.includes(Format.Mdx), mdx),\n addIf(formats.includes(Format.Markdown), markdown),\n addIf(formats.includes(Format.PackageJson), packageJson),\n addIf(formats.includes(Format.Jsonc), jsonc),\n addIf(formats.includes(Format.Yaml), yaml),\n addIf(formats.includes(Format.Toml), toml),\n addIf(formats.includes(Format.Graphql), graphql),\n // Extensions\n addIf(extensions.includes(Extension.A11y), a11y),\n addIf(extensions.includes(Extension.AstroDoctor), astroDoctor),\n addIf(extensions.includes(Extension.Biome), biome),\n addIf(extensions.includes(Extension.Boundaries), () => boundaries),\n addIf(extensions.includes(Extension.BestPractices), () => bestPractices),\n addIf(extensions.includes(Extension.Regexp), regexp),\n addIf(extensions.includes(Extension.Unicorn), unicorn),\n addIf(extensions.includes(Extension.Sonarjs), sonarjs),\n addIf(extensions.includes(Extension.Security), security),\n addIf(extensions.includes(Extension.Perfectionist), perfectionist),\n addIf(extensions.includes(Extension.Node), node),\n addIf(extensions.includes(Extension.Compat), compat),\n addIf(extensions.includes(Extension.DeMorgan), deMorgan),\n addIf(extensions.includes(Extension.Depend), depend),\n addIf(extensions.includes(Extension.NoOnlyTests), noOnlyTests),\n // Oxlint goes after other extensions so its rule disables win\n addIf(extensions.includes(Extension.Oxlint), oxlint),\n // Standalone tools\n addIf(tools.includes(Tool.Command), command),\n addIf(tools.includes(Tool.GithubActions), githubActions),\n addIf(tools.includes(Tool.Docker), docker),\n addIf(tools.includes(Tool.Nx), nx),\n addIf(tools.includes(Tool.Pnpm), pnpm),\n addIf(tools.includes(Tool.Jsdoc), jsdoc),\n addIf(tools.includes(Tool.Swagger), swagger)\n])).flat()\n\n/**\n * Returns the Prettier configuration if selected.\n * @param tools - The tools to configure\n * @returns The prettier config or an empty array\n */\nexport const getPrettierConfig = async (tools: Tool[]): Promise<FlatConfigArray> => tools.includes(Tool.Prettier) ? await prettier() : []\n"],"mappings":"AAAA;AAAA,EACE;AAAA,EAEA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAEP,SAAS,YAAY;AACrB,SAAS,mBAAmB;AAC5B,SAAS,qBAAqB;AAC9B,SAAS,aAAa;AACtB,SAAS,kBAAkB;AAC3B,SAAS,cAAc;AACvB,SAAS,gBAAgB;AACzB,SAA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AA,EACnD,MAAM,WAAW,SAAS,UAAU,OAAO,GAAG,OAAO;AAAA,EACrD,MAAM,WAAW,SAAS,UAAU,OAAO,GAAG,OAAO;AAAA,EACrD,MAAM,WAAW,SAAS,UAAU,QAAQ,GAAG,QAAQ;AAAA,EACvD,MAAM,WAAW,SAAS,UAAU,aAAa,GAAG,aAAa;AAAA,EACjE,MAAM,WAAW,SAAS,UAAU,IAAI,GAAG,IAAI;AAAA,EAC/C,MAAM,WAAW,SAAS,UAAU,MAAM,GAAG,MAAM;AAAA,EACnD,MAAM,WAAW,SAAS,UAAU,QAAQ,GAAG,QAAQ;AAAA,EACvD,MAAM,WAAW,SAAS,UAAU,MAAM,GAAG,MAAM;AAAA,EACnD,MAAM,WAAW,SAAS,UAAU,WAAW,GAAG,WAAW;AAAA;AAAA,EAE7D,MAAM,WAAW,SAAS,UAAU,MAAM,GAAG,MAAM;AAAA;AAAA,EAEnD,MAAM,MAAM,SAAS,KAAK,OAAO,GAAG,OAAO;AAAA,EAC3C,MAAM,MAAM,SAAS,KAAK,aAAa,GAAG,aAAa;AAAA,EACvD,MAAM,MAAM,SAAS,KAAK,MAAM,GAAG,MAAM;AAAA,EACzC,MAAM,MAAM,SAAS,KAAK,EAAE,GAAG,EAAE;AAAA,EACjC,MAAM,MAAM,SAAS,KAAK,IAAI,GAAG,IAAI;AAAA,EACrC,MAAM,MAAM,SAAS,KAAK,KAAK,GAAG,KAAK;AAAA,EACvC,MAAM,MAAM,SAAS,KAAK,OAAO,GAAG,OAAO;AAC7C,CAAC,GAAG,KAAK;AAOF,MAAM,oBAAoB,OAAO,UAA4C,MAAM,SAAS,KAAK,QAAQ,IAAI,MAAM,SAAS,IAAI,CAAC;","names":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { GLOB_ASTRO } from "@santi020k/eslint-config-core";
|
|
2
|
+
import { defineLazyConfig } from "../lazy.js";
|
|
3
|
+
const astroDoctor = defineLazyConfig("astro-doctor", async () => {
|
|
4
|
+
const { default: astroDoctorPlugin, RECOMMENDED_RULES } = await import("@santi020k/eslint-plugin-astro-doctor");
|
|
5
|
+
return [{
|
|
6
|
+
files: GLOB_ASTRO,
|
|
7
|
+
name: "eslint-config-integrations/astro-doctor",
|
|
8
|
+
plugins: {
|
|
9
|
+
"astro-doctor": astroDoctorPlugin
|
|
10
|
+
},
|
|
11
|
+
rules: RECOMMENDED_RULES
|
|
12
|
+
}];
|
|
13
|
+
});
|
|
14
|
+
export {
|
|
15
|
+
astroDoctor
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=astro-doctor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/extensions/astro-doctor.ts"],"sourcesContent":["import { type FlatConfigArray, GLOB_ASTRO } from '@santi020k/eslint-config-core'\n\nimport { defineLazyConfig } from '../lazy.js'\n\nexport const astroDoctor: () => Promise<FlatConfigArray> = defineLazyConfig('astro-doctor', async () => {\n const { default: astroDoctorPlugin, RECOMMENDED_RULES } = await import('@santi020k/eslint-plugin-astro-doctor')\n\n return [{\n files: GLOB_ASTRO,\n name: 'eslint-config-integrations/astro-doctor',\n plugins: {\n 'astro-doctor': astroDoctorPlugin\n },\n rules: RECOMMENDED_RULES\n }]\n})\n"],"mappings":"AAAA,SAA+B,kBAAkB;AAEjD,SAAS,wBAAwB;AAE1B,MAAM,cAA8C,iBAAiB,gBAAgB,YAAY;AACtG,QAAM,EAAE,SAAS,mBAAmB,kBAAkB,IAAI,MAAM,OAAO,uCAAuC;AAE9G,SAAO,CAAC;AAAA,IACN,OAAO;AAAA,IACP,MAAM;AAAA,IACN,SAAS;AAAA,MACP,gBAAgB;AAAA,IAClB;AAAA,IACA,OAAO;AAAA,EACT,CAAC;AACH,CAAC;","names":[]}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { a11y } from './a11y.js';
|
|
2
|
+
export { astroDoctor } from './astro-doctor.js';
|
|
2
3
|
export { bestPractices } from './best-practices.js';
|
|
3
4
|
export { biome } from './biome.js';
|
|
4
5
|
export { boundaries } from './boundaries.js';
|
|
@@ -14,3 +15,4 @@ export { security } from './security.js';
|
|
|
14
15
|
export { sonarjs } from './sonarjs.js';
|
|
15
16
|
export { unicorn } from './unicorn.js';
|
|
16
17
|
import '@typescript-eslint/utils';
|
|
18
|
+
import '@santi020k/eslint-config-core';
|
package/dist/extensions/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { a11y } from "./a11y.js";
|
|
2
|
+
import { astroDoctor } from "./astro-doctor.js";
|
|
2
3
|
import { bestPractices } from "./best-practices.js";
|
|
3
4
|
import { biome } from "./biome.js";
|
|
4
5
|
import { boundaries } from "./boundaries.js";
|
|
@@ -15,6 +16,7 @@ import { sonarjs } from "./sonarjs.js";
|
|
|
15
16
|
import { unicorn } from "./unicorn.js";
|
|
16
17
|
export {
|
|
17
18
|
a11y,
|
|
19
|
+
astroDoctor,
|
|
18
20
|
bestPractices,
|
|
19
21
|
biome,
|
|
20
22
|
boundaries,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/extensions/index.ts"],"sourcesContent":["export { a11y } from './a11y.js'\nexport { bestPractices } from './best-practices.js'\nexport { biome } from './biome.js'\nexport { boundaries } from './boundaries.js'\nexport { compat } from './compat.js'\nexport { deMorgan } from './de-morgan.js'\nexport { depend } from './depend.js'\nexport { noOnlyTests } from './no-only-tests.js'\nexport { node } from './node.js'\nexport { oxlint } from './oxlint.js'\nexport { perfectionist } from './perfectionist.js'\nexport { regexp } from './regexp.js'\nexport { security } from './security.js'\nexport { sonarjs } from './sonarjs.js'\nexport { unicorn } from './unicorn.js'\n"],"mappings":"AAAA,SAAS,YAAY;AACrB,SAAS,qBAAqB;AAC9B,SAAS,aAAa;AACtB,SAAS,kBAAkB;AAC3B,SAAS,cAAc;AACvB,SAAS,gBAAgB;AACzB,SAAS,cAAc;AACvB,SAAS,mBAAmB;AAC5B,SAAS,YAAY;AACrB,SAAS,cAAc;AACvB,SAAS,qBAAqB;AAC9B,SAAS,cAAc;AACvB,SAAS,gBAAgB;AACzB,SAAS,eAAe;AACxB,SAAS,eAAe;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/extensions/index.ts"],"sourcesContent":["export { a11y } from './a11y.js'\nexport { astroDoctor } from './astro-doctor.js'\nexport { bestPractices } from './best-practices.js'\nexport { biome } from './biome.js'\nexport { boundaries } from './boundaries.js'\nexport { compat } from './compat.js'\nexport { deMorgan } from './de-morgan.js'\nexport { depend } from './depend.js'\nexport { noOnlyTests } from './no-only-tests.js'\nexport { node } from './node.js'\nexport { oxlint } from './oxlint.js'\nexport { perfectionist } from './perfectionist.js'\nexport { regexp } from './regexp.js'\nexport { security } from './security.js'\nexport { sonarjs } from './sonarjs.js'\nexport { unicorn } from './unicorn.js'\n"],"mappings":"AAAA,SAAS,YAAY;AACrB,SAAS,mBAAmB;AAC5B,SAAS,qBAAqB;AAC9B,SAAS,aAAa;AACtB,SAAS,kBAAkB;AAC3B,SAAS,cAAc;AACvB,SAAS,gBAAgB;AACzB,SAAS,cAAc;AACvB,SAAS,mBAAmB;AAC5B,SAAS,YAAY;AACrB,SAAS,cAAc;AACvB,SAAS,qBAAqB;AAC9B,SAAS,cAAc;AACvB,SAAS,gBAAgB;AACzB,SAAS,eAAe;AACxB,SAAS,eAAe;","names":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/extensions/no-only-tests.ts"],"sourcesContent":["import { GLOB_JS_TS } from '@santi020k/eslint-config-core'\n\nimport type { TSESLint } from '@typescript-eslint/utils'\n\nimport { defineLazyConfig, type FlatPlugin,loadModule } from '../lazy.js'\n\n/**\n * Prevents `test.only` / `describe.only` from being committed to version\n * control. Uses `eslint-plugin-no-only-tests`.\n */\nexport const noOnlyTests: () => Promise<TSESLint.FlatConfig.ConfigArray> = defineLazyConfig('no-only-tests', async () => {\n const plugin = (await loadModule<{ default: FlatPlugin }>('eslint-plugin-no-only-tests')).default\n\n return [\n {\n files: GLOB_JS_TS,\n name: 'eslint-config-integrations/no-only-tests',\n plugins: {\n 'no-only-tests': plugin\n },\n rules: {\n 'no-only-tests/no-only-tests': 'error'\n }\n }\n ]\n})\n"],"mappings":"AAAA,SAAS,kBAAkB;AAI3B,SAAS,
|
|
1
|
+
{"version":3,"sources":["../../src/extensions/no-only-tests.ts"],"sourcesContent":["import { GLOB_JS_TS } from '@santi020k/eslint-config-core'\n\nimport type { TSESLint } from '@typescript-eslint/utils'\n\nimport { defineLazyConfig, type FlatPlugin, loadModule } from '../lazy.js'\n\n/**\n * Prevents `test.only` / `describe.only` from being committed to version\n * control. Uses `eslint-plugin-no-only-tests`.\n */\nexport const noOnlyTests: () => Promise<TSESLint.FlatConfig.ConfigArray> = defineLazyConfig('no-only-tests', async () => {\n const plugin = (await loadModule<{ default: FlatPlugin }>('eslint-plugin-no-only-tests')).default\n\n return [\n {\n files: GLOB_JS_TS,\n name: 'eslint-config-integrations/no-only-tests',\n plugins: {\n 'no-only-tests': plugin\n },\n rules: {\n 'no-only-tests/no-only-tests': 'error'\n }\n }\n ]\n})\n"],"mappings":"AAAA,SAAS,kBAAkB;AAI3B,SAAS,kBAAmC,kBAAkB;AAMvD,MAAM,cAA8D,iBAAiB,iBAAiB,YAAY;AACvH,QAAM,UAAU,MAAM,WAAoC,6BAA6B,GAAG;AAE1F,SAAO;AAAA,IACL;AAAA,MACE,OAAO;AAAA,MACP,MAAM;AAAA,MACN,SAAS;AAAA,QACP,iBAAiB;AAAA,MACnB;AAAA,MACA,OAAO;AAAA,QACL,+BAA+B;AAAA,MACjC;AAAA,IACF;AAAA,EACF;AACF,CAAC;","names":[]}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { defineLazyConfig, loadDefault } from "../lazy.js";
|
|
2
2
|
const oxlint = defineLazyConfig("oxlint", async () => {
|
|
3
3
|
const pluginOxlint = await loadDefault("eslint-plugin-oxlint");
|
|
4
|
-
return [
|
|
5
|
-
...
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}))
|
|
9
|
-
];
|
|
4
|
+
return pluginOxlint.configs["flat/recommended"].map((config) => ({
|
|
5
|
+
...config,
|
|
6
|
+
name: `integrations/oxlint${config.name ? `/${config.name}` : ""}`
|
|
7
|
+
}));
|
|
10
8
|
});
|
|
11
9
|
export {
|
|
12
10
|
oxlint
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/extensions/oxlint.ts"],"sourcesContent":["import type { TSESLint } from '@typescript-eslint/utils'\n\nimport { defineLazyConfig, loadDefault } from '../lazy.js'\n\ninterface OxlintPlugin {\n configs: Record<string, TSESLint.FlatConfig.ConfigArray>\n}\n\n/**\n * Oxlint extension configuration\n * Disables ESLint rules already covered by Oxlint so both linters can run\n * side by side without duplicate reports (analogous to the Biome extension)\n */\nexport const oxlint: () => Promise<TSESLint.FlatConfig.ConfigArray> = defineLazyConfig('oxlint', async () => {\n const pluginOxlint = await loadDefault<OxlintPlugin>('eslint-plugin-oxlint')\n\n return
|
|
1
|
+
{"version":3,"sources":["../../src/extensions/oxlint.ts"],"sourcesContent":["import type { TSESLint } from '@typescript-eslint/utils'\n\nimport { defineLazyConfig, loadDefault } from '../lazy.js'\n\ninterface OxlintPlugin {\n configs: Record<string, TSESLint.FlatConfig.ConfigArray>\n}\n\n/**\n * Oxlint extension configuration\n * Disables ESLint rules already covered by Oxlint so both linters can run\n * side by side without duplicate reports (analogous to the Biome extension)\n */\nexport const oxlint: () => Promise<TSESLint.FlatConfig.ConfigArray> = defineLazyConfig('oxlint', async () => {\n const pluginOxlint = await loadDefault<OxlintPlugin>('eslint-plugin-oxlint')\n\n return pluginOxlint.configs['flat/recommended'].map(config => ({\n ...config,\n name: `integrations/oxlint${config.name ? `/${config.name}` : ''}`\n }))\n})\n"],"mappings":"AAEA,SAAS,kBAAkB,mBAAmB;AAWvC,MAAM,SAAyD,iBAAiB,UAAU,YAAY;AAC3G,QAAM,eAAe,MAAM,YAA0B,sBAAsB;AAE3E,SAAO,aAAa,QAAQ,kBAAkB,EAAE,IAAI,aAAW;AAAA,IAC7D,GAAG;AAAA,IACH,MAAM,sBAAsB,OAAO,OAAO,IAAI,OAAO,IAAI,KAAK,EAAE;AAAA,EAClE,EAAE;AACJ,CAAC;","names":[]}
|
|
@@ -14,7 +14,6 @@ const unicorn = defineLazyConfig("unicorn", async () => {
|
|
|
14
14
|
"unicorn/consistent-destructuring": "warn",
|
|
15
15
|
"unicorn/consistent-function-scoping": "warn",
|
|
16
16
|
"unicorn/no-abusive-eslint-disable": "warn",
|
|
17
|
-
"unicorn/no-array-for-each": "warn",
|
|
18
17
|
"unicorn/no-for-loop": "warn",
|
|
19
18
|
"unicorn/no-lonely-if": "warn",
|
|
20
19
|
"unicorn/no-negated-condition": "warn",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/extensions/unicorn.ts"],"sourcesContent":["import { GLOB_JS_TS } from '@santi020k/eslint-config-core'\n\nimport type { TSESLint } from '@typescript-eslint/utils'\nimport type PluginUnicorn from 'eslint-plugin-unicorn'\n\nimport { defineLazyConfig, loadDefault } from '../lazy.js'\n\n/**\n * Unicorn ESLint configuration\n * Modern JavaScript best practices from eslint-plugin-unicorn\n */\nexport const unicorn: () => Promise<TSESLint.FlatConfig.ConfigArray> = defineLazyConfig('unicorn', async () => {\n const pluginUnicorn = await loadDefault<typeof PluginUnicorn>('eslint-plugin-unicorn')\n\n return [\n {\n files: GLOB_JS_TS,\n name: 'eslint-config/unicorn',\n plugins: {\n unicorn: pluginUnicorn\n },\n rules: {\n 'unicorn/catch-error-name': 'warn',\n 'unicorn/consistent-destructuring': 'warn',\n 'unicorn/consistent-function-scoping': 'warn',\n 'unicorn/no-abusive-eslint-disable': 'warn',\n 'unicorn/no-
|
|
1
|
+
{"version":3,"sources":["../../src/extensions/unicorn.ts"],"sourcesContent":["import { GLOB_JS_TS } from '@santi020k/eslint-config-core'\n\nimport type { TSESLint } from '@typescript-eslint/utils'\nimport type PluginUnicorn from 'eslint-plugin-unicorn'\n\nimport { defineLazyConfig, loadDefault } from '../lazy.js'\n\n/**\n * Unicorn ESLint configuration\n * Modern JavaScript best practices from eslint-plugin-unicorn\n */\nexport const unicorn: () => Promise<TSESLint.FlatConfig.ConfigArray> = defineLazyConfig('unicorn', async () => {\n const pluginUnicorn = await loadDefault<typeof PluginUnicorn>('eslint-plugin-unicorn')\n\n return [\n {\n files: GLOB_JS_TS,\n name: 'eslint-config/unicorn',\n plugins: {\n unicorn: pluginUnicorn\n },\n rules: {\n 'unicorn/catch-error-name': 'warn',\n 'unicorn/consistent-destructuring': 'warn',\n 'unicorn/consistent-function-scoping': 'warn',\n 'unicorn/no-abusive-eslint-disable': 'warn',\n 'unicorn/no-for-loop': 'warn',\n 'unicorn/no-lonely-if': 'warn',\n 'unicorn/no-negated-condition': 'warn',\n 'unicorn/no-typeof-undefined': 'warn',\n 'unicorn/no-useless-spread': 'warn',\n 'unicorn/no-useless-undefined': 'warn',\n 'unicorn/prefer-array-find': 'warn',\n 'unicorn/prefer-array-flat': 'warn',\n 'unicorn/prefer-array-flat-map': 'warn',\n 'unicorn/prefer-array-some': 'warn',\n 'unicorn/prefer-includes': 'warn',\n 'unicorn/prefer-logical-operator-over-ternary': 'warn',\n 'unicorn/prefer-number-properties': 'warn',\n 'unicorn/prefer-optional-catch-binding': 'warn',\n 'unicorn/prefer-spread': 'warn',\n 'unicorn/prefer-string-replace-all': 'warn',\n 'unicorn/prefer-string-slice': 'warn',\n 'unicorn/prefer-string-starts-ends-with': 'warn',\n 'unicorn/prefer-string-trim-start-end': 'warn',\n 'unicorn/prefer-switch': 'warn',\n 'unicorn/prefer-ternary': 'warn',\n 'unicorn/throw-new-error': 'warn'\n }\n }\n ]\n})\n"],"mappings":"AAAA,SAAS,kBAAkB;AAK3B,SAAS,kBAAkB,mBAAmB;AAMvC,MAAM,UAA0D,iBAAiB,WAAW,YAAY;AAC7G,QAAM,gBAAgB,MAAM,YAAkC,uBAAuB;AAErF,SAAO;AAAA,IACL;AAAA,MACE,OAAO;AAAA,MACP,MAAM;AAAA,MACN,SAAS;AAAA,QACP,SAAS;AAAA,MACX;AAAA,MACA,OAAO;AAAA,QACL,4BAA4B;AAAA,QAC5B,oCAAoC;AAAA,QACpC,uCAAuC;AAAA,QACvC,qCAAqC;AAAA,QACrC,uBAAuB;AAAA,QACvB,wBAAwB;AAAA,QACxB,gCAAgC;AAAA,QAChC,+BAA+B;AAAA,QAC/B,6BAA6B;AAAA,QAC7B,gCAAgC;AAAA,QAChC,6BAA6B;AAAA,QAC7B,6BAA6B;AAAA,QAC7B,iCAAiC;AAAA,QACjC,6BAA6B;AAAA,QAC7B,2BAA2B;AAAA,QAC3B,gDAAgD;AAAA,QAChD,oCAAoC;AAAA,QACpC,yCAAyC;AAAA,QACzC,yBAAyB;AAAA,QACzB,qCAAqC;AAAA,QACrC,+BAA+B;AAAA,QAC/B,0CAA0C;AAAA,QAC1C,wCAAwC;AAAA,QACxC,yBAAyB;AAAA,QACzB,0BAA0B;AAAA,QAC1B,2BAA2B;AAAA,MAC7B;AAAA,IACF;AAAA,EACF;AACF,CAAC;","names":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/formats/jsonc.ts"],"sourcesContent":["import type { TSESLint } from '@typescript-eslint/utils'\nimport type PluginJsonc from 'eslint-plugin-jsonc'\n\nimport { defineLazyConfig, loadDefault } from '../lazy.js'\n\n/**\n * JSON/JSONC ESLint configuration\n * Provides rules for JSON file linting and package.json key sorting\n */\nexport const jsonc: () => Promise<TSESLint.FlatConfig.ConfigArray> = defineLazyConfig('jsonc', async () => {\n const pluginJsonc = await loadDefault<typeof PluginJsonc>('eslint-plugin-jsonc')\n\n const recommended = (pluginJsonc.configs['flat/recommended-with-jsonc'] as TSESLint.FlatConfig.ConfigArray).map(
|
|
1
|
+
{"version":3,"sources":["../../src/formats/jsonc.ts"],"sourcesContent":["import type { TSESLint } from '@typescript-eslint/utils'\nimport type PluginJsonc from 'eslint-plugin-jsonc'\n\nimport { defineLazyConfig, loadDefault } from '../lazy.js'\n\n/**\n * JSON/JSONC ESLint configuration\n * Provides rules for JSON file linting and package.json key sorting\n */\nexport const jsonc: () => Promise<TSESLint.FlatConfig.ConfigArray> = defineLazyConfig('jsonc', async () => {\n const pluginJsonc = await loadDefault<typeof PluginJsonc>('eslint-plugin-jsonc')\n\n const recommended = (pluginJsonc.configs['flat/recommended-with-jsonc'] as TSESLint.FlatConfig.ConfigArray).map(config => {\n if (config.rules && !config.files) {\n return {\n ...config,\n files: [\n '*.json',\n '**/*.json',\n '*.json5',\n '**/*.json5',\n '*.jsonc',\n '**/*.jsonc'\n ]\n }\n }\n\n return config\n })\n\n return [\n ...recommended,\n {\n files: ['**/package.json'],\n name: 'integrations/jsonc/sorting',\n rules: {\n 'jsonc/sort-keys': ['warn', {\n order: [\n 'name',\n 'version',\n 'private',\n 'publishConfig',\n 'description',\n 'type',\n 'main',\n 'module',\n 'types',\n 'exports',\n 'files',\n 'bin',\n 'scripts',\n 'dependencies',\n 'devDependencies',\n 'peerDependencies',\n 'peerDependenciesMeta',\n 'engines',\n 'packageManager',\n 'repository',\n 'homepage',\n 'bugs',\n 'keywords',\n 'author',\n 'license'\n ],\n pathPattern: '^$'\n }]\n }\n },\n {\n files: ['**/tsconfig.json', '**/tsconfig.*.json'],\n name: 'integrations/jsonc/tsconfig-sorting',\n rules: {\n 'jsonc/sort-keys': ['warn', {\n order: ['extends', 'compilerOptions', 'include', 'exclude', 'references'],\n pathPattern: '^$'\n }]\n }\n }\n ]\n})\n"],"mappings":"AAGA,SAAS,kBAAkB,mBAAmB;AAMvC,MAAM,QAAwD,iBAAiB,SAAS,YAAY;AACzG,QAAM,cAAc,MAAM,YAAgC,qBAAqB;AAE/E,QAAM,cAAe,YAAY,QAAQ,6BAA6B,EAAsC,IAAI,YAAU;AACxH,QAAI,OAAO,SAAS,CAAC,OAAO,OAAO;AACjC,aAAO;AAAA,QACL,GAAG;AAAA,QACH,OAAO;AAAA,UACL;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,QACF;AAAA,MACF;AAAA,IACF;AAEA,WAAO;AAAA,EACT,CAAC;AAED,SAAO;AAAA,IACL,GAAG;AAAA,IACH;AAAA,MACE,OAAO,CAAC,iBAAiB;AAAA,MACzB,MAAM;AAAA,MACN,OAAO;AAAA,QACL,mBAAmB,CAAC,QAAQ;AAAA,UAC1B,OAAO;AAAA,YACL;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,UACF;AAAA,UACA,aAAa;AAAA,QACf,CAAC;AAAA,MACH;AAAA,IACF;AAAA,IACA;AAAA,MACE,OAAO,CAAC,oBAAoB,oBAAoB;AAAA,MAChD,MAAM;AAAA,MACN,OAAO;AAAA,QACL,mBAAmB,CAAC,QAAQ;AAAA,UAC1B,OAAO,CAAC,WAAW,mBAAmB,WAAW,WAAW,YAAY;AAAA,UACxE,aAAa;AAAA,QACf,CAAC;AAAA,MACH;AAAA,IACF;AAAA,EACF;AACF,CAAC;","names":[]}
|
package/dist/formats/toml.js
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { defineLazyConfig, loadDefault } from "../lazy.js";
|
|
2
2
|
const toml = defineLazyConfig("toml", async () => {
|
|
3
3
|
const pluginToml = await loadDefault("eslint-plugin-toml");
|
|
4
|
-
return [
|
|
5
|
-
...
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}))
|
|
9
|
-
];
|
|
4
|
+
return pluginToml.configs["flat/recommended"].map((config, index) => ({
|
|
5
|
+
...config,
|
|
6
|
+
name: config.name ?? `integrations/toml/${index}`
|
|
7
|
+
}));
|
|
10
8
|
});
|
|
11
9
|
export {
|
|
12
10
|
toml
|
package/dist/formats/toml.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/formats/toml.ts"],"sourcesContent":["import type { TSESLint } from '@typescript-eslint/utils'\nimport type PluginToml from 'eslint-plugin-toml'\n\nimport { defineLazyConfig, loadDefault } from '../lazy.js'\n\n/**\n * TOML ESLint configuration\n * Provides rules for TOML file linting\n */\nexport const toml: () => Promise<TSESLint.FlatConfig.ConfigArray> = defineLazyConfig('toml', async () => {\n const pluginToml = await loadDefault<typeof PluginToml>('eslint-plugin-toml')\n\n return
|
|
1
|
+
{"version":3,"sources":["../../src/formats/toml.ts"],"sourcesContent":["import type { TSESLint } from '@typescript-eslint/utils'\nimport type PluginToml from 'eslint-plugin-toml'\n\nimport { defineLazyConfig, loadDefault } from '../lazy.js'\n\n/**\n * TOML ESLint configuration\n * Provides rules for TOML file linting\n */\nexport const toml: () => Promise<TSESLint.FlatConfig.ConfigArray> = defineLazyConfig('toml', async () => {\n const pluginToml = await loadDefault<typeof PluginToml>('eslint-plugin-toml')\n\n return (pluginToml.configs['flat/recommended'] as TSESLint.FlatConfig.ConfigArray).map((config, index) => ({\n ...config,\n name: config.name ?? `integrations/toml/${index}`\n }))\n})\n"],"mappings":"AAGA,SAAS,kBAAkB,mBAAmB;AAMvC,MAAM,OAAuD,iBAAiB,QAAQ,YAAY;AACvG,QAAM,aAAa,MAAM,YAA+B,oBAAoB;AAE5E,SAAQ,WAAW,QAAQ,kBAAkB,EAAsC,IAAI,CAAC,QAAQ,WAAW;AAAA,IACzG,GAAG;AAAA,IACH,MAAM,OAAO,QAAQ,qBAAqB,KAAK;AAAA,EACjD,EAAE;AACJ,CAAC;","names":[]}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { getIntegrationConfigs, getPrettierConfig } from './compose.js';
|
|
2
2
|
export { a11y } from './extensions/a11y.js';
|
|
3
|
+
export { astroDoctor } from './extensions/astro-doctor.js';
|
|
3
4
|
export { bestPractices } from './extensions/best-practices.js';
|
|
4
5
|
export { biome } from './extensions/biome.js';
|
|
5
6
|
export { boundaries } from './extensions/boundaries.js';
|
|
@@ -40,8 +41,8 @@ export { tanstackQuery, tanstackRouter } from './libraries/tanstack.js';
|
|
|
40
41
|
export { turbo } from './libraries/turbo.js';
|
|
41
42
|
export { zod } from './libraries/zod.js';
|
|
42
43
|
export { cypress } from './testing/cypress.js';
|
|
43
|
-
export { jestDom } from './testing/jest-dom.js';
|
|
44
44
|
export { jest } from './testing/jest.js';
|
|
45
|
+
export { jestDom } from './testing/jest-dom.js';
|
|
45
46
|
export { playwright } from './testing/playwright.js';
|
|
46
47
|
export { testingLibrary } from './testing/testing-library.js';
|
|
47
48
|
export { vitest } from './testing/vitest.js';
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { getIntegrationConfigs, getPrettierConfig } from "./compose.js";
|
|
2
2
|
export * from "./extensions/a11y.js";
|
|
3
|
+
import { astroDoctor } from "./extensions/astro-doctor.js";
|
|
3
4
|
export * from "./extensions/best-practices.js";
|
|
4
5
|
export * from "./extensions/biome.js";
|
|
5
6
|
import { boundaries } from "./extensions/boundaries.js";
|
|
@@ -40,8 +41,8 @@ import { tanstackQuery, tanstackRouter } from "./libraries/tanstack.js";
|
|
|
40
41
|
export * from "./libraries/turbo.js";
|
|
41
42
|
export * from "./libraries/zod.js";
|
|
42
43
|
import { cypress } from "./testing/cypress.js";
|
|
43
|
-
import { jestDom } from "./testing/jest-dom.js";
|
|
44
44
|
import { jest } from "./testing/jest.js";
|
|
45
|
+
import { jestDom } from "./testing/jest-dom.js";
|
|
45
46
|
import { playwright } from "./testing/playwright.js";
|
|
46
47
|
import { testingLibrary } from "./testing/testing-library.js";
|
|
47
48
|
import { vitest } from "./testing/vitest.js";
|
|
@@ -56,6 +57,7 @@ import { prettier } from "./tools/prettier.js";
|
|
|
56
57
|
import { swagger } from "./tools/swagger.js";
|
|
57
58
|
export {
|
|
58
59
|
aiSdk,
|
|
60
|
+
astroDoctor,
|
|
59
61
|
autogen,
|
|
60
62
|
boundaries,
|
|
61
63
|
command,
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["// Re-export all integrations from categorized subdirectories\nexport { getIntegrationConfigs, getPrettierConfig } from './compose.js'\n\n// Extensions\nexport * from './extensions/a11y.js'\nexport * from './extensions/best-practices.js'\nexport * from './extensions/biome.js'\nexport { boundaries } from './extensions/boundaries.js'\nexport { compat } from './extensions/compat.js'\nexport { deMorgan } from './extensions/de-morgan.js'\nexport { depend } from './extensions/depend.js'\nexport { noOnlyTests } from './extensions/no-only-tests.js'\nexport { node } from './extensions/node.js'\nexport { oxlint } from './extensions/oxlint.js'\nexport { perfectionist } from './extensions/perfectionist.js'\nexport { regexp } from './extensions/regexp.js'\nexport { security } from './extensions/security.js'\nexport { sonarjs } from './extensions/sonarjs.js'\nexport { unicorn } from './extensions/unicorn.js'\n// Formats\nexport { css } from './formats/css.js'\nexport { graphql } from './formats/graphql.js'\nexport { html } from './formats/html.js'\nexport { jsonc } from './formats/jsonc.js'\nexport { markdown } from './formats/markdown.js'\nexport { mdx } from './formats/mdx.js'\nexport { packageJson } from './formats/package-json.js'\nexport { toml } from './formats/toml.js'\nexport { yaml } from './formats/yaml.js'\nexport { aiSdk } from './libraries/ai.js'\nexport { autogen } from './libraries/autogen.js'\nexport { googleGenAi } from './libraries/google-genai.js'\nexport { i18next } from './libraries/i18next.js'\nexport { langchain } from './libraries/langchain.js'\nexport { llamaIndex } from './libraries/llamaindex.js'\nexport { mastra } from './libraries/mastra.js'\nexport { mcp } from './libraries/mcp.js'\nexport { openAiAgents } from './libraries/openai-agents.js'\n// Libraries\nexport { drizzle, mikroOrm, prisma, sequelize, typeorm } from './libraries/orm.js'\nexport { stencil } from './libraries/stencil.js'\nexport { storybook } from './libraries/storybook.js'\nexport { tailwind } from './libraries/tailwind.js'\nexport { tanstackQuery, tanstackRouter } from './libraries/tanstack.js'\nexport * from './libraries/turbo.js'\nexport * from './libraries/zod.js'\n// Testing\nexport { cypress } from './testing/cypress.js'\nexport {
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["// Re-export all integrations from categorized subdirectories\nexport { getIntegrationConfigs, getPrettierConfig } from './compose.js'\n\n// Extensions\nexport * from './extensions/a11y.js'\nexport { astroDoctor } from './extensions/astro-doctor.js'\nexport * from './extensions/best-practices.js'\nexport * from './extensions/biome.js'\nexport { boundaries } from './extensions/boundaries.js'\nexport { compat } from './extensions/compat.js'\nexport { deMorgan } from './extensions/de-morgan.js'\nexport { depend } from './extensions/depend.js'\nexport { noOnlyTests } from './extensions/no-only-tests.js'\nexport { node } from './extensions/node.js'\nexport { oxlint } from './extensions/oxlint.js'\nexport { perfectionist } from './extensions/perfectionist.js'\nexport { regexp } from './extensions/regexp.js'\nexport { security } from './extensions/security.js'\nexport { sonarjs } from './extensions/sonarjs.js'\nexport { unicorn } from './extensions/unicorn.js'\n// Formats\nexport { css } from './formats/css.js'\nexport { graphql } from './formats/graphql.js'\nexport { html } from './formats/html.js'\nexport { jsonc } from './formats/jsonc.js'\nexport { markdown } from './formats/markdown.js'\nexport { mdx } from './formats/mdx.js'\nexport { packageJson } from './formats/package-json.js'\nexport { toml } from './formats/toml.js'\nexport { yaml } from './formats/yaml.js'\nexport { aiSdk } from './libraries/ai.js'\nexport { autogen } from './libraries/autogen.js'\nexport { googleGenAi } from './libraries/google-genai.js'\nexport { i18next } from './libraries/i18next.js'\nexport { langchain } from './libraries/langchain.js'\nexport { llamaIndex } from './libraries/llamaindex.js'\nexport { mastra } from './libraries/mastra.js'\nexport { mcp } from './libraries/mcp.js'\nexport { openAiAgents } from './libraries/openai-agents.js'\n// Libraries\nexport { drizzle, mikroOrm, prisma, sequelize, typeorm } from './libraries/orm.js'\nexport { stencil } from './libraries/stencil.js'\nexport { storybook } from './libraries/storybook.js'\nexport { tailwind } from './libraries/tailwind.js'\nexport { tanstackQuery, tanstackRouter } from './libraries/tanstack.js'\nexport * from './libraries/turbo.js'\nexport * from './libraries/zod.js'\n// Testing\nexport { cypress } from './testing/cypress.js'\nexport { jest } from './testing/jest.js'\nexport { jestDom } from './testing/jest-dom.js'\nexport { playwright } from './testing/playwright.js'\nexport { testingLibrary } from './testing/testing-library.js'\nexport { vitest } from './testing/vitest.js'\n// Tools\nexport { command } from './tools/command.js'\nexport { cspell } from './tools/cspell.js'\nexport { docker } from './tools/docker.js'\nexport { githubActions } from './tools/github-actions.js'\nexport { jsdoc } from './tools/jsdoc.js'\nexport { nx } from './tools/nx.js'\nexport { pnpm } from './tools/pnpm.js'\nexport { prettier } from './tools/prettier.js'\nexport { swagger } from './tools/swagger.js'\n"],"mappings":"AACA,SAAS,uBAAuB,yBAAyB;AAGzD,cAAc;AACd,SAAS,mBAAmB;AAC5B,cAAc;AACd,cAAc;AACd,SAAS,kBAAkB;AAC3B,SAAS,cAAc;AACvB,SAAS,gBAAgB;AACzB,SAAS,cAAc;AACvB,SAAS,mBAAmB;AAC5B,SAAS,YAAY;AACrB,SAAS,cAAc;AACvB,SAAS,qBAAqB;AAC9B,SAAS,cAAc;AACvB,SAAS,gBAAgB;AACzB,SAAS,eAAe;AACxB,SAAS,eAAe;AAExB,SAAS,WAAW;AACpB,SAAS,eAAe;AACxB,SAAS,YAAY;AACrB,SAAS,aAAa;AACtB,SAAS,gBAAgB;AACzB,SAAS,WAAW;AACpB,SAAS,mBAAmB;AAC5B,SAAS,YAAY;AACrB,SAAS,YAAY;AACrB,SAAS,aAAa;AACtB,SAAS,eAAe;AACxB,SAAS,mBAAmB;AAC5B,SAAS,eAAe;AACxB,SAAS,iBAAiB;AAC1B,SAAS,kBAAkB;AAC3B,SAAS,cAAc;AACvB,SAAS,WAAW;AACpB,SAAS,oBAAoB;AAE7B,SAAS,SAAS,UAAU,QAAQ,WAAW,eAAe;AAC9D,SAAS,eAAe;AACxB,SAAS,iBAAiB;AAC1B,SAAS,gBAAgB;AACzB,SAAS,eAAe,sBAAsB;AAC9C,cAAc;AACd,cAAc;AAEd,SAAS,eAAe;AACxB,SAAS,YAAY;AACrB,SAAS,eAAe;AACxB,SAAS,kBAAkB;AAC3B,SAAS,sBAAsB;AAC/B,SAAS,cAAc;AAEvB,SAAS,eAAe;AACxB,SAAS,cAAc;AACvB,SAAS,cAAc;AACvB,SAAS,qBAAqB;AAC9B,SAAS,aAAa;AACtB,SAAS,UAAU;AACnB,SAAS,YAAY;AACrB,SAAS,gBAAgB;AACzB,SAAS,eAAe;","names":[]}
|
package/dist/lazy.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/lazy.ts"],"sourcesContent":["import { createRequire } from 'node:module'\nimport { pathToFileURL } from 'node:url'\n\nimport type { TSESLint } from '@typescript-eslint/utils'\n\nexport type ConfigWithRules = FlatConfig & { rules?: FlatRules }\n\nexport type FlatParser = NonNullable<FlatConfig['languageOptions']>['parser']\n\nexport type FlatPlugin = NonNullable<FlatConfig['plugins']>[string]\nexport type FlatRules = NonNullable<FlatConfig['rules']>\nexport type PluginWithConfigs<ConfigName extends string = string> = FlatPlugin & {\n configs: Record<ConfigName, ConfigWithRules>\n}\n\ntype ConfigArray = TSESLint.FlatConfig.ConfigArray\n\ntype FlatConfig = TSESLint.FlatConfig.Config\n\nconst getErrorMessage = (error: unknown): string => error instanceof Error ?\n error.message :\n String(error)\n\nconst hasDefaultExport = (module: unknown): module is { default?: unknown } => (\n typeof module === 'object' &&\n module !== null &&\n 'default' in module\n)\n\n// Bypass jiti/bundler transformation of import() to require().\n// Reflect.construct avoids a direct `new Function()` reference (which triggers\n// no-implied-eval) while achieving the same runtime behaviour: the string body\n// is opaque to static analyser so jiti cannot transform it to require().\n\nconst isVitest = typeof process !== 'undefined' && process.env.VITEST\n\n// v8 ignore next 3 -- Reflect.construct branch only runs outside Vitest; not reachable in test suite\nconst dynamicImport: (specifier: string) => Promise<unknown> = isVitest
|
|
1
|
+
{"version":3,"sources":["../src/lazy.ts"],"sourcesContent":["import { createRequire } from 'node:module'\nimport { pathToFileURL } from 'node:url'\n\nimport type { TSESLint } from '@typescript-eslint/utils'\n\nexport type ConfigWithRules = FlatConfig & { rules?: FlatRules }\n\nexport type FlatParser = NonNullable<FlatConfig['languageOptions']>['parser']\n\nexport type FlatPlugin = NonNullable<FlatConfig['plugins']>[string]\nexport type FlatRules = NonNullable<FlatConfig['rules']>\nexport type PluginWithConfigs<ConfigName extends string = string> = FlatPlugin & {\n configs: Record<ConfigName, ConfigWithRules>\n}\n\ntype ConfigArray = TSESLint.FlatConfig.ConfigArray\n\ntype FlatConfig = TSESLint.FlatConfig.Config\n\nconst getErrorMessage = (error: unknown): string => error instanceof Error ?\n error.message :\n String(error)\n\nconst hasDefaultExport = (module: unknown): module is { default?: unknown } => (\n typeof module === 'object' &&\n module !== null &&\n 'default' in module\n)\n\n// Bypass jiti/bundler transformation of import() to require().\n// Reflect.construct avoids a direct `new Function()` reference (which triggers\n// no-implied-eval) while achieving the same runtime behaviour: the string body\n// is opaque to static analyser so jiti cannot transform it to require().\n\nconst isVitest = typeof process !== 'undefined' && process.env.VITEST\n\n// v8 ignore next 3 -- Reflect.construct branch only runs outside Vitest; not reachable in test suite\nconst dynamicImport: (specifier: string) => Promise<unknown> = isVitest ?\n (specifier: string) => import(/* @vite-ignore */ specifier) :\n Reflect.construct(Function, ['specifier', 'return import(specifier)']) as (specifier: string) => Promise<unknown>\n\nconst req = createRequire(import.meta.url)\n\nconst resolveSpecifier = (specifier: string): string => {\n let resolved = specifier\n\n try {\n resolved = pathToFileURL(req.resolve(specifier)).href\n } catch {\n // Ignore and let dynamicImport throw natural error\n }\n\n return resolved\n}\n\nexport const loadDefault = async <T = unknown>(specifier: string): Promise<T> => {\n const module = await dynamicImport(resolveSpecifier(specifier))\n\n if (hasDefaultExport(module)) {\n return (module.default ?? module) as T\n }\n\n return module as T\n}\n\nexport const loadModule = async <T = unknown>(specifier: string): Promise<T> => await dynamicImport(resolveSpecifier(specifier)) as T\n\n/**\n * Keeps optional integrations import-safe for consumers that do not enable them.\n * @param name - The name of the integration\n * @param load - Function to load the configuration\n * @returns A function that resolves the configuration array lazily\n */\nexport const defineLazyConfig = (\n name: string,\n load: () => ConfigArray | Promise<ConfigArray>\n): () => Promise<ConfigArray> => {\n let config: ConfigArray | undefined\n\n return async (): Promise<ConfigArray> => {\n try {\n config ??= await load()\n\n return config\n } catch (error) {\n throw new Error(\n `Unable to load optional ESLint config \"${name}\". ` +\n 'Install the peer dependencies for that integration or remove it from your eslintConfig options. ' +\n `Original error: ${getErrorMessage(error)}`, { cause: error }\n )\n }\n }\n}\n"],"mappings":"AAAA,SAAS,qBAAqB;AAC9B,SAAS,qBAAqB;AAkB9B,MAAM,kBAAkB,CAAC,UAA2B,iBAAiB,QACnE,MAAM,UACN,OAAO,KAAK;AAEd,MAAM,mBAAmB,CAAC,WACxB,OAAO,WAAW,YAClB,WAAW,QACX,aAAa;AAQf,MAAM,WAAW,OAAO,YAAY,eAAe,QAAQ,IAAI;AAG/D,MAAM,gBAAyD,WAC7D,CAAC,cAAsB;AAAA;AAAA,EAA0B;AAAA,IACjD,QAAQ,UAAU,UAAU,CAAC,aAAa,0BAA0B,CAAC;AAEvE,MAAM,MAAM,cAAc,YAAY,GAAG;AAEzC,MAAM,mBAAmB,CAAC,cAA8B;AACtD,MAAI,WAAW;AAEf,MAAI;AACF,eAAW,cAAc,IAAI,QAAQ,SAAS,CAAC,EAAE;AAAA,EACnD,QAAQ;AAAA,EAER;AAEA,SAAO;AACT;AAEO,MAAM,cAAc,OAAoB,cAAkC;AAC/E,QAAM,SAAS,MAAM,cAAc,iBAAiB,SAAS,CAAC;AAE9D,MAAI,iBAAiB,MAAM,GAAG;AAC5B,WAAQ,OAAO,WAAW;AAAA,EAC5B;AAEA,SAAO;AACT;AAEO,MAAM,aAAa,OAAoB,cAAkC,MAAM,cAAc,iBAAiB,SAAS,CAAC;AAQxH,MAAM,mBAAmB,CAC9B,MACA,SAC+B;AAC/B,MAAI;AAEJ,SAAO,YAAkC;AACvC,QAAI;AACF,iBAAW,MAAM,KAAK;AAEtB,aAAO;AAAA,IACT,SAAS,OAAO;AACd,YAAM,IAAI;AAAA,QACR,0CAA0C,IAAI,sHAE3B,gBAAgB,KAAK,CAAC;AAAA,QAAI,EAAE,OAAO,MAAM;AAAA,MAC9D;AAAA,IACF;AAAA,EACF;AACF;","names":[]}
|
package/dist/testing/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { cypress } from './cypress.js';
|
|
2
|
-
export { jestDom } from './jest-dom.js';
|
|
3
2
|
export { jest } from './jest.js';
|
|
3
|
+
export { jestDom } from './jest-dom.js';
|
|
4
4
|
export { playwright } from './playwright.js';
|
|
5
5
|
export { testingLibrary } from './testing-library.js';
|
|
6
6
|
export { vitest } from './vitest.js';
|
package/dist/testing/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { cypress } from "./cypress.js";
|
|
2
|
-
import { jestDom } from "./jest-dom.js";
|
|
3
2
|
import { jest } from "./jest.js";
|
|
3
|
+
import { jestDom } from "./jest-dom.js";
|
|
4
4
|
import { playwright } from "./playwright.js";
|
|
5
5
|
import { testingLibrary } from "./testing-library.js";
|
|
6
6
|
import { vitest } from "./vitest.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/testing/index.ts"],"sourcesContent":["export { cypress } from './cypress.js'\nexport {
|
|
1
|
+
{"version":3,"sources":["../../src/testing/index.ts"],"sourcesContent":["export { cypress } from './cypress.js'\nexport { jest } from './jest.js'\nexport { jestDom } from './jest-dom.js'\nexport { playwright } from './playwright.js'\nexport { testingLibrary } from './testing-library.js'\nexport { vitest } from './vitest.js'\n"],"mappings":"AAAA,SAAS,eAAe;AACxB,SAAS,YAAY;AACrB,SAAS,eAAe;AACxB,SAAS,kBAAkB;AAC3B,SAAS,sBAAsB;AAC/B,SAAS,cAAc;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@santi020k/eslint-config-integrations",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"provenance": true
|
|
@@ -42,76 +42,100 @@
|
|
|
42
42
|
],
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@cspell/eslint-plugin": "^10.0.1",
|
|
45
|
-
"@darraghor/eslint-plugin-nestjs-typed": "^7.2.
|
|
45
|
+
"@darraghor/eslint-plugin-nestjs-typed": "^7.2.9",
|
|
46
46
|
"@eslint/compat": "^2.1.0",
|
|
47
|
-
"@eslint/css": "^1.
|
|
48
|
-
"@eslint/markdown": "^8.0.
|
|
47
|
+
"@eslint/css": "^1.4.0",
|
|
48
|
+
"@eslint/markdown": "^8.0.3",
|
|
49
49
|
"@graphql-eslint/eslint-plugin": "^4.4.0",
|
|
50
|
-
"@html-eslint/eslint-plugin": "^0.
|
|
51
|
-
"@html-eslint/parser": "^0.
|
|
50
|
+
"@html-eslint/eslint-plugin": "^0.64.0",
|
|
51
|
+
"@html-eslint/parser": "^0.64.0",
|
|
52
52
|
"@stencil-community/eslint-plugin": "^0.10.0",
|
|
53
|
-
"@tanstack/eslint-plugin-query": "^5.101.
|
|
53
|
+
"@tanstack/eslint-plugin-query": "^5.101.4",
|
|
54
54
|
"@tanstack/eslint-plugin-router": "^1.162.0",
|
|
55
|
-
"@typescript-eslint/utils": "^8.
|
|
56
|
-
"@vitest/eslint-plugin": "^1.6.
|
|
55
|
+
"@typescript-eslint/utils": "^8.65.0",
|
|
56
|
+
"@vitest/eslint-plugin": "^1.6.24",
|
|
57
57
|
"eslint-config-biome": "^2.1.3",
|
|
58
58
|
"eslint-config-prettier": "^10.1.8",
|
|
59
|
-
"eslint-plugin-better-tailwindcss": "^4.
|
|
60
|
-
"eslint-plugin-command": "^3.5.
|
|
59
|
+
"eslint-plugin-better-tailwindcss": "^4.7.0",
|
|
60
|
+
"eslint-plugin-command": "^3.5.3",
|
|
61
61
|
"eslint-plugin-compat": "^7.0.2",
|
|
62
|
-
"eslint-plugin-cypress": "^6.4.
|
|
63
|
-
"eslint-plugin-de-morgan": "^2.1.
|
|
62
|
+
"eslint-plugin-cypress": "^6.4.3",
|
|
63
|
+
"eslint-plugin-de-morgan": "^2.1.3",
|
|
64
64
|
"eslint-plugin-depend": "^1.5.0",
|
|
65
|
-
"eslint-plugin-i18next": "^6.1.
|
|
66
|
-
"eslint-plugin-jest": "^29.
|
|
65
|
+
"eslint-plugin-i18next": "^6.1.5",
|
|
66
|
+
"eslint-plugin-jest": "^29.16.0",
|
|
67
67
|
"eslint-plugin-jest-dom": "^5.5.0",
|
|
68
|
-
"eslint-plugin-jsdoc": "^63.
|
|
69
|
-
"eslint-plugin-jsonc": "^3.
|
|
68
|
+
"eslint-plugin-jsdoc": "^63.2.2",
|
|
69
|
+
"eslint-plugin-jsonc": "^3.3.0",
|
|
70
70
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
71
71
|
"eslint-plugin-mdx": "^3.8.1",
|
|
72
|
-
"eslint-plugin-n": "^18.
|
|
72
|
+
"eslint-plugin-n": "^18.2.2",
|
|
73
73
|
"eslint-plugin-no-only-tests": "^3.4.0",
|
|
74
|
-
"eslint-plugin-oxlint": "^1.
|
|
75
|
-
"eslint-plugin-package-json": "^1.
|
|
76
|
-
"eslint-plugin-perfectionist": "^5.
|
|
77
|
-
"eslint-plugin-playwright": "^2.10.
|
|
78
|
-
"eslint-plugin-pnpm": "^1.
|
|
79
|
-
"eslint-plugin-regexp": "^3.1.
|
|
74
|
+
"eslint-plugin-oxlint": "^1.75.0",
|
|
75
|
+
"eslint-plugin-package-json": "^1.6.1",
|
|
76
|
+
"eslint-plugin-perfectionist": "^5.10.0",
|
|
77
|
+
"eslint-plugin-playwright": "^2.10.5",
|
|
78
|
+
"eslint-plugin-pnpm": "^1.7.0",
|
|
79
|
+
"eslint-plugin-regexp": "^3.1.1",
|
|
80
80
|
"eslint-plugin-security": "^4.0.1",
|
|
81
|
-
"eslint-plugin-sonarjs": "^4.0
|
|
82
|
-
"eslint-plugin-storybook": "^10.4
|
|
81
|
+
"eslint-plugin-sonarjs": "^4.2.0",
|
|
82
|
+
"eslint-plugin-storybook": "^10.5.4",
|
|
83
83
|
"eslint-plugin-testing-library": "^7.16.2",
|
|
84
|
-
"eslint-plugin-toml": "^1.
|
|
84
|
+
"eslint-plugin-toml": "^1.5.0",
|
|
85
85
|
"eslint-plugin-tsdoc": "^0.5.2",
|
|
86
|
-
"eslint-plugin-turbo": "^2.
|
|
87
|
-
"eslint-plugin-unicorn": "^
|
|
88
|
-
"eslint-plugin-vercel-ai-security": "^1.3.
|
|
86
|
+
"eslint-plugin-turbo": "^2.10.6",
|
|
87
|
+
"eslint-plugin-unicorn": "^72.0.0",
|
|
88
|
+
"eslint-plugin-vercel-ai-security": "^1.3.7",
|
|
89
89
|
"eslint-plugin-vuejs-accessibility": "^2.5.0",
|
|
90
|
-
"eslint-plugin-yml": "^3.
|
|
91
|
-
"eslint-plugin-zod": "^4.
|
|
92
|
-
"globals": "^17.
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
"
|
|
98
|
-
"@santi020k/eslint-config-core": "2.1.1"
|
|
90
|
+
"eslint-plugin-yml": "^3.6.0",
|
|
91
|
+
"eslint-plugin-zod": "^4.8.0",
|
|
92
|
+
"globals": "^17.7.0",
|
|
93
|
+
"typescript-eslint": "^8.65.0",
|
|
94
|
+
"@santi020k/eslint-config-core": "3.0.0"
|
|
95
|
+
},
|
|
96
|
+
"optionalDependencies": {
|
|
97
|
+
"@santi020k/eslint-plugin-astro-doctor": "^1.0.4"
|
|
99
98
|
},
|
|
100
99
|
"devDependencies": {
|
|
101
100
|
"@types/eslint-plugin-jsx-a11y": "^6.10.1",
|
|
102
|
-
"@types/node": "^26.
|
|
101
|
+
"@types/node": "^26.1.1",
|
|
103
102
|
"eslint": "^10.0.0",
|
|
104
|
-
"
|
|
103
|
+
"graphql": "^16.14.2",
|
|
104
|
+
"oxlint": "^1.75.0",
|
|
105
|
+
"publint": "^0.3.22",
|
|
106
|
+
"storybook": "^10.5.4",
|
|
107
|
+
"tailwindcss": "^4.3.3",
|
|
105
108
|
"tsup": "^8.5.1",
|
|
106
|
-
"typescript": "^6.0.
|
|
109
|
+
"typescript": "^6.0.2",
|
|
110
|
+
"zod": "^4.4.3"
|
|
107
111
|
},
|
|
108
112
|
"peerDependencies": {
|
|
109
113
|
"eslint": "^10.0.0",
|
|
110
|
-
"
|
|
114
|
+
"graphql": "^16.0.0",
|
|
115
|
+
"oxlint": "^1.0.0",
|
|
116
|
+
"storybook": "^10.0.0",
|
|
117
|
+
"tailwindcss": "^3.3.0 || ^4.1.0",
|
|
118
|
+
"typescript": ">=5.0.0",
|
|
119
|
+
"zod": "^4.0.0"
|
|
111
120
|
},
|
|
112
121
|
"peerDependenciesMeta": {
|
|
122
|
+
"graphql": {
|
|
123
|
+
"optional": true
|
|
124
|
+
},
|
|
125
|
+
"oxlint": {
|
|
126
|
+
"optional": true
|
|
127
|
+
},
|
|
128
|
+
"storybook": {
|
|
129
|
+
"optional": true
|
|
130
|
+
},
|
|
131
|
+
"tailwindcss": {
|
|
132
|
+
"optional": true
|
|
133
|
+
},
|
|
113
134
|
"typescript": {
|
|
114
135
|
"optional": true
|
|
136
|
+
},
|
|
137
|
+
"zod": {
|
|
138
|
+
"optional": true
|
|
115
139
|
}
|
|
116
140
|
},
|
|
117
141
|
"engines": {
|