zirka 0.0.62 → 0.0.64

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 CHANGED
@@ -43,7 +43,7 @@ Each config block is loaded lazily — if you don't enable `react`, none of its
43
43
  | `pasikaApp` | — | Pasika rules for a plain TypeScript repository |
44
44
  | `pasikaNextjsApp` | — | Pasika rules for a Next.js application |
45
45
 
46
- Base rules (always included with any block): `@eslint/js` recommended, `@eslint-community/eslint-plugin-eslint-comments`, `eslint-plugin-unicorn`, and the hand-written best-practice, ES6, possible-errors, stylistic, and variables rule sets.
46
+ Base rules (always included with any block): `@eslint/js` recommended, `@eslint-community/eslint-plugin-eslint-comments`, `eslint-plugin-unicorn`, the hand-written best-practice, ES6, possible-errors, stylistic, and variables rule sets, and `eslint-plugin-prettier` (with `eslint-config-prettier` disabling any ESLint stylistic rule that would fight it) — so `eslint --fix` also reformats JS/TS files against whatever `prettier.config` the repository resolves.
47
47
 
48
48
  ### The pasika presets (`pasikaApp` / `pasikaNextjsApp`)
49
49
 
@@ -626,12 +626,14 @@ var init_variables = __esm({
626
626
  });
627
627
 
628
628
  // eslint/_base.ts
629
- var import_js, import_config3, baseConfig;
629
+ var import_js, import_config3, import_eslint_config_prettier, import_eslint_plugin_prettier, baseConfig;
630
630
  var init_base = __esm({
631
631
  "eslint/_base.ts"() {
632
632
  "use strict";
633
633
  import_js = __toESM(require("@eslint/js"), 1);
634
634
  import_config3 = require("eslint/config");
635
+ import_eslint_config_prettier = __toESM(require("eslint-config-prettier"), 1);
636
+ import_eslint_plugin_prettier = __toESM(require("eslint-plugin-prettier"), 1);
635
637
  init_constants();
636
638
  init_best_practice();
637
639
  init_es6();
@@ -653,6 +655,18 @@ var init_base = __esm({
653
655
  ...variablesRules
654
656
  }
655
657
  },
658
+ {
659
+ // eslint-config-prettier's rules (all "off") must come after the rule sets
660
+ // above so they win, disabling any ESLint stylistic rule that would fight
661
+ // prettier. The prettier plugin then runs prettier itself as a rule, so
662
+ // `eslint --fix` also reformats — the config it reads is whatever the
663
+ // consuming repository's own prettier.config resolves to.
664
+ plugins: { prettier: import_eslint_plugin_prettier.default },
665
+ rules: {
666
+ ...import_eslint_config_prettier.default.rules,
667
+ "prettier/prettier": "error"
668
+ }
669
+ },
656
670
  {
657
671
  languageOptions: {
658
672
  ecmaVersion: ECMA_VERSION,
@@ -612,6 +612,8 @@ var init_variables = __esm({
612
612
  // eslint/_base.ts
613
613
  import eslintJavascriptPlugin from "@eslint/js";
614
614
  import { defineConfig as defineConfig3 } from "eslint/config";
615
+ import eslintConfigPrettier from "eslint-config-prettier";
616
+ import prettierPlugin from "eslint-plugin-prettier";
615
617
  var baseConfig;
616
618
  var init_base = __esm({
617
619
  "eslint/_base.ts"() {
@@ -637,6 +639,18 @@ var init_base = __esm({
637
639
  ...variablesRules
638
640
  }
639
641
  },
642
+ {
643
+ // eslint-config-prettier's rules (all "off") must come after the rule sets
644
+ // above so they win, disabling any ESLint stylistic rule that would fight
645
+ // prettier. The prettier plugin then runs prettier itself as a rule, so
646
+ // `eslint --fix` also reformats — the config it reads is whatever the
647
+ // consuming repository's own prettier.config resolves to.
648
+ plugins: { prettier: prettierPlugin },
649
+ rules: {
650
+ ...eslintConfigPrettier.rules,
651
+ "prettier/prettier": "error"
652
+ }
653
+ },
640
654
  {
641
655
  languageOptions: {
642
656
  ecmaVersion: ECMA_VERSION,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zirka",
3
- "version": "0.0.62",
3
+ "version": "0.0.64",
4
4
  "description": "",
5
5
  "repository": {
6
6
  "type": "git",