@fabdeh/eslint-config 0.12.0 → 0.12.1

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/index.d.mts CHANGED
@@ -18080,7 +18080,7 @@ type SpacedComment = [] | [("always" | "never")] | [("always" | "never"), {
18080
18080
  //#endregion
18081
18081
  //#region src/typegen/index.d.ts
18082
18082
  type RuleOptions = AngularEslintRuleOptions | AngularEslintTemplateRuleOptions | BetterTailwindcssRuleOptions | DefaultRuleOptions | EslintCommunityEslintCommentsRuleOptions | ImportXRuleOptions | JestDomYaRuleOptions | JsdocRuleOptions | JsoncRuleOptions | MarkdownRuleOptions | NgrxRuleOptions | NRuleOptions | PerfectionistRuleOptions | PnpmRuleOptions | PreferArrowFunctionsRuleOptions | RegexpRuleOptions | StylisticRuleOptions | TomlRuleOptions | TypescriptEslintRuleOptions | UnicornRuleOptions | UnusedImportsRuleOptions | VitestRuleOptions | YamlRuleOptions | TestingLibraryRuleOptions;
18083
- type ConfigNames = 'antfu/pnpm/pnpm-workspace-yaml-sort' | 'fabdeh/angular-template/rules' | 'fabdeh/angular/rules' | 'fabdeh/app/typescript/rules' | 'fabdeh/app/typescript/setup' | 'fabdeh/comments/rules' | 'fabdeh/ignores' | 'fabdeh/imports/rules' | 'fabdeh/imports/ts-disables' | 'fabdeh/javascript/rules' | 'fabdeh/javascript/setup' | 'fabdeh/jsdoc/rules' | 'fabdeh/jsdoc/ts-only/rules' | 'fabdeh/jsonc/rules' | 'fabdeh/jsonc/setup' | 'fabdeh/markdown/disables' | 'fabdeh/markdown/parser' | 'fabdeh/markdown/processor' | 'fabdeh/markdown/rules' | 'fabdeh/markdown/setup' | 'fabdeh/ngrx-effects/rules' | 'fabdeh/ngrx-operators/rules' | 'fabdeh/ngrx-signals/rules' | 'fabdeh/ngrx-store/rules' | 'fabdeh/ngrx/setup' | 'fabdeh/node/rules' | 'fabdeh/perfectionist/rules' | 'fabdeh/pnpm/package-json' | 'fabdeh/pnpm/pnpm-workspace-yaml' | 'fabdeh/regexp/rules' | 'fabdeh/sort/package-json' | 'fabdeh/sort/tsconfig-json' | 'fabdeh/stylistic/rules' | 'fabdeh/tailwindcss/rules' | 'fabdeh/toml/rules' | 'fabdeh/toml/setup' | 'fabdeh/unicorn/rules' | 'fabdeh/vitest/rules' | 'fabdeh/yaml/rules' | 'fabdeh/yaml/setup';
18083
+ type ConfigNames = 'fabdeh/angular-template/rules' | 'fabdeh/angular/rules' | 'fabdeh/app/typescript/rules' | 'fabdeh/app/typescript/setup' | 'fabdeh/comments/rules' | 'fabdeh/ignores' | 'fabdeh/imports/rules' | 'fabdeh/imports/ts-disables' | 'fabdeh/javascript/rules' | 'fabdeh/javascript/setup' | 'fabdeh/jsdoc/rules' | 'fabdeh/jsdoc/ts-only/rules' | 'fabdeh/jsonc/rules' | 'fabdeh/jsonc/setup' | 'fabdeh/markdown/disables' | 'fabdeh/markdown/parser' | 'fabdeh/markdown/processor' | 'fabdeh/markdown/rules' | 'fabdeh/markdown/setup' | 'fabdeh/ngrx-effects/rules' | 'fabdeh/ngrx-operators/rules' | 'fabdeh/ngrx-signals/rules' | 'fabdeh/ngrx-store/rules' | 'fabdeh/ngrx/setup' | 'fabdeh/node/rules' | 'fabdeh/perfectionist/rules' | 'fabdeh/pnpm/package-json' | 'fabdeh/pnpm/pnpm-workspace-yaml' | 'fabdeh/pnpm/pnpm-workspace-yaml-sort' | 'fabdeh/regexp/rules' | 'fabdeh/sort/package-json' | 'fabdeh/sort/tsconfig-json' | 'fabdeh/stylistic/rules' | 'fabdeh/tailwindcss/rules' | 'fabdeh/toml/rules' | 'fabdeh/toml/setup' | 'fabdeh/unicorn/rules' | 'fabdeh/vitest/rules' | 'fabdeh/yaml/rules' | 'fabdeh/yaml/setup';
18084
18084
  //#endregion
18085
18085
  //#region src/shared/constants.d.ts
18086
18086
  declare const OPTIONS_SYMBOL: unique symbol;
package/dist/index.mjs CHANGED
@@ -1531,18 +1531,14 @@ async function detectCatalogUsage() {
1531
1531
  * @returns An array defining PNPM workspace rules, plugins, and their configurations.
1532
1532
  */
1533
1533
  async function pnpm(options = {}) {
1534
- const [pluginPnpm, pluginYaml, yamlParser] = await Promise.all([
1535
- interopDefault(import("eslint-plugin-pnpm")),
1536
- interopDefault(import("eslint-plugin-yml")),
1537
- interopDefault(import("yaml-eslint-parser"))
1538
- ]);
1534
+ const [pluginPnpm, pluginYaml] = await Promise.all([interopDefault(import("eslint-plugin-pnpm")), interopDefault(import("eslint-plugin-yml"))]);
1539
1535
  const { catalogs = await detectCatalogUsage(), isInEditor = false, json = true, sort = true, yaml = true } = options;
1540
1536
  const configs = [];
1541
1537
  if (json) configs.push({
1542
1538
  name: "fabdeh/pnpm/package-json",
1543
1539
  files: ["package.json", "**/package.json"],
1544
- language: "jsonc/x",
1545
1540
  plugins: { pnpm: pluginPnpm },
1541
+ language: "jsonc/x",
1546
1542
  rules: {
1547
1543
  ...catalogs ? { "pnpm/json-enforce-catalog": ["error", {
1548
1544
  autofix: !isInEditor,
@@ -1555,22 +1551,25 @@ async function pnpm(options = {}) {
1555
1551
  if (yaml) configs.push({
1556
1552
  name: "fabdeh/pnpm/pnpm-workspace-yaml",
1557
1553
  files: ["pnpm-workspace.yaml"],
1558
- languageOptions: { parser: yamlParser },
1559
1554
  plugins: { pnpm: pluginPnpm },
1555
+ language: "yaml/yaml",
1560
1556
  rules: {
1561
- "pnpm/yaml-enforce-settings": ["error", { settings: {
1562
- shellEmulator: true,
1563
- trustPolicy: "no-downgrade"
1564
- } }],
1557
+ "pnpm/yaml-enforce-settings": ["error", {
1558
+ autofix: !isInEditor,
1559
+ settings: {
1560
+ shellEmulator: true,
1561
+ trustPolicy: "no-downgrade"
1562
+ }
1563
+ }],
1565
1564
  "pnpm/yaml-no-duplicate-catalog-item": "error",
1566
1565
  "pnpm/yaml-no-unused-catalog-item": "error"
1567
1566
  }
1568
1567
  });
1569
1568
  if (sort) configs.push({
1569
+ name: "fabdeh/pnpm/pnpm-workspace-yaml-sort",
1570
1570
  files: ["pnpm-workspace.yaml"],
1571
- languageOptions: { parser: yamlParser },
1572
- name: "antfu/pnpm/pnpm-workspace-yaml-sort",
1573
1571
  plugins: { yaml: pluginYaml },
1572
+ language: "yaml/yaml",
1574
1573
  rules: { "yaml/sort-keys": [
1575
1574
  "error",
1576
1575
  {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fabdeh/eslint-config",
3
3
  "type": "module",
4
- "version": "0.12.0",
4
+ "version": "0.12.1",
5
5
  "description": "My personal eslint config preset",
6
6
  "author": {
7
7
  "name": "Fabien Dehopré",
@@ -83,8 +83,7 @@
83
83
  "globals": "^17.6.0",
84
84
  "jsonc-eslint-parser": "^3.1.0",
85
85
  "local-pkg": "^1.2.1",
86
- "typescript-eslint": "^8.61.0",
87
- "yaml-eslint-parser": "^2.0.0"
86
+ "typescript-eslint": "^8.61.0"
88
87
  },
89
88
  "devDependencies": {
90
89
  "@angular/core": "^22.0.0",
@@ -125,7 +124,7 @@
125
124
  "tsx": "^4.22.4",
126
125
  "typescript": "^6.0.3",
127
126
  "vitest": "^4.1.8",
128
- "@fabdeh/eslint-config": "0.12.0"
127
+ "@fabdeh/eslint-config": "0.12.1"
129
128
  },
130
129
  "simple-git-hooks": {
131
130
  "pre-commit": "pnpm nano-staged",