@fabdeh/eslint-config 0.11.2 → 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.
Files changed (3) hide show
  1. package/dist/index.d.mts +394 -187
  2. package/dist/index.mjs +13 -15
  3. package/package.json +21 -22
package/dist/index.mjs CHANGED
@@ -366,7 +366,7 @@ function getPlaywrightDirectory() {
366
366
  */
367
367
  async function angular(options = {}) {
368
368
  const angularEslint = await interopDefault(import("angular-eslint"));
369
- const { enableAccessibilityRules = true, overrides = {}, prefix = "app", ignoreClassNamePatternForInjectableProvidedIn: ignoreClassNamePattern, componentStylesMode = "string", preferOnPushOnly = true, banExperimentalApi = true, banDeveloperPreviewApi = true, inlineTemplateAndStyles = false } = options;
369
+ const { enableAccessibilityRules = true, overrides = {}, prefix = "app", ignoreClassNamePatternForInjectableProvidedIn: ignoreClassNamePattern, componentStylesMode = "string", banExperimentalApi = true, banDeveloperPreviewApi = true, inlineTemplateAndStyles = false } = options;
370
370
  const tsOverrides = {};
371
371
  const htmlOverrides = {};
372
372
  for (const [key, value] of Object.entries(overrides)) if (key.startsWith("@angular-eslint/template/")) htmlOverrides[key] = value;
@@ -427,7 +427,6 @@ async function angular(options = {}) {
427
427
  "@angular-eslint/prefer-output-emitter-ref": "error",
428
428
  "@angular-eslint/prefer-output-readonly": "error",
429
429
  "@angular-eslint/prefer-signals": "error",
430
- ...preferOnPushOnly ? { "@angular-eslint/prefer-on-push-component-change-detection": "error" } : {},
431
430
  "@angular-eslint/relative-url-prefix": "error",
432
431
  "@angular-eslint/require-lifecycle-on-prototype": "error",
433
432
  "@angular-eslint/sort-keys-in-type-decorator": "error",
@@ -1532,18 +1531,14 @@ async function detectCatalogUsage() {
1532
1531
  * @returns An array defining PNPM workspace rules, plugins, and their configurations.
1533
1532
  */
1534
1533
  async function pnpm(options = {}) {
1535
- const [pluginPnpm, pluginYaml, yamlParser] = await Promise.all([
1536
- interopDefault(import("eslint-plugin-pnpm")),
1537
- interopDefault(import("eslint-plugin-yml")),
1538
- interopDefault(import("yaml-eslint-parser"))
1539
- ]);
1534
+ const [pluginPnpm, pluginYaml] = await Promise.all([interopDefault(import("eslint-plugin-pnpm")), interopDefault(import("eslint-plugin-yml"))]);
1540
1535
  const { catalogs = await detectCatalogUsage(), isInEditor = false, json = true, sort = true, yaml = true } = options;
1541
1536
  const configs = [];
1542
1537
  if (json) configs.push({
1543
1538
  name: "fabdeh/pnpm/package-json",
1544
1539
  files: ["package.json", "**/package.json"],
1545
- language: "jsonc/x",
1546
1540
  plugins: { pnpm: pluginPnpm },
1541
+ language: "jsonc/x",
1547
1542
  rules: {
1548
1543
  ...catalogs ? { "pnpm/json-enforce-catalog": ["error", {
1549
1544
  autofix: !isInEditor,
@@ -1556,22 +1551,25 @@ async function pnpm(options = {}) {
1556
1551
  if (yaml) configs.push({
1557
1552
  name: "fabdeh/pnpm/pnpm-workspace-yaml",
1558
1553
  files: ["pnpm-workspace.yaml"],
1559
- languageOptions: { parser: yamlParser },
1560
1554
  plugins: { pnpm: pluginPnpm },
1555
+ language: "yaml/yaml",
1561
1556
  rules: {
1562
- "pnpm/yaml-enforce-settings": ["error", { settings: {
1563
- shellEmulator: true,
1564
- trustPolicy: "no-downgrade"
1565
- } }],
1557
+ "pnpm/yaml-enforce-settings": ["error", {
1558
+ autofix: !isInEditor,
1559
+ settings: {
1560
+ shellEmulator: true,
1561
+ trustPolicy: "no-downgrade"
1562
+ }
1563
+ }],
1566
1564
  "pnpm/yaml-no-duplicate-catalog-item": "error",
1567
1565
  "pnpm/yaml-no-unused-catalog-item": "error"
1568
1566
  }
1569
1567
  });
1570
1568
  if (sort) configs.push({
1569
+ name: "fabdeh/pnpm/pnpm-workspace-yaml-sort",
1571
1570
  files: ["pnpm-workspace.yaml"],
1572
- languageOptions: { parser: yamlParser },
1573
- name: "antfu/pnpm/pnpm-workspace-yaml-sort",
1574
1571
  plugins: { yaml: pluginYaml },
1572
+ language: "yaml/yaml",
1575
1573
  rules: { "yaml/sort-keys": [
1576
1574
  "error",
1577
1575
  {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fabdeh/eslint-config",
3
3
  "type": "module",
4
- "version": "0.11.2",
4
+ "version": "0.12.1",
5
5
  "description": "My personal eslint config preset",
6
6
  "author": {
7
7
  "name": "Fabien Dehopré",
@@ -50,24 +50,24 @@
50
50
  },
51
51
  "dependencies": {
52
52
  "@antfu/install-pkg": "^1.1.0",
53
- "@clack/prompts": "^1.5.0",
53
+ "@clack/prompts": "^1.5.1",
54
54
  "@eslint-community/eslint-plugin-eslint-comments": "^4.7.2",
55
55
  "@eslint/markdown": "^8.0.2",
56
- "@ngrx/eslint-plugin": "^21.1.0",
56
+ "@ngrx/eslint-plugin": "^21.1.1",
57
57
  "@stylistic/eslint-plugin": "^5.10.0",
58
- "@typescript-eslint/eslint-plugin": "^8.60.0",
59
- "@typescript-eslint/parser": "^8.60.0",
60
- "@typescript-eslint/utils": "^8.60.0",
58
+ "@typescript-eslint/eslint-plugin": "^8.61.0",
59
+ "@typescript-eslint/parser": "^8.61.0",
60
+ "@typescript-eslint/utils": "^8.61.0",
61
61
  "@vitest/eslint-plugin": "^1.6.19",
62
- "angular-eslint": "^21.4.0",
62
+ "angular-eslint": "^22.0.0",
63
63
  "eslint-config-flat-gitignore": "^2.3.0",
64
64
  "eslint-flat-config-utils": "^3.2.0",
65
65
  "eslint-merge-processors": "^2.0.0",
66
66
  "eslint-plugin-import-x": "^4.16.2",
67
67
  "eslint-plugin-jest-dom-ya": "^1.0.1",
68
- "eslint-plugin-jsdoc": "^63.0.1",
68
+ "eslint-plugin-jsdoc": "^63.0.2",
69
69
  "eslint-plugin-jsonc": "^3.2.0",
70
- "eslint-plugin-n": "^18.0.1",
70
+ "eslint-plugin-n": "^18.1.0",
71
71
  "eslint-plugin-perfectionist": "^5.9.0",
72
72
  "eslint-plugin-playwright": "^2.10.4",
73
73
  "eslint-plugin-pnpm": "^1.6.1",
@@ -75,7 +75,7 @@
75
75
  "eslint-plugin-regexp": "^3.1.0",
76
76
  "eslint-plugin-testing-library": "^7.16.2",
77
77
  "eslint-plugin-toml": "^1.4.0",
78
- "eslint-plugin-unicorn": "^64.0.0",
78
+ "eslint-plugin-unicorn": "^65.0.1",
79
79
  "eslint-plugin-unused-imports": "^4.4.1",
80
80
  "eslint-plugin-yml": "^3.4.0",
81
81
  "find-up-simple": "^1.0.1",
@@ -83,25 +83,24 @@
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.60.0",
87
- "yaml-eslint-parser": "^2.0.0"
86
+ "typescript-eslint": "^8.61.0"
88
87
  },
89
88
  "devDependencies": {
90
- "@angular/core": "^21.2.15",
89
+ "@angular/core": "^22.0.0",
91
90
  "@arethetypeswrong/cli": "^0.18.3",
92
91
  "@commitlint/cli": "^21.0.2",
93
92
  "@commitlint/config-conventional": "^21.0.2",
94
93
  "@commitlint/cz-commitlint": "^21.0.2",
95
94
  "@commitlint/lint": "^21.0.2",
96
95
  "@commitlint/load": "^21.0.2",
97
- "@ngrx/effects": "^21.1.0",
98
- "@ngrx/operators": "^21.1.0",
99
- "@ngrx/signals": "^21.1.0",
100
- "@ngrx/store": "^21.1.0",
101
- "@testing-library/angular": "^19.3.0",
96
+ "@ngrx/effects": "^21.1.1",
97
+ "@ngrx/operators": "^21.1.1",
98
+ "@ngrx/signals": "^21.1.1",
99
+ "@ngrx/store": "^21.1.1",
100
+ "@testing-library/angular": "^19.4.1",
102
101
  "@testing-library/jest-dom": "^6.9.1",
103
102
  "@types/fs-extra": "^11.0.4",
104
- "@types/node": "^24.12.4",
103
+ "@types/node": "^24.13.1",
105
104
  "@vitest/coverage-v8": "^4.1.8",
106
105
  "@vitest/ui": "^4.1.8",
107
106
  "bumpp": "^11.1.0",
@@ -118,14 +117,14 @@
118
117
  "jiti": "^2.7.0",
119
118
  "nano-staged": "^1.0.2",
120
119
  "playwright": "^1.60.0",
121
- "semver": "^7.8.1",
120
+ "semver": "^7.8.3",
122
121
  "simple-git-hooks": "^2.13.1",
123
122
  "tailwindcss": "^4.3.0",
124
- "tsdown": "^0.22.1",
123
+ "tsdown": "^0.22.2",
125
124
  "tsx": "^4.22.4",
126
125
  "typescript": "^6.0.3",
127
126
  "vitest": "^4.1.8",
128
- "@fabdeh/eslint-config": "0.11.2"
127
+ "@fabdeh/eslint-config": "0.12.1"
129
128
  },
130
129
  "simple-git-hooks": {
131
130
  "pre-commit": "pnpm nano-staged",