@santi020k/eslint-config-integrations 2.0.0-beta.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/LICENSE +21 -0
- package/README.md +11 -0
- package/dist/compose.d.ts +21 -0
- package/dist/compose.js +137 -0
- package/dist/compose.js.map +1 -0
- package/dist/extensions/a11y.d.ts +9 -0
- package/dist/extensions/a11y.js +25 -0
- package/dist/extensions/a11y.js.map +1 -0
- package/dist/extensions/best-practices.d.ts +16 -0
- package/dist/extensions/best-practices.js +27 -0
- package/dist/extensions/best-practices.js.map +1 -0
- package/dist/extensions/biome.d.ts +9 -0
- package/dist/extensions/biome.js +18 -0
- package/dist/extensions/biome.js.map +1 -0
- package/dist/extensions/boundaries.d.ts +12 -0
- package/dist/extensions/boundaries.js +40 -0
- package/dist/extensions/boundaries.js.map +1 -0
- package/dist/extensions/compat.d.ts +9 -0
- package/dist/extensions/compat.js +16 -0
- package/dist/extensions/compat.js.map +1 -0
- package/dist/extensions/de-morgan.d.ts +9 -0
- package/dist/extensions/de-morgan.js +16 -0
- package/dist/extensions/de-morgan.js.map +1 -0
- package/dist/extensions/depend.d.ts +10 -0
- package/dist/extensions/depend.js +16 -0
- package/dist/extensions/depend.js.map +1 -0
- package/dist/extensions/index.d.ts +16 -0
- package/dist/extensions/index.js +33 -0
- package/dist/extensions/index.js.map +1 -0
- package/dist/extensions/no-only-tests.d.ts +9 -0
- package/dist/extensions/no-only-tests.js +21 -0
- package/dist/extensions/no-only-tests.js.map +1 -0
- package/dist/extensions/node.d.ts +11 -0
- package/dist/extensions/node.js +25 -0
- package/dist/extensions/node.js.map +1 -0
- package/dist/extensions/oxlint.d.ts +10 -0
- package/dist/extensions/oxlint.js +14 -0
- package/dist/extensions/oxlint.js.map +1 -0
- package/dist/extensions/perfectionist.d.ts +9 -0
- package/dist/extensions/perfectionist.js +25 -0
- package/dist/extensions/perfectionist.js.map +1 -0
- package/dist/extensions/regexp.d.ts +10 -0
- package/dist/extensions/regexp.js +28 -0
- package/dist/extensions/regexp.js.map +1 -0
- package/dist/extensions/security.d.ts +9 -0
- package/dist/extensions/security.js +21 -0
- package/dist/extensions/security.js.map +1 -0
- package/dist/extensions/sonarjs.d.ts +5 -0
- package/dist/extensions/sonarjs.js +16 -0
- package/dist/extensions/sonarjs.js.map +1 -0
- package/dist/extensions/unicorn.d.ts +9 -0
- package/dist/extensions/unicorn.js +47 -0
- package/dist/extensions/unicorn.js.map +1 -0
- package/dist/formats/css.d.ts +9 -0
- package/dist/formats/css.js +21 -0
- package/dist/formats/css.js.map +1 -0
- package/dist/formats/graphql.d.ts +9 -0
- package/dist/formats/graphql.js +41 -0
- package/dist/formats/graphql.js.map +1 -0
- package/dist/formats/html.d.ts +9 -0
- package/dist/formats/html.js +29 -0
- package/dist/formats/html.js.map +1 -0
- package/dist/formats/index.d.ts +10 -0
- package/dist/formats/index.js +21 -0
- package/dist/formats/index.js.map +1 -0
- package/dist/formats/jsonc.d.ts +9 -0
- package/dist/formats/jsonc.js +73 -0
- package/dist/formats/jsonc.js.map +1 -0
- package/dist/formats/markdown.d.ts +9 -0
- package/dist/formats/markdown.js +73 -0
- package/dist/formats/markdown.js.map +1 -0
- package/dist/formats/mdx.d.ts +9 -0
- package/dist/formats/mdx.js +55 -0
- package/dist/formats/mdx.js.map +1 -0
- package/dist/formats/package-json.d.ts +9 -0
- package/dist/formats/package-json.js +16 -0
- package/dist/formats/package-json.js.map +1 -0
- package/dist/formats/toml.d.ts +9 -0
- package/dist/formats/toml.js +14 -0
- package/dist/formats/toml.js.map +1 -0
- package/dist/formats/yaml.d.ts +9 -0
- package/dist/formats/yaml.js +28 -0
- package/dist/formats/yaml.js.map +1 -0
- package/dist/index.d.ts +57 -0
- package/dist/index.js +114 -0
- package/dist/index.js.map +1 -0
- package/dist/lazy.d.ts +24 -0
- package/dist/lazy.js +46 -0
- package/dist/lazy.js.map +1 -0
- package/dist/libraries/ai.d.ts +8 -0
- package/dist/libraries/ai.js +29 -0
- package/dist/libraries/ai.js.map +1 -0
- package/dist/libraries/autogen.d.ts +8 -0
- package/dist/libraries/autogen.js +24 -0
- package/dist/libraries/autogen.js.map +1 -0
- package/dist/libraries/google-genai.d.ts +8 -0
- package/dist/libraries/google-genai.js +30 -0
- package/dist/libraries/google-genai.js.map +1 -0
- package/dist/libraries/i18next.d.ts +9 -0
- package/dist/libraries/i18next.js +29 -0
- package/dist/libraries/i18next.js.map +1 -0
- package/dist/libraries/index.d.ts +17 -0
- package/dist/libraries/index.js +38 -0
- package/dist/libraries/index.js.map +1 -0
- package/dist/libraries/langchain.d.ts +8 -0
- package/dist/libraries/langchain.js +30 -0
- package/dist/libraries/langchain.js.map +1 -0
- package/dist/libraries/llamaindex.d.ts +8 -0
- package/dist/libraries/llamaindex.js +30 -0
- package/dist/libraries/llamaindex.js.map +1 -0
- package/dist/libraries/mastra.d.ts +8 -0
- package/dist/libraries/mastra.js +30 -0
- package/dist/libraries/mastra.js.map +1 -0
- package/dist/libraries/mcp.d.ts +8 -0
- package/dist/libraries/mcp.js +33 -0
- package/dist/libraries/mcp.js.map +1 -0
- package/dist/libraries/openai-agents.d.ts +8 -0
- package/dist/libraries/openai-agents.js +32 -0
- package/dist/libraries/openai-agents.js.map +1 -0
- package/dist/libraries/orm.d.ts +31 -0
- package/dist/libraries/orm.js +104 -0
- package/dist/libraries/orm.js.map +1 -0
- package/dist/libraries/stencil.d.ts +9 -0
- package/dist/libraries/stencil.js +49 -0
- package/dist/libraries/stencil.js.map +1 -0
- package/dist/libraries/storybook.d.ts +9 -0
- package/dist/libraries/storybook.js +11 -0
- package/dist/libraries/storybook.js.map +1 -0
- package/dist/libraries/tailwind.d.ts +9 -0
- package/dist/libraries/tailwind.js +21 -0
- package/dist/libraries/tailwind.js.map +1 -0
- package/dist/libraries/tanstack.d.ts +12 -0
- package/dist/libraries/tanstack.js +37 -0
- package/dist/libraries/tanstack.js.map +1 -0
- package/dist/libraries/turbo.d.ts +9 -0
- package/dist/libraries/turbo.js +25 -0
- package/dist/libraries/turbo.js.map +1 -0
- package/dist/libraries/zod.d.ts +9 -0
- package/dist/libraries/zod.js +21 -0
- package/dist/libraries/zod.js.map +1 -0
- package/dist/testing/cypress.d.ts +9 -0
- package/dist/testing/cypress.js +26 -0
- package/dist/testing/cypress.js.map +1 -0
- package/dist/testing/index.d.ts +7 -0
- package/dist/testing/index.js +15 -0
- package/dist/testing/index.js.map +1 -0
- package/dist/testing/jest-dom.d.ts +9 -0
- package/dist/testing/jest-dom.js +21 -0
- package/dist/testing/jest-dom.js.map +1 -0
- package/dist/testing/jest.d.ts +9 -0
- package/dist/testing/jest.js +24 -0
- package/dist/testing/jest.js.map +1 -0
- package/dist/testing/playwright.d.ts +9 -0
- package/dist/testing/playwright.js +21 -0
- package/dist/testing/playwright.js.map +1 -0
- package/dist/testing/testing-library.d.ts +9 -0
- package/dist/testing/testing-library.js +34 -0
- package/dist/testing/testing-library.js.map +1 -0
- package/dist/testing/vitest.d.ts +9 -0
- package/dist/testing/vitest.js +57 -0
- package/dist/testing/vitest.js.map +1 -0
- package/dist/tools/command.d.ts +9 -0
- package/dist/tools/command.js +16 -0
- package/dist/tools/command.js.map +1 -0
- package/dist/tools/cspell.d.ts +9 -0
- package/dist/tools/cspell.js +26 -0
- package/dist/tools/cspell.js.map +1 -0
- package/dist/tools/docker.d.ts +10 -0
- package/dist/tools/docker.js +21 -0
- package/dist/tools/docker.js.map +1 -0
- package/dist/tools/github-actions.d.ts +10 -0
- package/dist/tools/github-actions.js +16 -0
- package/dist/tools/github-actions.js.map +1 -0
- package/dist/tools/index.d.ts +10 -0
- package/dist/tools/index.js +21 -0
- package/dist/tools/index.js.map +1 -0
- package/dist/tools/jsdoc.d.ts +9 -0
- package/dist/tools/jsdoc.js +36 -0
- package/dist/tools/jsdoc.js.map +1 -0
- package/dist/tools/nx.d.ts +9 -0
- package/dist/tools/nx.js +18 -0
- package/dist/tools/nx.js.map +1 -0
- package/dist/tools/pnpm.d.ts +10 -0
- package/dist/tools/pnpm.js +12 -0
- package/dist/tools/pnpm.js.map +1 -0
- package/dist/tools/prettier.d.ts +9 -0
- package/dist/tools/prettier.js +14 -0
- package/dist/tools/prettier.js.map +1 -0
- package/dist/tools/swagger.d.ts +9 -0
- package/dist/tools/swagger.js +22 -0
- package/dist/tools/swagger.js.map +1 -0
- package/package.json +136 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { yaml } from "../formats/yaml.js";
|
|
2
|
+
const githubActions = async () => [
|
|
3
|
+
...await yaml(),
|
|
4
|
+
{
|
|
5
|
+
files: [".github/workflows/*.{yml,yaml}", "**/.github/workflows/*.{yml,yaml}"],
|
|
6
|
+
name: "eslint-config-integrations/github-actions",
|
|
7
|
+
rules: {
|
|
8
|
+
"yml/no-empty-mapping-value": "error",
|
|
9
|
+
"yml/no-empty-sequence-entry": "error"
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
];
|
|
13
|
+
export {
|
|
14
|
+
githubActions
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=github-actions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/tools/github-actions.ts"],"sourcesContent":["import type { TSESLint } from '@typescript-eslint/utils'\n\nimport { yaml } from '../formats/yaml.js'\n\n/**\n * GitHub Actions ESLint configuration\n * Lints workflow YAML files with the shared YAML rules and workflow-specific\n * guardrails.\n */\nexport const githubActions = async (): Promise<TSESLint.FlatConfig.ConfigArray> => [\n ...await yaml(),\n {\n files: ['.github/workflows/*.{yml,yaml}', '**/.github/workflows/*.{yml,yaml}'],\n name: 'eslint-config-integrations/github-actions',\n rules: {\n 'yml/no-empty-mapping-value': 'error',\n 'yml/no-empty-sequence-entry': 'error'\n }\n }\n]\n"],"mappings":"AAEA,SAAS,YAAY;AAOd,MAAM,gBAAgB,YAAsD;AAAA,EACjF,GAAG,MAAM,KAAK;AAAA,EACd;AAAA,IACE,OAAO,CAAC,kCAAkC,mCAAmC;AAAA,IAC7E,MAAM;AAAA,IACN,OAAO;AAAA,MACL,8BAA8B;AAAA,MAC9B,+BAA+B;AAAA,IACjC;AAAA,EACF;AACF;","names":[]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { command } from './command.js';
|
|
2
|
+
export { cspell } from './cspell.js';
|
|
3
|
+
export { docker } from './docker.js';
|
|
4
|
+
export { githubActions } from './github-actions.js';
|
|
5
|
+
export { jsdoc } from './jsdoc.js';
|
|
6
|
+
export { nx } from './nx.js';
|
|
7
|
+
export { pnpm } from './pnpm.js';
|
|
8
|
+
export { prettier } from './prettier.js';
|
|
9
|
+
export { swagger } from './swagger.js';
|
|
10
|
+
import '@typescript-eslint/utils';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { command } from "./command.js";
|
|
2
|
+
import { cspell } from "./cspell.js";
|
|
3
|
+
import { docker } from "./docker.js";
|
|
4
|
+
import { githubActions } from "./github-actions.js";
|
|
5
|
+
import { jsdoc } from "./jsdoc.js";
|
|
6
|
+
import { nx } from "./nx.js";
|
|
7
|
+
import { pnpm } from "./pnpm.js";
|
|
8
|
+
import { prettier } from "./prettier.js";
|
|
9
|
+
import { swagger } from "./swagger.js";
|
|
10
|
+
export {
|
|
11
|
+
command,
|
|
12
|
+
cspell,
|
|
13
|
+
docker,
|
|
14
|
+
githubActions,
|
|
15
|
+
jsdoc,
|
|
16
|
+
nx,
|
|
17
|
+
pnpm,
|
|
18
|
+
prettier,
|
|
19
|
+
swagger
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/tools/index.ts"],"sourcesContent":["export { command } from './command.js'\nexport { cspell } from './cspell.js'\nexport { docker } from './docker.js'\nexport { githubActions } from './github-actions.js'\nexport { jsdoc } from './jsdoc.js'\nexport { nx } from './nx.js'\nexport { pnpm } from './pnpm.js'\nexport { prettier } from './prettier.js'\nexport { swagger } from './swagger.js'\n"],"mappings":"AAAA,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":[]}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { GLOB_JS_TS } from "@santi020k/eslint-config-core";
|
|
2
|
+
import { defineLazyConfig, loadDefault } from "../lazy.js";
|
|
3
|
+
const jsdoc = defineLazyConfig("jsdoc", async () => {
|
|
4
|
+
const pluginJsdoc = await loadDefault("eslint-plugin-jsdoc");
|
|
5
|
+
const pluginTsdoc = await loadDefault("eslint-plugin-tsdoc");
|
|
6
|
+
const configs = [
|
|
7
|
+
{
|
|
8
|
+
files: GLOB_JS_TS,
|
|
9
|
+
name: "eslint-config-integrations/jsdoc",
|
|
10
|
+
plugins: {
|
|
11
|
+
jsdoc: pluginJsdoc
|
|
12
|
+
},
|
|
13
|
+
rules: {
|
|
14
|
+
...pluginJsdoc.configs["flat/recommended-error"].rules
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
files: ["**/*.ts", "**/*.tsx", "**/*.mts", "**/*.cts"],
|
|
19
|
+
name: "eslint-config-integrations/tsdoc",
|
|
20
|
+
plugins: {
|
|
21
|
+
tsdoc: pluginTsdoc
|
|
22
|
+
},
|
|
23
|
+
rules: {
|
|
24
|
+
"jsdoc/require-param-type": "off",
|
|
25
|
+
"jsdoc/require-returns": "off",
|
|
26
|
+
"jsdoc/require-returns-type": "off",
|
|
27
|
+
"tsdoc/syntax": "warn"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
];
|
|
31
|
+
return configs;
|
|
32
|
+
});
|
|
33
|
+
export {
|
|
34
|
+
jsdoc
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=jsdoc.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/tools/jsdoc.ts"],"sourcesContent":["import { GLOB_JS_TS } from '@santi020k/eslint-config-core'\n\nimport type { TSESLint } from '@typescript-eslint/utils'\n\nimport { defineLazyConfig, loadDefault, type PluginWithConfigs } from '../lazy.js'\n\n/**\n * JSDoc ESLint configuration\n * Provides rules for TSDoc/JSDoc validation and formatting.\n */\nexport const jsdoc: () => Promise<TSESLint.FlatConfig.ConfigArray> = defineLazyConfig('jsdoc', async () => {\n const pluginJsdoc = await loadDefault<PluginWithConfigs<'flat/recommended-error'>>('eslint-plugin-jsdoc')\n const pluginTsdoc = await loadDefault<{ rules: TSESLint.FlatConfig.Plugin['rules'] }>('eslint-plugin-tsdoc')\n\n const configs: TSESLint.FlatConfig.ConfigArray = [\n {\n files: GLOB_JS_TS,\n name: 'eslint-config-integrations/jsdoc',\n plugins: {\n jsdoc: pluginJsdoc\n },\n rules: {\n ...pluginJsdoc.configs['flat/recommended-error'].rules\n }\n },\n {\n files: ['**/*.ts', '**/*.tsx', '**/*.mts', '**/*.cts'],\n name: 'eslint-config-integrations/tsdoc',\n plugins: {\n tsdoc: pluginTsdoc\n },\n rules: {\n 'jsdoc/require-param-type': 'off',\n 'jsdoc/require-returns': 'off',\n 'jsdoc/require-returns-type': 'off',\n 'tsdoc/syntax': 'warn'\n }\n }\n ]\n\n return configs\n})\n"],"mappings":"AAAA,SAAS,kBAAkB;AAI3B,SAAS,kBAAkB,mBAA2C;AAM/D,MAAM,QAAwD,iBAAiB,SAAS,YAAY;AACzG,QAAM,cAAc,MAAM,YAAyD,qBAAqB;AACxG,QAAM,cAAc,MAAM,YAA4D,qBAAqB;AAE3G,QAAM,UAA2C;AAAA,IAC/C;AAAA,MACE,OAAO;AAAA,MACP,MAAM;AAAA,MACN,SAAS;AAAA,QACP,OAAO;AAAA,MACT;AAAA,MACA,OAAO;AAAA,QACL,GAAG,YAAY,QAAQ,wBAAwB,EAAE;AAAA,MACnD;AAAA,IACF;AAAA,IACA;AAAA,MACE,OAAO,CAAC,WAAW,YAAY,YAAY,UAAU;AAAA,MACrD,MAAM;AAAA,MACN,SAAS;AAAA,QACP,OAAO;AAAA,MACT;AAAA,MACA,OAAO;AAAA,QACL,4BAA4B;AAAA,QAC5B,yBAAyB;AAAA,QACzB,8BAA8B;AAAA,QAC9B,gBAAgB;AAAA,MAClB;AAAA,IACF;AAAA,EACF;AAEA,SAAO;AACT,CAAC;","names":[]}
|
package/dist/tools/nx.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsonc } from "../formats/jsonc.js";
|
|
2
|
+
const nx = async () => [
|
|
3
|
+
...await jsonc(),
|
|
4
|
+
{
|
|
5
|
+
files: ["**/nx.json", "**/project.json"],
|
|
6
|
+
name: "eslint-config-integrations/nx",
|
|
7
|
+
rules: {
|
|
8
|
+
"jsonc/sort-keys": ["warn", {
|
|
9
|
+
order: ["extends", "npmScope", "affected", "tasksRunnerOptions", "targetDefaults", "namedInputs", "generators", "plugins"],
|
|
10
|
+
pathPattern: "^$"
|
|
11
|
+
}]
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
];
|
|
15
|
+
export {
|
|
16
|
+
nx
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=nx.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/tools/nx.ts"],"sourcesContent":["import type { TSESLint } from '@typescript-eslint/utils'\n\nimport { jsonc } from '../formats/jsonc.js'\n\n/**\n * Nx ESLint configuration\n * Lints Nx workspace JSON/JSONC files using the shared JSONC parser rules.\n */\nexport const nx = async (): Promise<TSESLint.FlatConfig.ConfigArray> => [\n ...await jsonc(),\n {\n files: ['**/nx.json', '**/project.json'],\n name: 'eslint-config-integrations/nx',\n rules: {\n 'jsonc/sort-keys': ['warn', {\n order: ['extends', 'npmScope', 'affected', 'tasksRunnerOptions', 'targetDefaults', 'namedInputs', 'generators', 'plugins'],\n pathPattern: '^$'\n }]\n }\n }\n]\n"],"mappings":"AAEA,SAAS,aAAa;AAMf,MAAM,KAAK,YAAsD;AAAA,EACtE,GAAG,MAAM,MAAM;AAAA,EACf;AAAA,IACE,OAAO,CAAC,cAAc,iBAAiB;AAAA,IACvC,MAAM;AAAA,IACN,OAAO;AAAA,MACL,mBAAmB,CAAC,QAAQ;AAAA,QAC1B,OAAO,CAAC,WAAW,YAAY,YAAY,sBAAsB,kBAAkB,eAAe,cAAc,SAAS;AAAA,QACzH,aAAa;AAAA,MACf,CAAC;AAAA,IACH;AAAA,EACF;AACF;","names":[]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TSESLint } from '@typescript-eslint/utils';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* pnpm tooling ESLint configuration
|
|
5
|
+
* Enforces pnpm catalogs and workspace settings in `package.json` and
|
|
6
|
+
* `pnpm-workspace.yaml` using `eslint-plugin-pnpm`
|
|
7
|
+
*/
|
|
8
|
+
declare const pnpm: () => Promise<TSESLint.FlatConfig.ConfigArray>;
|
|
9
|
+
|
|
10
|
+
export { pnpm };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { defineLazyConfig, loadModule } from "../lazy.js";
|
|
2
|
+
const pnpm = defineLazyConfig("pnpm", async () => {
|
|
3
|
+
const pluginPnpm = await loadModule("eslint-plugin-pnpm");
|
|
4
|
+
return pluginPnpm.configs.recommended.map((config, index) => ({
|
|
5
|
+
...config,
|
|
6
|
+
name: config.name ?? `integrations/pnpm/${index}`
|
|
7
|
+
}));
|
|
8
|
+
});
|
|
9
|
+
export {
|
|
10
|
+
pnpm
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=pnpm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/tools/pnpm.ts"],"sourcesContent":["import type { TSESLint } from '@typescript-eslint/utils'\n\nimport { defineLazyConfig, loadModule } from '../lazy.js'\n\ninterface PnpmPluginModule {\n configs: Record<'json' | 'recommended' | 'yaml', TSESLint.FlatConfig.ConfigArray>\n}\n\n/**\n * pnpm tooling ESLint configuration\n * Enforces pnpm catalogs and workspace settings in `package.json` and\n * `pnpm-workspace.yaml` using `eslint-plugin-pnpm`\n */\nexport const pnpm: () => Promise<TSESLint.FlatConfig.ConfigArray> = defineLazyConfig('pnpm', async () => {\n const pluginPnpm = await loadModule<PnpmPluginModule>('eslint-plugin-pnpm')\n\n return pluginPnpm.configs.recommended.map((config, index) => ({\n ...config,\n name: config.name ?? `integrations/pnpm/${index}`\n }))\n})\n"],"mappings":"AAEA,SAAS,kBAAkB,kBAAkB;AAWtC,MAAM,OAAuD,iBAAiB,QAAQ,YAAY;AACvG,QAAM,aAAa,MAAM,WAA6B,oBAAoB;AAE1E,SAAO,WAAW,QAAQ,YAAY,IAAI,CAAC,QAAQ,WAAW;AAAA,IAC5D,GAAG;AAAA,IACH,MAAM,OAAO,QAAQ,qBAAqB,KAAK;AAAA,EACjD,EAAE;AACJ,CAAC;","names":[]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TSESLint } from '@typescript-eslint/utils';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Prettier interop configuration
|
|
5
|
+
* Disables all ESLint rules that conflict with Prettier formatting
|
|
6
|
+
*/
|
|
7
|
+
declare const prettier: () => Promise<TSESLint.FlatConfig.ConfigArray>;
|
|
8
|
+
|
|
9
|
+
export { prettier };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { defineLazyConfig, loadDefault } from "../lazy.js";
|
|
2
|
+
const prettier = defineLazyConfig("prettier", async () => {
|
|
3
|
+
const eslintConfigPrettier = await loadDefault("eslint-config-prettier");
|
|
4
|
+
return [
|
|
5
|
+
{
|
|
6
|
+
name: "eslint-config/prettier",
|
|
7
|
+
...eslintConfigPrettier
|
|
8
|
+
}
|
|
9
|
+
];
|
|
10
|
+
});
|
|
11
|
+
export {
|
|
12
|
+
prettier
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=prettier.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/tools/prettier.ts"],"sourcesContent":["import type { TSESLint } from '@typescript-eslint/utils'\nimport type ConfigPrettier from 'eslint-config-prettier'\n\nimport { defineLazyConfig, loadDefault } from '../lazy.js'\n\n/**\n * Prettier interop configuration\n * Disables all ESLint rules that conflict with Prettier formatting\n */\nexport const prettier: () => Promise<TSESLint.FlatConfig.ConfigArray> = defineLazyConfig('prettier', async () => {\n const eslintConfigPrettier = await loadDefault<typeof ConfigPrettier>('eslint-config-prettier')\n\n return [\n {\n name: 'eslint-config/prettier',\n ...eslintConfigPrettier\n }\n ]\n})\n"],"mappings":"AAGA,SAAS,kBAAkB,mBAAmB;AAMvC,MAAM,WAA2D,iBAAiB,YAAY,YAAY;AAC/G,QAAM,uBAAuB,MAAM,YAAmC,wBAAwB;AAE9F,SAAO;AAAA,IACL;AAAA,MACE,MAAM;AAAA,MACN,GAAG;AAAA,IACL;AAAA,EACF;AACF,CAAC;","names":[]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TSESLint } from '@typescript-eslint/utils';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Swagger/NestJS documentation ESLint configuration
|
|
5
|
+
* Provides rules from the nestjs-typed plugin for Swagger decorator validation
|
|
6
|
+
*/
|
|
7
|
+
declare const swagger: () => Promise<TSESLint.FlatConfig.ConfigArray>;
|
|
8
|
+
|
|
9
|
+
export { swagger };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { GLOB_TS } from "@santi020k/eslint-config-core";
|
|
2
|
+
import { defineLazyConfig, loadModule } from "../lazy.js";
|
|
3
|
+
const swagger = defineLazyConfig("swagger", async () => {
|
|
4
|
+
const { plugin: nestjsTypedPlugin } = await loadModule("@darraghor/eslint-plugin-nestjs-typed");
|
|
5
|
+
return [
|
|
6
|
+
{
|
|
7
|
+
files: GLOB_TS,
|
|
8
|
+
name: "integrations/swagger",
|
|
9
|
+
plugins: {
|
|
10
|
+
"@darraghor/nestjs-typed": nestjsTypedPlugin
|
|
11
|
+
},
|
|
12
|
+
rules: {
|
|
13
|
+
"@darraghor/nestjs-typed/api-method-should-specify-api-response": "warn",
|
|
14
|
+
"@darraghor/nestjs-typed/api-property-returning-array-should-set-array": "warn"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
];
|
|
18
|
+
});
|
|
19
|
+
export {
|
|
20
|
+
swagger
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=swagger.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/tools/swagger.ts"],"sourcesContent":["import { GLOB_TS } from '@santi020k/eslint-config-core'\n\nimport type NestjsTyped from '@darraghor/eslint-plugin-nestjs-typed'\nimport type { TSESLint } from '@typescript-eslint/utils'\n\nimport { defineLazyConfig, loadModule } from '../lazy.js'\n\n/**\n * Swagger/NestJS documentation ESLint configuration\n * Provides rules from the nestjs-typed plugin for Swagger decorator validation\n */\nexport const swagger: () => Promise<TSESLint.FlatConfig.ConfigArray> = defineLazyConfig('swagger', async () => {\n const { plugin: nestjsTypedPlugin } = await loadModule<typeof NestjsTyped>('@darraghor/eslint-plugin-nestjs-typed')\n\n return [\n {\n files: GLOB_TS,\n name: 'integrations/swagger',\n plugins: {\n '@darraghor/nestjs-typed': nestjsTypedPlugin\n },\n rules: {\n '@darraghor/nestjs-typed/api-method-should-specify-api-response': 'warn',\n '@darraghor/nestjs-typed/api-property-returning-array-should-set-array': 'warn'\n }\n }\n ]\n})\n"],"mappings":"AAAA,SAAS,eAAe;AAKxB,SAAS,kBAAkB,kBAAkB;AAMtC,MAAM,UAA0D,iBAAiB,WAAW,YAAY;AAC7G,QAAM,EAAE,QAAQ,kBAAkB,IAAI,MAAM,WAA+B,uCAAuC;AAElH,SAAO;AAAA,IACL;AAAA,MACE,OAAO;AAAA,MACP,MAAM;AAAA,MACN,SAAS;AAAA,QACP,2BAA2B;AAAA,MAC7B;AAAA,MACA,OAAO;AAAA,QACL,kEAAkE;AAAA,QAClE,yEAAyE;AAAA,MAC3E;AAAA,IACF;AAAA,EACF;AACF,CAAC;","names":[]}
|
package/package.json
ADDED
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@santi020k/eslint-config-integrations",
|
|
3
|
+
"version": "2.0.0-beta.0",
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"access": "public"
|
|
6
|
+
},
|
|
7
|
+
"description": "ESLint integrations for libraries, tools, testing, formats, and extensions",
|
|
8
|
+
"type": "module",
|
|
9
|
+
"main": "./dist/index.js",
|
|
10
|
+
"module": "./dist/index.js",
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"sideEffects": false,
|
|
13
|
+
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"import": "./dist/index.js"
|
|
17
|
+
},
|
|
18
|
+
"./extensions": {
|
|
19
|
+
"types": "./dist/extensions/index.d.ts",
|
|
20
|
+
"import": "./dist/extensions/index.js"
|
|
21
|
+
},
|
|
22
|
+
"./formats": {
|
|
23
|
+
"types": "./dist/formats/index.d.ts",
|
|
24
|
+
"import": "./dist/formats/index.js"
|
|
25
|
+
},
|
|
26
|
+
"./libraries": {
|
|
27
|
+
"types": "./dist/libraries/index.d.ts",
|
|
28
|
+
"import": "./dist/libraries/index.js"
|
|
29
|
+
},
|
|
30
|
+
"./testing": {
|
|
31
|
+
"types": "./dist/testing/index.d.ts",
|
|
32
|
+
"import": "./dist/testing/index.js"
|
|
33
|
+
},
|
|
34
|
+
"./tools": {
|
|
35
|
+
"types": "./dist/tools/index.d.ts",
|
|
36
|
+
"import": "./dist/tools/index.js"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"files": [
|
|
40
|
+
"dist"
|
|
41
|
+
],
|
|
42
|
+
"dependencies": {
|
|
43
|
+
"@cspell/eslint-plugin": "^10.0.1",
|
|
44
|
+
"@darraghor/eslint-plugin-nestjs-typed": "^7.2.4",
|
|
45
|
+
"@eslint/compat": "^2.1.0",
|
|
46
|
+
"@eslint/css": "^1.3.0",
|
|
47
|
+
"@eslint/markdown": "^8.0.2",
|
|
48
|
+
"@graphql-eslint/eslint-plugin": "^4.4.0",
|
|
49
|
+
"@html-eslint/eslint-plugin": "^0.62.0",
|
|
50
|
+
"@html-eslint/parser": "^0.62.0",
|
|
51
|
+
"@stencil-community/eslint-plugin": "^0.10.0",
|
|
52
|
+
"@tanstack/eslint-plugin-query": "^5.101.0",
|
|
53
|
+
"@tanstack/eslint-plugin-router": "^1.162.0",
|
|
54
|
+
"@typescript-eslint/utils": "^8.61.1",
|
|
55
|
+
"@vitest/eslint-plugin": "^1.6.20",
|
|
56
|
+
"eslint-config-biome": "^2.1.3",
|
|
57
|
+
"eslint-config-prettier": "^10.1.8",
|
|
58
|
+
"eslint-plugin-better-tailwindcss": "^4.6.0",
|
|
59
|
+
"eslint-plugin-command": "^3.5.2",
|
|
60
|
+
"eslint-plugin-compat": "^7.0.2",
|
|
61
|
+
"eslint-plugin-cypress": "^6.4.1",
|
|
62
|
+
"eslint-plugin-de-morgan": "^2.1.2",
|
|
63
|
+
"eslint-plugin-depend": "^1.5.0",
|
|
64
|
+
"eslint-plugin-i18next": "^6.1.4",
|
|
65
|
+
"eslint-plugin-jest": "^29.15.2",
|
|
66
|
+
"eslint-plugin-jest-dom": "^5.5.0",
|
|
67
|
+
"eslint-plugin-jsdoc": "^63.0.5",
|
|
68
|
+
"eslint-plugin-jsonc": "^3.2.0",
|
|
69
|
+
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
70
|
+
"eslint-plugin-mdx": "^3.8.1",
|
|
71
|
+
"eslint-plugin-n": "^18.1.0",
|
|
72
|
+
"eslint-plugin-no-only-tests": "^3.4.0",
|
|
73
|
+
"eslint-plugin-oxlint": "^1.70.0",
|
|
74
|
+
"eslint-plugin-package-json": "^1.3.0",
|
|
75
|
+
"eslint-plugin-perfectionist": "^5.9.1",
|
|
76
|
+
"eslint-plugin-playwright": "^2.10.4",
|
|
77
|
+
"eslint-plugin-pnpm": "^1.6.1",
|
|
78
|
+
"eslint-plugin-regexp": "^3.1.0",
|
|
79
|
+
"eslint-plugin-security": "^4.0.1",
|
|
80
|
+
"eslint-plugin-sonarjs": "^4.0.3",
|
|
81
|
+
"eslint-plugin-storybook": "^10.4.6",
|
|
82
|
+
"eslint-plugin-testing-library": "^7.16.2",
|
|
83
|
+
"eslint-plugin-toml": "^1.4.0",
|
|
84
|
+
"eslint-plugin-tsdoc": "^0.5.2",
|
|
85
|
+
"eslint-plugin-turbo": "^2.9.18",
|
|
86
|
+
"eslint-plugin-unicorn": "^65.0.1",
|
|
87
|
+
"eslint-plugin-vercel-ai-security": "^1.3.5",
|
|
88
|
+
"eslint-plugin-vuejs-accessibility": "^2.5.0",
|
|
89
|
+
"eslint-plugin-yml": "^3.4.0",
|
|
90
|
+
"eslint-plugin-zod": "^4.7.0",
|
|
91
|
+
"globals": "^17.6.0",
|
|
92
|
+
"storybook": "^10.4.6",
|
|
93
|
+
"typescript-eslint": "^8.61.1",
|
|
94
|
+
"@santi020k/eslint-config-core": "2.0.0-beta.0"
|
|
95
|
+
},
|
|
96
|
+
"devDependencies": {
|
|
97
|
+
"@types/eslint-plugin-jsx-a11y": "^6.10.1",
|
|
98
|
+
"eslint": "^10.0.0",
|
|
99
|
+
"publint": "^0.3.21",
|
|
100
|
+
"tailwindcss": "^4.3.1",
|
|
101
|
+
"tsup": "^8.5.1",
|
|
102
|
+
"typescript": "^6.0.3"
|
|
103
|
+
},
|
|
104
|
+
"peerDependencies": {
|
|
105
|
+
"eslint": "^10.0.0",
|
|
106
|
+
"typescript": ">=5.0.0"
|
|
107
|
+
},
|
|
108
|
+
"peerDependenciesMeta": {
|
|
109
|
+
"typescript": {
|
|
110
|
+
"optional": true
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"engines": {
|
|
114
|
+
"node": ">=22.18.0"
|
|
115
|
+
},
|
|
116
|
+
"repository": {
|
|
117
|
+
"type": "git",
|
|
118
|
+
"url": "git+https://github.com/santi020k/eslint-config-basic.git",
|
|
119
|
+
"directory": "packages/integrations"
|
|
120
|
+
},
|
|
121
|
+
"homepage": "https://eslint.santi020k.com/packages/integrations.html",
|
|
122
|
+
"bugs": {
|
|
123
|
+
"url": "https://github.com/santi020k/eslint-config-basic/issues"
|
|
124
|
+
},
|
|
125
|
+
"author": "santi020k",
|
|
126
|
+
"license": "MIT",
|
|
127
|
+
"scripts": {
|
|
128
|
+
"build": "tsup",
|
|
129
|
+
"check:exports": "publint",
|
|
130
|
+
"clean": "rm -rf dist",
|
|
131
|
+
"dev": "tsup --watch",
|
|
132
|
+
"lint": "eslint . --no-warn-ignored --pass-on-no-patterns",
|
|
133
|
+
"lint:fix": "eslint . --fix --no-warn-ignored --pass-on-no-patterns",
|
|
134
|
+
"typecheck": "tsc --noEmit"
|
|
135
|
+
}
|
|
136
|
+
}
|