@codeperfect/eslint-config 1.8.0 → 1.9.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/README.md +20 -29
- package/dist/.tsbuildinfo +1 -1
- package/dist/bootstrap/index.js +1 -0
- package/dist/codeperfect-eslint-config-1.0.0.tgz +0 -0
- package/dist/domain/config-composition.js +0 -1
- package/dist/domain/index.js +0 -1
- package/dist/domain/module-taxonomy.js +0 -1
- package/dist/domain/types.js +0 -1
- package/dist/index.js +1 -2
- package/dist/infrastructure/architecture/boundaries.js +41 -116
- package/dist/infrastructure/architecture/import-x.js +7 -19
- package/dist/infrastructure/architecture/index.js +0 -1
- package/dist/infrastructure/config-factory.js +7 -6
- package/dist/infrastructure/configs/index.js +0 -1
- package/dist/infrastructure/core/codeperfect.js +0 -1
- package/dist/infrastructure/core/eslint.js +8 -3
- package/dist/infrastructure/core/index.js +0 -1
- package/dist/infrastructure/core/resolver.js +0 -1
- package/dist/infrastructure/core/typescript.js +4 -1
- package/dist/infrastructure/diagnostics.js +7 -23
- package/dist/infrastructure/docs/comments.js +0 -1
- package/dist/infrastructure/docs/index.js +0 -1
- package/dist/infrastructure/docs/jsdoc-config.js +0 -1
- package/dist/infrastructure/docs/jsdoc.js +0 -1
- package/dist/infrastructure/index.js +0 -1
- package/dist/infrastructure/plugin-loaders.js +3 -3
- package/dist/infrastructure/plugin-state.js +0 -1
- package/dist/infrastructure/runtime/angular-eslint.js +0 -1
- package/dist/infrastructure/runtime/index.js +0 -1
- package/dist/infrastructure/rxjs-x.js +0 -1
- package/dist/infrastructure/style/index.js +0 -1
- package/dist/infrastructure/style/perfectionist.js +0 -1
- package/dist/infrastructure/style/prettier.js +0 -1
- package/dist/infrastructure/style/stylistic.js +0 -1
- package/dist/infrastructure/style/unicorn.js +0 -1
- package/dist/infrastructure/testing/index.js +0 -1
- package/dist/infrastructure/testing/jasmine.js +0 -1
- package/dist/infrastructure/testing/jest.js +0 -1
- package/dist/infrastructure/testing/playwright.js +0 -1
- package/dist/infrastructure/testing/vitest-e2e.js +0 -1
- package/dist/infrastructure/testing/vitest.js +0 -1
- package/dist/infrastructure/utilities.js +2 -89
- package/package.json +12 -12
- package/dist/domain/config-composition.d.ts +0 -8
- package/dist/domain/config-composition.d.ts.map +0 -1
- package/dist/domain/index.d.ts +0 -4
- package/dist/domain/index.d.ts.map +0 -1
- package/dist/domain/module-taxonomy.d.ts +0 -72
- package/dist/domain/module-taxonomy.d.ts.map +0 -1
- package/dist/domain/types.d.ts +0 -68
- package/dist/domain/types.d.ts.map +0 -1
- package/dist/index.d.ts +0 -3
- package/dist/index.d.ts.map +0 -1
- package/dist/infrastructure/architecture/boundaries.d.ts +0 -22
- package/dist/infrastructure/architecture/boundaries.d.ts.map +0 -1
- package/dist/infrastructure/architecture/import-x.d.ts +0 -12
- package/dist/infrastructure/architecture/import-x.d.ts.map +0 -1
- package/dist/infrastructure/architecture/index.d.ts +0 -3
- package/dist/infrastructure/architecture/index.d.ts.map +0 -1
- package/dist/infrastructure/config-factory.d.ts +0 -14
- package/dist/infrastructure/config-factory.d.ts.map +0 -1
- package/dist/infrastructure/configs/index.d.ts +0 -8
- package/dist/infrastructure/configs/index.d.ts.map +0 -1
- package/dist/infrastructure/core/codeperfect.d.ts +0 -11
- package/dist/infrastructure/core/codeperfect.d.ts.map +0 -1
- package/dist/infrastructure/core/eslint.d.ts +0 -12
- package/dist/infrastructure/core/eslint.d.ts.map +0 -1
- package/dist/infrastructure/core/index.d.ts +0 -5
- package/dist/infrastructure/core/index.d.ts.map +0 -1
- package/dist/infrastructure/core/resolver.d.ts +0 -11
- package/dist/infrastructure/core/resolver.d.ts.map +0 -1
- package/dist/infrastructure/core/typescript.d.ts +0 -11
- package/dist/infrastructure/core/typescript.d.ts.map +0 -1
- package/dist/infrastructure/diagnostics.d.ts +0 -53
- package/dist/infrastructure/diagnostics.d.ts.map +0 -1
- package/dist/infrastructure/docs/comments.d.ts +0 -11
- package/dist/infrastructure/docs/comments.d.ts.map +0 -1
- package/dist/infrastructure/docs/index.d.ts +0 -3
- package/dist/infrastructure/docs/index.d.ts.map +0 -1
- package/dist/infrastructure/docs/jsdoc-config.d.ts +0 -14
- package/dist/infrastructure/docs/jsdoc-config.d.ts.map +0 -1
- package/dist/infrastructure/docs/jsdoc.d.ts +0 -12
- package/dist/infrastructure/docs/jsdoc.d.ts.map +0 -1
- package/dist/infrastructure/index.d.ts +0 -5
- package/dist/infrastructure/index.d.ts.map +0 -1
- package/dist/infrastructure/plugin-loaders.d.ts +0 -125
- package/dist/infrastructure/plugin-loaders.d.ts.map +0 -1
- package/dist/infrastructure/plugin-state.d.ts +0 -26
- package/dist/infrastructure/plugin-state.d.ts.map +0 -1
- package/dist/infrastructure/runtime/angular-eslint.d.ts +0 -12
- package/dist/infrastructure/runtime/angular-eslint.d.ts.map +0 -1
- package/dist/infrastructure/runtime/index.d.ts +0 -2
- package/dist/infrastructure/runtime/index.d.ts.map +0 -1
- package/dist/infrastructure/rxjs-x.d.ts +0 -11
- package/dist/infrastructure/rxjs-x.d.ts.map +0 -1
- package/dist/infrastructure/style/index.d.ts +0 -5
- package/dist/infrastructure/style/index.d.ts.map +0 -1
- package/dist/infrastructure/style/perfectionist.d.ts +0 -11
- package/dist/infrastructure/style/perfectionist.d.ts.map +0 -1
- package/dist/infrastructure/style/prettier.d.ts +0 -11
- package/dist/infrastructure/style/prettier.d.ts.map +0 -1
- package/dist/infrastructure/style/stylistic.d.ts +0 -11
- package/dist/infrastructure/style/stylistic.d.ts.map +0 -1
- package/dist/infrastructure/style/unicorn.d.ts +0 -11
- package/dist/infrastructure/style/unicorn.d.ts.map +0 -1
- package/dist/infrastructure/testing/index.d.ts +0 -6
- package/dist/infrastructure/testing/index.d.ts.map +0 -1
- package/dist/infrastructure/testing/jasmine.d.ts +0 -11
- package/dist/infrastructure/testing/jasmine.d.ts.map +0 -1
- package/dist/infrastructure/testing/jest.d.ts +0 -11
- package/dist/infrastructure/testing/jest.d.ts.map +0 -1
- package/dist/infrastructure/testing/playwright.d.ts +0 -12
- package/dist/infrastructure/testing/playwright.d.ts.map +0 -1
- package/dist/infrastructure/testing/vitest-e2e.d.ts +0 -11
- package/dist/infrastructure/testing/vitest-e2e.d.ts.map +0 -1
- package/dist/infrastructure/testing/vitest.d.ts +0 -11
- package/dist/infrastructure/testing/vitest.d.ts.map +0 -1
- package/dist/infrastructure/utilities.d.ts +0 -41
- package/dist/infrastructure/utilities.d.ts.map +0 -1
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Linter } from "eslint";
|
|
2
|
-
/**
|
|
3
|
-
* Load Jest plugin configuration when available.
|
|
4
|
-
* @returns Return value output.
|
|
5
|
-
* @example
|
|
6
|
-
* ```typescript
|
|
7
|
-
* await jest();
|
|
8
|
-
* ```
|
|
9
|
-
*/
|
|
10
|
-
export declare function jest(): Promise<Linter.Config[]>;
|
|
11
|
-
//# sourceMappingURL=jest.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"jest.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/testing/jest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAIrC;;;;;;;GAOG;AACH,wBAAsB,IAAI,IAAI,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,CAUrD"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { Linter } from "eslint";
|
|
2
|
-
/**
|
|
3
|
-
* Build and return Playwright-specific ESLint configs and rule adjustments.
|
|
4
|
-
* @returns Return value output.
|
|
5
|
-
* @example
|
|
6
|
-
* ```typescript
|
|
7
|
-
* await playwright();
|
|
8
|
-
* ```
|
|
9
|
-
*/
|
|
10
|
-
declare function playwright(): Promise<Linter.Config[]>;
|
|
11
|
-
export { playwright };
|
|
12
|
-
//# sourceMappingURL=playwright.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"playwright.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/testing/playwright.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAIrC;;;;;;;GAOG;AACH,iBAAe,UAAU,IAAI,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,CAuBpD;AAED,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Linter } from "eslint";
|
|
2
|
-
/**
|
|
3
|
-
* Load Vitest plugin configuration for end-to-end tests.
|
|
4
|
-
* @returns Return value output.
|
|
5
|
-
* @example
|
|
6
|
-
* ```typescript
|
|
7
|
-
* await vitestE2e();
|
|
8
|
-
* ```
|
|
9
|
-
*/
|
|
10
|
-
export declare function vitestE2e(): Promise<Linter.Config[]>;
|
|
11
|
-
//# sourceMappingURL=vitest-e2e.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vitest-e2e.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/testing/vitest-e2e.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAIrC;;;;;;;GAOG;AACH,wBAAsB,SAAS,IAAI,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,CAuB1D"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Linter } from "eslint";
|
|
2
|
-
/**
|
|
3
|
-
* Load Vitest plugin configuration when available.
|
|
4
|
-
* @returns Return value output.
|
|
5
|
-
* @example
|
|
6
|
-
* ```typescript
|
|
7
|
-
* await vitest();
|
|
8
|
-
* ```
|
|
9
|
-
*/
|
|
10
|
-
export declare function vitest(): Promise<Linter.Config[]>;
|
|
11
|
-
//# sourceMappingURL=vitest.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vitest.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/testing/vitest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAIrC;;;;;;;GAOG;AACH,wBAAsB,MAAM,IAAI,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,CAwBvD"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import type { Linter } from "eslint";
|
|
2
|
-
import type { PluginName } from "../domain/index.js";
|
|
3
|
-
/** Runtime loading modes for plugin config loaders. */
|
|
4
|
-
type LoadMode = "optional" | "required";
|
|
5
|
-
/**
|
|
6
|
-
* Applies rule overrides to a configuration array.
|
|
7
|
-
* @param config Input config value.
|
|
8
|
-
* @param ruleOverrides Input ruleOverrides value.
|
|
9
|
-
* @param availablePlugins Input availablePlugins value.
|
|
10
|
-
* @returns Return value output.
|
|
11
|
-
* @example
|
|
12
|
-
* ```typescript
|
|
13
|
-
* applyRuleOverrides([], { "no-console": "off" });
|
|
14
|
-
* ```
|
|
15
|
-
*/
|
|
16
|
-
declare function applyRuleOverrides(config: Linter.Config[], ruleOverrides?: Linter.RulesRecord, availablePlugins?: ReadonlySet<string>): Linter.Config[];
|
|
17
|
-
/**
|
|
18
|
-
* Collects plugin names from config entries.
|
|
19
|
-
* @param configs Input configs value.
|
|
20
|
-
* @returns Return value output.
|
|
21
|
-
* @example
|
|
22
|
-
* ```typescript
|
|
23
|
-
* collectAvailablePlugins();
|
|
24
|
-
* ```
|
|
25
|
-
*/
|
|
26
|
-
declare function collectAvailablePlugins(configs: Linter.Config[]): ReadonlySet<string>;
|
|
27
|
-
/**
|
|
28
|
-
* Loads a plugin config with a helpful, colorful error message on failure.
|
|
29
|
-
* @param pluginName Input pluginName value.
|
|
30
|
-
* @param loader Input loader value.
|
|
31
|
-
* @param mode Specifies whether loader failures are fatal or skippable.
|
|
32
|
-
* @returns Return value output.
|
|
33
|
-
* @example
|
|
34
|
-
* ```typescript
|
|
35
|
-
* loadPluginConfig();
|
|
36
|
-
* ```
|
|
37
|
-
*/
|
|
38
|
-
declare function loadPluginConfig(pluginName: PluginName, loader: () => Linter.Config[] | Promise<Linter.Config[]>, mode?: LoadMode): Promise<Linter.Config[]>;
|
|
39
|
-
export { applyRuleOverrides, collectAvailablePlugins, loadPluginConfig };
|
|
40
|
-
export type { LoadMode };
|
|
41
|
-
//# sourceMappingURL=utilities.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utilities.d.ts","sourceRoot":"","sources":["../../src/infrastructure/utilities.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAErC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAI5C,uDAAuD;AACvD,KAAK,QAAQ,GAAG,UAAU,GAAG,UAAU,CAAC;AAExC;;;;;;;;;;GAUG;AACH,iBAAS,kBAAkB,CACzB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,EACvB,aAAa,CAAC,EAAE,MAAM,CAAC,WAAW,EAClC,gBAAgB,GAAE,WAAW,CAAC,MAAM,CAAa,GAChD,MAAM,CAAC,MAAM,EAAE,CAcjB;AAED;;;;;;;;GAQG;AACH,iBAAS,uBAAuB,CAC9B,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GACvB,WAAW,CAAC,MAAM,CAAC,CAYrB;AA+BD;;;;;;;;;;GAUG;AACH,iBAAe,gBAAgB,CAC7B,UAAU,EAAE,UAAU,EACtB,MAAM,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,EACxD,IAAI,GAAE,QAAqB,GAC1B,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,CAY1B;AA4BD,OAAO,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,gBAAgB,EAAE,CAAC;AAEzE,YAAY,EAAE,QAAQ,EAAE,CAAC"}
|