@santi020k/eslint-config-integrations 3.0.0 → 3.1.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/CHANGELOG.md +469 -0
- package/README.md +4 -0
- package/dist/compose.d.ts +5 -15
- package/dist/compose.js +18 -132
- package/dist/compose.js.map +1 -1
- package/dist/extensions.d.ts +5 -0
- package/dist/extensions.js +37 -0
- package/dist/extensions.js.map +1 -0
- package/dist/formats.d.ts +1 -0
- package/dist/formats.js +23 -0
- package/dist/formats.js.map +1 -0
- package/dist/index.d.ts +5 -57
- package/dist/index.js +6 -113
- package/dist/index.js.map +1 -1
- package/dist/libraries.d.ts +1 -0
- package/dist/libraries.js +47 -0
- package/dist/libraries.js.map +1 -0
- package/dist/testing.d.ts +1 -0
- package/dist/testing.js +17 -0
- package/dist/testing.js.map +1 -0
- package/dist/tools.d.ts +1 -0
- package/dist/tools.js +23 -0
- package/dist/tools.js.map +1 -0
- package/package.json +26 -102
- package/dist/extensions/a11y.d.ts +0 -9
- package/dist/extensions/a11y.js +0 -25
- package/dist/extensions/a11y.js.map +0 -1
- package/dist/extensions/astro-doctor.d.ts +0 -5
- package/dist/extensions/astro-doctor.js +0 -17
- package/dist/extensions/astro-doctor.js.map +0 -1
- package/dist/extensions/best-practices.d.ts +0 -16
- package/dist/extensions/best-practices.js +0 -27
- package/dist/extensions/best-practices.js.map +0 -1
- package/dist/extensions/biome.d.ts +0 -9
- package/dist/extensions/biome.js +0 -18
- package/dist/extensions/biome.js.map +0 -1
- package/dist/extensions/boundaries.d.ts +0 -12
- package/dist/extensions/boundaries.js +0 -40
- package/dist/extensions/boundaries.js.map +0 -1
- package/dist/extensions/compat.d.ts +0 -9
- package/dist/extensions/compat.js +0 -16
- package/dist/extensions/compat.js.map +0 -1
- package/dist/extensions/de-morgan.d.ts +0 -9
- package/dist/extensions/de-morgan.js +0 -16
- package/dist/extensions/de-morgan.js.map +0 -1
- package/dist/extensions/depend.d.ts +0 -10
- package/dist/extensions/depend.js +0 -16
- package/dist/extensions/depend.js.map +0 -1
- package/dist/extensions/index.d.ts +0 -18
- package/dist/extensions/index.js +0 -35
- package/dist/extensions/index.js.map +0 -1
- package/dist/extensions/no-only-tests.d.ts +0 -9
- package/dist/extensions/no-only-tests.js +0 -21
- package/dist/extensions/no-only-tests.js.map +0 -1
- package/dist/extensions/node.d.ts +0 -11
- package/dist/extensions/node.js +0 -25
- package/dist/extensions/node.js.map +0 -1
- package/dist/extensions/oxlint.d.ts +0 -10
- package/dist/extensions/oxlint.js +0 -12
- package/dist/extensions/oxlint.js.map +0 -1
- package/dist/extensions/perfectionist.d.ts +0 -9
- package/dist/extensions/perfectionist.js +0 -25
- package/dist/extensions/perfectionist.js.map +0 -1
- package/dist/extensions/regexp.d.ts +0 -10
- package/dist/extensions/regexp.js +0 -27
- package/dist/extensions/regexp.js.map +0 -1
- package/dist/extensions/security.d.ts +0 -9
- package/dist/extensions/security.js +0 -21
- package/dist/extensions/security.js.map +0 -1
- package/dist/extensions/sonarjs.d.ts +0 -5
- package/dist/extensions/sonarjs.js +0 -16
- package/dist/extensions/sonarjs.js.map +0 -1
- package/dist/extensions/unicorn.d.ts +0 -9
- package/dist/extensions/unicorn.js +0 -46
- package/dist/extensions/unicorn.js.map +0 -1
- package/dist/formats/css.d.ts +0 -9
- package/dist/formats/css.js +0 -21
- package/dist/formats/css.js.map +0 -1
- package/dist/formats/graphql.d.ts +0 -9
- package/dist/formats/graphql.js +0 -41
- package/dist/formats/graphql.js.map +0 -1
- package/dist/formats/html.d.ts +0 -9
- package/dist/formats/html.js +0 -29
- package/dist/formats/html.js.map +0 -1
- package/dist/formats/index.d.ts +0 -10
- package/dist/formats/index.js +0 -21
- package/dist/formats/index.js.map +0 -1
- package/dist/formats/jsonc.d.ts +0 -9
- package/dist/formats/jsonc.js +0 -73
- package/dist/formats/jsonc.js.map +0 -1
- package/dist/formats/markdown.d.ts +0 -9
- package/dist/formats/markdown.js +0 -73
- package/dist/formats/markdown.js.map +0 -1
- package/dist/formats/mdx.d.ts +0 -9
- package/dist/formats/mdx.js +0 -55
- package/dist/formats/mdx.js.map +0 -1
- package/dist/formats/package-json.d.ts +0 -9
- package/dist/formats/package-json.js +0 -16
- package/dist/formats/package-json.js.map +0 -1
- package/dist/formats/toml.d.ts +0 -9
- package/dist/formats/toml.js +0 -12
- package/dist/formats/toml.js.map +0 -1
- package/dist/formats/yaml.d.ts +0 -9
- package/dist/formats/yaml.js +0 -28
- package/dist/formats/yaml.js.map +0 -1
- package/dist/lazy.d.ts +0 -24
- package/dist/lazy.js +0 -46
- package/dist/lazy.js.map +0 -1
- package/dist/libraries/ai.d.ts +0 -8
- package/dist/libraries/ai.js +0 -29
- package/dist/libraries/ai.js.map +0 -1
- package/dist/libraries/autogen.d.ts +0 -8
- package/dist/libraries/autogen.js +0 -24
- package/dist/libraries/autogen.js.map +0 -1
- package/dist/libraries/google-genai.d.ts +0 -8
- package/dist/libraries/google-genai.js +0 -30
- package/dist/libraries/google-genai.js.map +0 -1
- package/dist/libraries/i18next.d.ts +0 -9
- package/dist/libraries/i18next.js +0 -29
- package/dist/libraries/i18next.js.map +0 -1
- package/dist/libraries/index.d.ts +0 -17
- package/dist/libraries/index.js +0 -38
- package/dist/libraries/index.js.map +0 -1
- package/dist/libraries/langchain.d.ts +0 -8
- package/dist/libraries/langchain.js +0 -30
- package/dist/libraries/langchain.js.map +0 -1
- package/dist/libraries/llamaindex.d.ts +0 -8
- package/dist/libraries/llamaindex.js +0 -30
- package/dist/libraries/llamaindex.js.map +0 -1
- package/dist/libraries/mastra.d.ts +0 -8
- package/dist/libraries/mastra.js +0 -30
- package/dist/libraries/mastra.js.map +0 -1
- package/dist/libraries/mcp.d.ts +0 -8
- package/dist/libraries/mcp.js +0 -33
- package/dist/libraries/mcp.js.map +0 -1
- package/dist/libraries/openai-agents.d.ts +0 -8
- package/dist/libraries/openai-agents.js +0 -32
- package/dist/libraries/openai-agents.js.map +0 -1
- package/dist/libraries/orm.d.ts +0 -31
- package/dist/libraries/orm.js +0 -104
- package/dist/libraries/orm.js.map +0 -1
- package/dist/libraries/stencil.d.ts +0 -9
- package/dist/libraries/stencil.js +0 -49
- package/dist/libraries/stencil.js.map +0 -1
- package/dist/libraries/storybook.d.ts +0 -9
- package/dist/libraries/storybook.js +0 -11
- package/dist/libraries/storybook.js.map +0 -1
- package/dist/libraries/tailwind.d.ts +0 -9
- package/dist/libraries/tailwind.js +0 -21
- package/dist/libraries/tailwind.js.map +0 -1
- package/dist/libraries/tanstack.d.ts +0 -12
- package/dist/libraries/tanstack.js +0 -37
- package/dist/libraries/tanstack.js.map +0 -1
- package/dist/libraries/turbo.d.ts +0 -9
- package/dist/libraries/turbo.js +0 -25
- package/dist/libraries/turbo.js.map +0 -1
- package/dist/libraries/zod.d.ts +0 -9
- package/dist/libraries/zod.js +0 -21
- package/dist/libraries/zod.js.map +0 -1
- package/dist/testing/cypress.d.ts +0 -9
- package/dist/testing/cypress.js +0 -26
- package/dist/testing/cypress.js.map +0 -1
- package/dist/testing/index.d.ts +0 -7
- package/dist/testing/index.js +0 -15
- package/dist/testing/index.js.map +0 -1
- package/dist/testing/jest-dom.d.ts +0 -9
- package/dist/testing/jest-dom.js +0 -21
- package/dist/testing/jest-dom.js.map +0 -1
- package/dist/testing/jest.d.ts +0 -9
- package/dist/testing/jest.js +0 -24
- package/dist/testing/jest.js.map +0 -1
- package/dist/testing/playwright.d.ts +0 -9
- package/dist/testing/playwright.js +0 -24
- package/dist/testing/playwright.js.map +0 -1
- package/dist/testing/testing-library.d.ts +0 -9
- package/dist/testing/testing-library.js +0 -34
- package/dist/testing/testing-library.js.map +0 -1
- package/dist/testing/vitest.d.ts +0 -9
- package/dist/testing/vitest.js +0 -57
- package/dist/testing/vitest.js.map +0 -1
- package/dist/tools/command.d.ts +0 -9
- package/dist/tools/command.js +0 -16
- package/dist/tools/command.js.map +0 -1
- package/dist/tools/cspell.d.ts +0 -9
- package/dist/tools/cspell.js +0 -26
- package/dist/tools/cspell.js.map +0 -1
- package/dist/tools/docker.d.ts +0 -10
- package/dist/tools/docker.js +0 -21
- package/dist/tools/docker.js.map +0 -1
- package/dist/tools/github-actions.d.ts +0 -10
- package/dist/tools/github-actions.js +0 -16
- package/dist/tools/github-actions.js.map +0 -1
- package/dist/tools/index.d.ts +0 -10
- package/dist/tools/index.js +0 -21
- package/dist/tools/index.js.map +0 -1
- package/dist/tools/jsdoc.d.ts +0 -9
- package/dist/tools/jsdoc.js +0 -36
- package/dist/tools/jsdoc.js.map +0 -1
- package/dist/tools/nx.d.ts +0 -9
- package/dist/tools/nx.js +0 -18
- package/dist/tools/nx.js.map +0 -1
- package/dist/tools/pnpm.d.ts +0 -10
- package/dist/tools/pnpm.js +0 -12
- package/dist/tools/pnpm.js.map +0 -1
- package/dist/tools/prettier.d.ts +0 -9
- package/dist/tools/prettier.js +0 -14
- package/dist/tools/prettier.js.map +0 -1
- package/dist/tools/swagger.d.ts +0 -9
- package/dist/tools/swagger.js +0 -22
- package/dist/tools/swagger.js.map +0 -1
package/dist/testing/jest-dom.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { GLOB_JS_TS } from "@santi020k/eslint-config-core";
|
|
2
|
-
import { defineLazyConfig, loadDefault } from "../lazy.js";
|
|
3
|
-
const jestDom = defineLazyConfig("jestDom", async () => {
|
|
4
|
-
const pluginJestDom = await loadDefault("eslint-plugin-jest-dom");
|
|
5
|
-
return [
|
|
6
|
-
{
|
|
7
|
-
files: GLOB_JS_TS,
|
|
8
|
-
name: "eslint-config-integrations/jest-dom",
|
|
9
|
-
plugins: {
|
|
10
|
-
"jest-dom": pluginJestDom
|
|
11
|
-
},
|
|
12
|
-
rules: {
|
|
13
|
-
...pluginJestDom.configs.recommended.rules
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
];
|
|
17
|
-
});
|
|
18
|
-
export {
|
|
19
|
-
jestDom
|
|
20
|
-
};
|
|
21
|
-
//# sourceMappingURL=jest-dom.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/testing/jest-dom.ts"],"sourcesContent":["import { GLOB_JS_TS } from '@santi020k/eslint-config-core'\n\nimport type { TSESLint } from '@typescript-eslint/utils'\nimport type PluginJestDom from 'eslint-plugin-jest-dom'\n\nimport { defineLazyConfig, loadDefault } from '../lazy.js'\n\n/**\n * Jest DOM ESLint configuration\n * Provides rules for \\@testing-library/jest-dom\n */\nexport const jestDom: () => Promise<TSESLint.FlatConfig.ConfigArray> = defineLazyConfig('jestDom', async () => {\n const pluginJestDom = await loadDefault<typeof PluginJestDom>('eslint-plugin-jest-dom')\n\n return [\n {\n files: GLOB_JS_TS,\n name: 'eslint-config-integrations/jest-dom',\n plugins: {\n 'jest-dom': pluginJestDom\n },\n rules: {\n ...pluginJestDom.configs.recommended.rules\n }\n }\n ]\n})\n"],"mappings":"AAAA,SAAS,kBAAkB;AAK3B,SAAS,kBAAkB,mBAAmB;AAMvC,MAAM,UAA0D,iBAAiB,WAAW,YAAY;AAC7G,QAAM,gBAAgB,MAAM,YAAkC,wBAAwB;AAEtF,SAAO;AAAA,IACL;AAAA,MACE,OAAO;AAAA,MACP,MAAM;AAAA,MACN,SAAS;AAAA,QACP,YAAY;AAAA,MACd;AAAA,MACA,OAAO;AAAA,QACL,GAAG,cAAc,QAAQ,YAAY;AAAA,MACvC;AAAA,IACF;AAAA,EACF;AACF,CAAC;","names":[]}
|
package/dist/testing/jest.d.ts
DELETED
package/dist/testing/jest.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { defineLazyConfig, loadDefault } from "../lazy.js";
|
|
2
|
-
const jest = defineLazyConfig("jest", async () => {
|
|
3
|
-
const pluginJest = await loadDefault("eslint-plugin-jest");
|
|
4
|
-
return [
|
|
5
|
-
{
|
|
6
|
-
files: [
|
|
7
|
-
"**/*.test.{js,ts,jsx,tsx}",
|
|
8
|
-
"**/*.spec.{js,ts,jsx,tsx}",
|
|
9
|
-
"**/__tests__/**/*.{js,ts,jsx,tsx}"
|
|
10
|
-
],
|
|
11
|
-
name: "integrations/jest",
|
|
12
|
-
plugins: {
|
|
13
|
-
jest: pluginJest
|
|
14
|
-
},
|
|
15
|
-
rules: {
|
|
16
|
-
...pluginJest.configs["flat/recommended"].rules
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
];
|
|
20
|
-
});
|
|
21
|
-
export {
|
|
22
|
-
jest
|
|
23
|
-
};
|
|
24
|
-
//# sourceMappingURL=jest.js.map
|
package/dist/testing/jest.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/testing/jest.ts"],"sourcesContent":["import type { TSESLint } from '@typescript-eslint/utils'\nimport type PluginJest from 'eslint-plugin-jest'\n\nimport { defineLazyConfig, loadDefault } from '../lazy.js'\n\n/**\n * Jest ESLint configuration\n * Provides linting rules for Jest test files\n */\nexport const jest: () => Promise<TSESLint.FlatConfig.ConfigArray> = defineLazyConfig('jest', async () => {\n const pluginJest = await loadDefault<typeof PluginJest>('eslint-plugin-jest')\n\n return [\n {\n files: [\n '**/*.test.{js,ts,jsx,tsx}',\n '**/*.spec.{js,ts,jsx,tsx}',\n '**/__tests__/**/*.{js,ts,jsx,tsx}'\n ],\n name: 'integrations/jest',\n plugins: {\n jest: pluginJest\n },\n rules: {\n ...pluginJest.configs['flat/recommended'].rules\n }\n }\n ]\n})\n"],"mappings":"AAGA,SAAS,kBAAkB,mBAAmB;AAMvC,MAAM,OAAuD,iBAAiB,QAAQ,YAAY;AACvG,QAAM,aAAa,MAAM,YAA+B,oBAAoB;AAE5E,SAAO;AAAA,IACL;AAAA,MACE,OAAO;AAAA,QACL;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAAA,MACA,MAAM;AAAA,MACN,SAAS;AAAA,QACP,MAAM;AAAA,MACR;AAAA,MACA,OAAO;AAAA,QACL,GAAG,WAAW,QAAQ,kBAAkB,EAAE;AAAA,MAC5C;AAAA,IACF;AAAA,EACF;AACF,CAAC;","names":[]}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { TSESLint } from '@typescript-eslint/utils';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Playwright ESLint configuration
|
|
5
|
-
* Provides linting rules for Playwright end-to-end test files
|
|
6
|
-
*/
|
|
7
|
-
declare const playwright: () => Promise<TSESLint.FlatConfig.ConfigArray>;
|
|
8
|
-
|
|
9
|
-
export { playwright };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { defineLazyConfig, loadDefault } from "../lazy.js";
|
|
2
|
-
const playwright = defineLazyConfig("playwright", async () => {
|
|
3
|
-
const pluginPlaywright = await loadDefault("eslint-plugin-playwright");
|
|
4
|
-
return [
|
|
5
|
-
{
|
|
6
|
-
files: [
|
|
7
|
-
"**/e2e/**/*.{js,mjs,cjs,ts,mts,cts,jsx,tsx}",
|
|
8
|
-
"**/tests/**/*.{js,mjs,cjs,ts,mts,cts,jsx,tsx}",
|
|
9
|
-
"**/tests/e2e/**/*.{js,mjs,cjs,ts,mts,cts,jsx,tsx}",
|
|
10
|
-
"**/*.e2e.{js,mjs,cjs,ts,mts,cts,jsx,tsx}",
|
|
11
|
-
"**/*.e2e.spec.{js,mjs,cjs,ts,mts,cts,jsx,tsx}",
|
|
12
|
-
"**/*.playwright.{js,mjs,cjs,ts,mts,cts,jsx,tsx}",
|
|
13
|
-
"**/*.playwright.spec.{js,mjs,cjs,ts,mts,cts,jsx,tsx}",
|
|
14
|
-
"**/playwright/**/*.{js,mjs,cjs,ts,mts,cts,jsx,tsx}"
|
|
15
|
-
],
|
|
16
|
-
name: "integrations/playwright",
|
|
17
|
-
...pluginPlaywright.configs["flat/recommended"]
|
|
18
|
-
}
|
|
19
|
-
];
|
|
20
|
-
});
|
|
21
|
-
export {
|
|
22
|
-
playwright
|
|
23
|
-
};
|
|
24
|
-
//# sourceMappingURL=playwright.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/testing/playwright.ts"],"sourcesContent":["import type { TSESLint } from '@typescript-eslint/utils'\n\nimport { defineLazyConfig, loadDefault, type PluginWithConfigs } from '../lazy.js'\n\n/**\n * Playwright ESLint configuration\n * Provides linting rules for Playwright end-to-end test files\n */\nexport const playwright: () => Promise<TSESLint.FlatConfig.ConfigArray> = defineLazyConfig('playwright', async () => {\n const pluginPlaywright = await loadDefault<PluginWithConfigs<'flat/recommended'>>('eslint-plugin-playwright')\n\n return [\n {\n files: [\n '**/e2e/**/*.{js,mjs,cjs,ts,mts,cts,jsx,tsx}',\n '**/tests/**/*.{js,mjs,cjs,ts,mts,cts,jsx,tsx}',\n '**/tests/e2e/**/*.{js,mjs,cjs,ts,mts,cts,jsx,tsx}',\n '**/*.e2e.{js,mjs,cjs,ts,mts,cts,jsx,tsx}',\n '**/*.e2e.spec.{js,mjs,cjs,ts,mts,cts,jsx,tsx}',\n '**/*.playwright.{js,mjs,cjs,ts,mts,cts,jsx,tsx}',\n '**/*.playwright.spec.{js,mjs,cjs,ts,mts,cts,jsx,tsx}',\n '**/playwright/**/*.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'\n ],\n name: 'integrations/playwright',\n ...pluginPlaywright.configs['flat/recommended']\n }\n ]\n})\n"],"mappings":"AAEA,SAAS,kBAAkB,mBAA2C;AAM/D,MAAM,aAA6D,iBAAiB,cAAc,YAAY;AACnH,QAAM,mBAAmB,MAAM,YAAmD,0BAA0B;AAE5G,SAAO;AAAA,IACL;AAAA,MACE,OAAO;AAAA,QACL;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAAA,MACA,MAAM;AAAA,MACN,GAAG,iBAAiB,QAAQ,kBAAkB;AAAA,IAChD;AAAA,EACF;AACF,CAAC;","names":[]}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { TSESLint } from '@typescript-eslint/utils';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Testing Library ESLint configuration
|
|
5
|
-
* Provides linting rules for Testing Library usage in tests
|
|
6
|
-
*/
|
|
7
|
-
declare const testingLibrary: () => Promise<TSESLint.FlatConfig.ConfigArray>;
|
|
8
|
-
|
|
9
|
-
export { testingLibrary };
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { fixupPluginRules } from "@eslint/compat";
|
|
2
|
-
import { defineLazyConfig, loadDefault } from "../lazy.js";
|
|
3
|
-
const testingLibrary = defineLazyConfig("testing-library", async () => {
|
|
4
|
-
const pluginTestingLibrary = await loadDefault("eslint-plugin-testing-library");
|
|
5
|
-
return [
|
|
6
|
-
{
|
|
7
|
-
files: [
|
|
8
|
-
"**/*.test.{js,ts,jsx,tsx}",
|
|
9
|
-
"**/*.spec.{js,ts,jsx,tsx}",
|
|
10
|
-
"**/__tests__/**/*.{js,ts,jsx,tsx}"
|
|
11
|
-
],
|
|
12
|
-
name: "integrations/testing-library",
|
|
13
|
-
plugins: {
|
|
14
|
-
"testing-library": fixupPluginRules(
|
|
15
|
-
pluginTestingLibrary
|
|
16
|
-
)
|
|
17
|
-
},
|
|
18
|
-
rules: {
|
|
19
|
-
// Testing Library recommended rules
|
|
20
|
-
"testing-library/await-async-queries": "error",
|
|
21
|
-
"testing-library/no-await-sync-queries": "error",
|
|
22
|
-
"testing-library/no-debugging-utils": "warn",
|
|
23
|
-
"testing-library/no-dom-import": "error",
|
|
24
|
-
"testing-library/no-unnecessary-act": "warn",
|
|
25
|
-
"testing-library/prefer-find-by": "warn",
|
|
26
|
-
"testing-library/prefer-screen-queries": "error"
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
];
|
|
30
|
-
});
|
|
31
|
-
export {
|
|
32
|
-
testingLibrary
|
|
33
|
-
};
|
|
34
|
-
//# sourceMappingURL=testing-library.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/testing/testing-library.ts"],"sourcesContent":["import { fixupPluginRules } from '@eslint/compat'\nimport type { TSESLint } from '@typescript-eslint/utils'\nimport type PluginTestingLibrary from 'eslint-plugin-testing-library'\n\nimport { defineLazyConfig, loadDefault } from '../lazy.js'\n\n/**\n * Testing Library ESLint configuration\n * Provides linting rules for Testing Library usage in tests\n */\nexport const testingLibrary: () => Promise<TSESLint.FlatConfig.ConfigArray> = defineLazyConfig('testing-library', async () => {\n const pluginTestingLibrary = await loadDefault<typeof PluginTestingLibrary>('eslint-plugin-testing-library')\n\n return [\n {\n files: [\n '**/*.test.{js,ts,jsx,tsx}',\n '**/*.spec.{js,ts,jsx,tsx}',\n '**/__tests__/**/*.{js,ts,jsx,tsx}'\n ],\n name: 'integrations/testing-library',\n plugins: {\n 'testing-library': fixupPluginRules(\n pluginTestingLibrary\n )\n },\n rules: {\n // Testing Library recommended rules\n 'testing-library/await-async-queries': 'error',\n 'testing-library/no-await-sync-queries': 'error',\n 'testing-library/no-debugging-utils': 'warn',\n 'testing-library/no-dom-import': 'error',\n 'testing-library/no-unnecessary-act': 'warn',\n 'testing-library/prefer-find-by': 'warn',\n 'testing-library/prefer-screen-queries': 'error'\n }\n }\n ]\n})\n"],"mappings":"AAAA,SAAS,wBAAwB;AAIjC,SAAS,kBAAkB,mBAAmB;AAMvC,MAAM,iBAAiE,iBAAiB,mBAAmB,YAAY;AAC5H,QAAM,uBAAuB,MAAM,YAAyC,+BAA+B;AAE3G,SAAO;AAAA,IACL;AAAA,MACE,OAAO;AAAA,QACL;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAAA,MACA,MAAM;AAAA,MACN,SAAS;AAAA,QACP,mBAAmB;AAAA,UACjB;AAAA,QACF;AAAA,MACF;AAAA,MACA,OAAO;AAAA;AAAA,QAEL,uCAAuC;AAAA,QACvC,yCAAyC;AAAA,QACzC,sCAAsC;AAAA,QACtC,iCAAiC;AAAA,QACjC,sCAAsC;AAAA,QACtC,kCAAkC;AAAA,QAClC,yCAAyC;AAAA,MAC3C;AAAA,IACF;AAAA,EACF;AACF,CAAC;","names":[]}
|
package/dist/testing/vitest.d.ts
DELETED
package/dist/testing/vitest.js
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { defineLazyConfig, loadDefault } from "../lazy.js";
|
|
2
|
-
const vitest = defineLazyConfig("vitest", async () => {
|
|
3
|
-
const globals = await loadDefault("globals");
|
|
4
|
-
const pluginVitest = await loadDefault("@vitest/eslint-plugin");
|
|
5
|
-
return [
|
|
6
|
-
{
|
|
7
|
-
files: [
|
|
8
|
-
"tests/**/*.{js,ts,jsx,tsx}",
|
|
9
|
-
"**/__tests__/**/*.{js,ts,jsx,tsx}",
|
|
10
|
-
"**/__mocks__/**/*.{js,ts,jsx,tsx}",
|
|
11
|
-
"**/test/**/*.{js,ts,jsx,tsx}",
|
|
12
|
-
"**/spec/**/*.{js,ts,jsx,tsx}",
|
|
13
|
-
"**/__spec__/**/*.{js,ts,jsx,tsx}",
|
|
14
|
-
"**/*.test.{js,ts,jsx,tsx}",
|
|
15
|
-
"**/*.spec.{js,ts,jsx,tsx}",
|
|
16
|
-
"vitest.config.{js,ts}",
|
|
17
|
-
"vitest.setup.{js,ts}",
|
|
18
|
-
"vitest.workspace.{js,ts}"
|
|
19
|
-
],
|
|
20
|
-
languageOptions: {
|
|
21
|
-
globals: {
|
|
22
|
-
...globals.node
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
name: "integrations/vitest",
|
|
26
|
-
plugins: {
|
|
27
|
-
vitest: pluginVitest
|
|
28
|
-
},
|
|
29
|
-
rules: {
|
|
30
|
-
// Vitest recommended rules
|
|
31
|
-
...pluginVitest.configs.recommended.rules,
|
|
32
|
-
"@stylistic/padding-line-between-statements": "off",
|
|
33
|
-
// Disable some rules that conflict with test patterns
|
|
34
|
-
"@typescript-eslint/no-explicit-any": "off",
|
|
35
|
-
"vitest/consistent-test-it": ["warn", { fn: "test" }],
|
|
36
|
-
"vitest/expect-expect": [
|
|
37
|
-
"error",
|
|
38
|
-
{
|
|
39
|
-
assertFunctionNames: ["expect", "assert", "should"]
|
|
40
|
-
}
|
|
41
|
-
],
|
|
42
|
-
// Best practice rules for testing
|
|
43
|
-
"vitest/max-nested-describe": ["error", { max: 3 }],
|
|
44
|
-
"vitest/no-disabled-tests": "warn",
|
|
45
|
-
"vitest/no-focused-tests": "error",
|
|
46
|
-
"vitest/no-identical-title": "error",
|
|
47
|
-
"vitest/prefer-to-be": "warn",
|
|
48
|
-
"vitest/prefer-to-have-length": "warn",
|
|
49
|
-
"vitest/valid-expect": "error"
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
];
|
|
53
|
-
});
|
|
54
|
-
export {
|
|
55
|
-
vitest
|
|
56
|
-
};
|
|
57
|
-
//# sourceMappingURL=vitest.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/testing/vitest.ts"],"sourcesContent":["import type { TSESLint } from '@typescript-eslint/utils'\nimport type Globals from 'globals'\n\nimport { defineLazyConfig, loadDefault, type PluginWithConfigs } from '../lazy.js'\n\n/**\n * Vitest ESLint configuration\n * Provides linting rules for Vitest test files with best practices\n */\nexport const vitest: () => Promise<TSESLint.FlatConfig.ConfigArray> = defineLazyConfig('vitest', async () => {\n const globals = await loadDefault<typeof Globals>('globals')\n const pluginVitest = await loadDefault<PluginWithConfigs<'recommended'>>('@vitest/eslint-plugin')\n\n return [\n {\n files: [\n 'tests/**/*.{js,ts,jsx,tsx}',\n '**/__tests__/**/*.{js,ts,jsx,tsx}',\n '**/__mocks__/**/*.{js,ts,jsx,tsx}',\n '**/test/**/*.{js,ts,jsx,tsx}',\n '**/spec/**/*.{js,ts,jsx,tsx}',\n '**/__spec__/**/*.{js,ts,jsx,tsx}',\n '**/*.test.{js,ts,jsx,tsx}',\n '**/*.spec.{js,ts,jsx,tsx}',\n 'vitest.config.{js,ts}',\n 'vitest.setup.{js,ts}',\n 'vitest.workspace.{js,ts}'\n ],\n languageOptions: {\n globals: {\n ...globals.node\n }\n },\n name: 'integrations/vitest',\n plugins: {\n vitest: pluginVitest\n },\n rules: {\n // Vitest recommended rules\n ...pluginVitest.configs.recommended.rules,\n\n '@stylistic/padding-line-between-statements': 'off',\n // Disable some rules that conflict with test patterns\n '@typescript-eslint/no-explicit-any': 'off',\n 'vitest/consistent-test-it': ['warn', { fn: 'test' }],\n 'vitest/expect-expect': [\n 'error',\n {\n assertFunctionNames: ['expect', 'assert', 'should']\n }\n ],\n // Best practice rules for testing\n 'vitest/max-nested-describe': ['error', { max: 3 }],\n 'vitest/no-disabled-tests': 'warn',\n 'vitest/no-focused-tests': 'error',\n 'vitest/no-identical-title': 'error',\n 'vitest/prefer-to-be': 'warn',\n 'vitest/prefer-to-have-length': 'warn',\n 'vitest/valid-expect': 'error'\n }\n }\n ]\n})\n"],"mappings":"AAGA,SAAS,kBAAkB,mBAA2C;AAM/D,MAAM,SAAyD,iBAAiB,UAAU,YAAY;AAC3G,QAAM,UAAU,MAAM,YAA4B,SAAS;AAC3D,QAAM,eAAe,MAAM,YAA8C,uBAAuB;AAEhG,SAAO;AAAA,IACL;AAAA,MACE,OAAO;AAAA,QACL;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAAA,MACA,iBAAiB;AAAA,QACf,SAAS;AAAA,UACP,GAAG,QAAQ;AAAA,QACb;AAAA,MACF;AAAA,MACA,MAAM;AAAA,MACN,SAAS;AAAA,QACP,QAAQ;AAAA,MACV;AAAA,MACA,OAAO;AAAA;AAAA,QAEL,GAAG,aAAa,QAAQ,YAAY;AAAA,QAEpC,8CAA8C;AAAA;AAAA,QAE9C,sCAAsC;AAAA,QACtC,6BAA6B,CAAC,QAAQ,EAAE,IAAI,OAAO,CAAC;AAAA,QACpD,wBAAwB;AAAA,UACtB;AAAA,UACA;AAAA,YACE,qBAAqB,CAAC,UAAU,UAAU,QAAQ;AAAA,UACpD;AAAA,QACF;AAAA;AAAA,QAEA,8BAA8B,CAAC,SAAS,EAAE,KAAK,EAAE,CAAC;AAAA,QAClD,4BAA4B;AAAA,QAC5B,2BAA2B;AAAA,QAC3B,6BAA6B;AAAA,QAC7B,uBAAuB;AAAA,QACvB,gCAAgC;AAAA,QAChC,uBAAuB;AAAA,MACzB;AAAA,IACF;AAAA,EACF;AACF,CAAC;","names":[]}
|
package/dist/tools/command.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { TSESLint } from '@typescript-eslint/utils';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Command ESLint configuration
|
|
5
|
-
* Provides in-editor micro-fixes via magic comments (e.g., /// \@keep)
|
|
6
|
-
*/
|
|
7
|
-
declare const command: () => Promise<TSESLint.FlatConfig.ConfigArray>;
|
|
8
|
-
|
|
9
|
-
export { command };
|
package/dist/tools/command.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { GLOB_JS_TS_ALL } from "@santi020k/eslint-config-core";
|
|
2
|
-
import { defineLazyConfig, loadDefault } from "../lazy.js";
|
|
3
|
-
const command = defineLazyConfig("command", async () => {
|
|
4
|
-
const pluginCommandConfig = await loadDefault("eslint-plugin-command/config");
|
|
5
|
-
return [
|
|
6
|
-
{
|
|
7
|
-
files: GLOB_JS_TS_ALL,
|
|
8
|
-
name: "eslint-config-integrations/command",
|
|
9
|
-
...pluginCommandConfig()
|
|
10
|
-
}
|
|
11
|
-
];
|
|
12
|
-
});
|
|
13
|
-
export {
|
|
14
|
-
command
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=command.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/tools/command.ts"],"sourcesContent":["import { GLOB_JS_TS_ALL } from '@santi020k/eslint-config-core'\n\nimport type { TSESLint } from '@typescript-eslint/utils'\nimport type PluginCommand from 'eslint-plugin-command/config'\n\nimport { defineLazyConfig, loadDefault } from '../lazy.js'\n\n/**\n * Command ESLint configuration\n * Provides in-editor micro-fixes via magic comments (e.g., /// \\@keep)\n */\nexport const command: () => Promise<TSESLint.FlatConfig.ConfigArray> = defineLazyConfig('command', async () => {\n const pluginCommandConfig = await loadDefault<typeof PluginCommand>('eslint-plugin-command/config')\n\n return [\n {\n files: GLOB_JS_TS_ALL,\n name: 'eslint-config-integrations/command',\n ...pluginCommandConfig()\n }\n ]\n})\n"],"mappings":"AAAA,SAAS,sBAAsB;AAK/B,SAAS,kBAAkB,mBAAmB;AAMvC,MAAM,UAA0D,iBAAiB,WAAW,YAAY;AAC7G,QAAM,sBAAsB,MAAM,YAAkC,8BAA8B;AAElG,SAAO;AAAA,IACL;AAAA,MACE,OAAO;AAAA,MACP,MAAM;AAAA,MACN,GAAG,oBAAoB;AAAA,IACzB;AAAA,EACF;AACF,CAAC;","names":[]}
|
package/dist/tools/cspell.d.ts
DELETED
package/dist/tools/cspell.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { GLOB_JS_TS_ALL } from "@santi020k/eslint-config-core";
|
|
2
|
-
import { defineLazyConfig, loadDefault } from "../lazy.js";
|
|
3
|
-
const cspell = defineLazyConfig("cspell", async () => {
|
|
4
|
-
const pluginCspell = await loadDefault("@cspell/eslint-plugin");
|
|
5
|
-
return [
|
|
6
|
-
{
|
|
7
|
-
files: GLOB_JS_TS_ALL,
|
|
8
|
-
name: "integrations/cspell",
|
|
9
|
-
plugins: { "@cspell": pluginCspell },
|
|
10
|
-
rules: {
|
|
11
|
-
"@cspell/spellchecker": ["warn", {
|
|
12
|
-
autoFix: false,
|
|
13
|
-
checkComments: true,
|
|
14
|
-
checkIdentifiers: true,
|
|
15
|
-
checkStrings: true,
|
|
16
|
-
checkStringTemplates: true,
|
|
17
|
-
numSuggestions: 3
|
|
18
|
-
}]
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
];
|
|
22
|
-
});
|
|
23
|
-
export {
|
|
24
|
-
cspell
|
|
25
|
-
};
|
|
26
|
-
//# sourceMappingURL=cspell.js.map
|
package/dist/tools/cspell.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/tools/cspell.ts"],"sourcesContent":["import { GLOB_JS_TS_ALL } from '@santi020k/eslint-config-core'\n\nimport type PluginCspell from '@cspell/eslint-plugin'\nimport type { TSESLint } from '@typescript-eslint/utils'\n\nimport { defineLazyConfig, loadDefault } from '../lazy.js'\n\n/**\n * CSpell ESLint configuration\n * Enables spell checking in your codebase\n */\nexport const cspell: () => Promise<TSESLint.FlatConfig.ConfigArray> = defineLazyConfig('cspell', async () => {\n const pluginCspell = await loadDefault<typeof PluginCspell>('@cspell/eslint-plugin')\n\n return [\n {\n files: GLOB_JS_TS_ALL,\n name: 'integrations/cspell',\n plugins: { '@cspell': pluginCspell },\n rules: {\n '@cspell/spellchecker': ['warn', {\n autoFix: false,\n checkComments: true,\n checkIdentifiers: true,\n checkStrings: true,\n checkStringTemplates: true,\n numSuggestions: 3\n }]\n }\n }\n ]\n})\n"],"mappings":"AAAA,SAAS,sBAAsB;AAK/B,SAAS,kBAAkB,mBAAmB;AAMvC,MAAM,SAAyD,iBAAiB,UAAU,YAAY;AAC3G,QAAM,eAAe,MAAM,YAAiC,uBAAuB;AAEnF,SAAO;AAAA,IACL;AAAA,MACE,OAAO;AAAA,MACP,MAAM;AAAA,MACN,SAAS,EAAE,WAAW,aAAa;AAAA,MACnC,OAAO;AAAA,QACL,wBAAwB,CAAC,QAAQ;AAAA,UAC/B,SAAS;AAAA,UACT,eAAe;AAAA,UACf,kBAAkB;AAAA,UAClB,cAAc;AAAA,UACd,sBAAsB;AAAA,UACtB,gBAAgB;AAAA,QAClB,CAAC;AAAA,MACH;AAAA,IACF;AAAA,EACF;AACF,CAAC;","names":[]}
|
package/dist/tools/docker.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { TSESLint } from '@typescript-eslint/utils';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Docker tooling ESLint configuration
|
|
5
|
-
* Covers Docker Compose YAML files. Dockerfile linting is intentionally left to
|
|
6
|
-
* dedicated Dockerfile linters until a stable ESLint parser/plugin is added.
|
|
7
|
-
*/
|
|
8
|
-
declare const docker: () => Promise<TSESLint.FlatConfig.ConfigArray>;
|
|
9
|
-
|
|
10
|
-
export { docker };
|
package/dist/tools/docker.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { yaml } from "../formats/yaml.js";
|
|
2
|
-
const docker = async () => [
|
|
3
|
-
...await yaml(),
|
|
4
|
-
{
|
|
5
|
-
files: [
|
|
6
|
-
"**/compose.{yml,yaml}",
|
|
7
|
-
"**/compose.*.{yml,yaml}",
|
|
8
|
-
"**/docker-compose.{yml,yaml}",
|
|
9
|
-
"**/docker-compose.*.{yml,yaml}"
|
|
10
|
-
],
|
|
11
|
-
name: "eslint-config-integrations/docker",
|
|
12
|
-
rules: {
|
|
13
|
-
"yml/no-empty-mapping-value": "error",
|
|
14
|
-
"yml/no-empty-sequence-entry": "error"
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
];
|
|
18
|
-
export {
|
|
19
|
-
docker
|
|
20
|
-
};
|
|
21
|
-
//# sourceMappingURL=docker.js.map
|
package/dist/tools/docker.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/tools/docker.ts"],"sourcesContent":["import type { TSESLint } from '@typescript-eslint/utils'\n\nimport { yaml } from '../formats/yaml.js'\n\n/**\n * Docker tooling ESLint configuration\n * Covers Docker Compose YAML files. Dockerfile linting is intentionally left to\n * dedicated Dockerfile linters until a stable ESLint parser/plugin is added.\n */\nexport const docker = async (): Promise<TSESLint.FlatConfig.ConfigArray> => [\n ...await yaml(),\n {\n files: [\n '**/compose.{yml,yaml}',\n '**/compose.*.{yml,yaml}',\n '**/docker-compose.{yml,yaml}',\n '**/docker-compose.*.{yml,yaml}'\n ],\n name: 'eslint-config-integrations/docker',\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,SAAS,YAAsD;AAAA,EAC1E,GAAG,MAAM,KAAK;AAAA,EACd;AAAA,IACE,OAAO;AAAA,MACL;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA,IACA,MAAM;AAAA,IACN,OAAO;AAAA,MACL,8BAA8B;AAAA,MAC9B,+BAA+B;AAAA,IACjC;AAAA,EACF;AACF;","names":[]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { TSESLint } from '@typescript-eslint/utils';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* GitHub Actions ESLint configuration
|
|
5
|
-
* Lints workflow YAML files with the shared YAML rules and workflow-specific
|
|
6
|
-
* guardrails.
|
|
7
|
-
*/
|
|
8
|
-
declare const githubActions: () => Promise<TSESLint.FlatConfig.ConfigArray>;
|
|
9
|
-
|
|
10
|
-
export { githubActions };
|
|
@@ -1,16 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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":[]}
|
package/dist/tools/index.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
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';
|
package/dist/tools/index.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
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
|
package/dist/tools/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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":[]}
|
package/dist/tools/jsdoc.d.ts
DELETED
package/dist/tools/jsdoc.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
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
|
package/dist/tools/jsdoc.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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.d.ts
DELETED
package/dist/tools/nx.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
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
|
package/dist/tools/nx.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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":[]}
|
package/dist/tools/pnpm.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
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 };
|
package/dist/tools/pnpm.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
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
|
package/dist/tools/pnpm.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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":[]}
|
package/dist/tools/prettier.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
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 };
|
package/dist/tools/prettier.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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":[]}
|
package/dist/tools/swagger.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
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 };
|
package/dist/tools/swagger.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
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
|