zirka 0.0.29 → 0.0.32

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
@@ -61,6 +61,7 @@ Base rules (always included with any block): `@eslint/js` recommended, `eslint-p
61
61
  | `typescript` | `RuleSeverity` | TypeScript-ESLint strict rules |
62
62
  | `react` | `RuleSeverity` | React + JSX-a11y rules |
63
63
  | `next` | `RuleSeverity` | Next.js rules |
64
+ | `pasika` | `RuleSeverity` | Pasika code-organization rules |
64
65
  | `playwright` | `RuleSeverity` | Playwright test rules |
65
66
  | `ignores` | `string[]` | Glob patterns to ignore |
66
67
  | `additionalConfigs` | `Linter.Config[]` | Extra flat config entries appended last |
@@ -30,7 +30,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
30
30
  ));
31
31
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
32
32
 
33
- // prettier/index.ts
33
+ // prettier-config/index.ts
34
34
  function getPrettierConfig(options) {
35
35
  if (options === true) {
36
36
  return basePrettierConfig;
@@ -41,8 +41,8 @@ function getPrettierConfig(options) {
41
41
  };
42
42
  }
43
43
  var basePrettierConfig;
44
- var init_prettier = __esm({
45
- "prettier/index.ts"() {
44
+ var init_prettier_config = __esm({
45
+ "prettier-config/index.ts"() {
46
46
  "use strict";
47
47
  basePrettierConfig = {
48
48
  endOfLine: "lf",
@@ -1256,8 +1256,8 @@ __export(styleguide_exports, {
1256
1256
  });
1257
1257
  module.exports = __toCommonJS(styleguide_exports);
1258
1258
  function styleguide(options) {
1259
- const { browser, node, typescript, react: react2, next, playwright, prettier } = options;
1260
- const hasEslintOptions = browser ?? node ?? typescript ?? react2 ?? next ?? playwright;
1259
+ const { browser, node, typescript, react: react2, next, pasika, playwright, prettier } = options;
1260
+ const hasEslintOptions = browser ?? node ?? typescript ?? react2 ?? next ?? pasika ?? playwright;
1261
1261
  const prettierConfig = prettier ? getPrettierConfig(prettier) : void 0;
1262
1262
  if (!hasEslintOptions) {
1263
1263
  return { prettierConfig };
@@ -1271,7 +1271,7 @@ function styleguide(options) {
1271
1271
  var RuleSeverity, applySeverity, loadEslintConfigs;
1272
1272
  var init_styleguide = __esm({
1273
1273
  "styleguide.ts"() {
1274
- init_prettier();
1274
+ init_prettier_config();
1275
1275
  RuleSeverity = /* @__PURE__ */ ((RuleSeverity2) => {
1276
1276
  RuleSeverity2["Off"] = "off";
1277
1277
  RuleSeverity2["Warn"] = "warn";
@@ -1286,13 +1286,14 @@ var init_styleguide = __esm({
1286
1286
  return transformSeverity2(config, severity);
1287
1287
  };
1288
1288
  loadEslintConfigs = async (options) => {
1289
- const { browser, node, typescript, react: react2, next, playwright, ignores, additionalConfigs = [] } = options;
1289
+ const { browser, node, typescript, react: react2, next, pasika, playwright, ignores, additionalConfigs = [] } = options;
1290
1290
  const configLoaders = [
1291
1291
  { loader: () => Promise.resolve().then(() => (init_browser(), browser_exports)).then((m) => m.browserConfig), severity: browser },
1292
1292
  { loader: () => Promise.resolve().then(() => (init_node(), node_exports)).then((m) => m.nodeConfig), severity: node },
1293
1293
  { loader: () => Promise.resolve().then(() => (init_typescript2(), typescript_exports)).then((m) => m.typescriptConfig), severity: typescript },
1294
1294
  { loader: () => Promise.resolve().then(() => (init_react(), react_exports)).then((m) => m.reactConfig), severity: react2 },
1295
1295
  { loader: () => Promise.resolve().then(() => (init_next(), next_exports)).then((m) => m.nextConfig), severity: next },
1296
+ { loader: () => import("pasika/eslint").then((m) => [m.pasikaConfig]), severity: pasika },
1296
1297
  { loader: () => Promise.resolve().then(() => (init_playwright(), playwright_exports)).then((m) => m.playwrightConfig), severity: playwright }
1297
1298
  ];
1298
1299
  const eslintConfigs = [];
@@ -1,5 +1,5 @@
1
1
  import { Linter } from 'eslint';
2
- import { Config } from 'prettier';
2
+ import { Options } from 'prettier';
3
3
 
4
4
  declare enum RuleSeverity {
5
5
  Off = "off",
@@ -16,6 +16,7 @@ interface StyleguideOptions {
16
16
  typescript?: RuleSeverity;
17
17
  react?: RuleSeverity;
18
18
  next?: RuleSeverity;
19
+ pasika?: RuleSeverity;
19
20
  playwright?: RuleSeverity;
20
21
  ignores?: string[];
21
22
  additionalConfigs?: Linter.Config[];
@@ -23,7 +24,7 @@ interface StyleguideOptions {
23
24
  }
24
25
  interface StyleguideResult {
25
26
  eslintConfig?: Linter.Config[] | Promise<Linter.Config[]>;
26
- prettierConfig?: Config;
27
+ prettierConfig?: Options;
27
28
  }
28
29
  declare function styleguide(options: StyleguideOptions): StyleguideResult;
29
30
 
@@ -1,5 +1,5 @@
1
1
  import { Linter } from 'eslint';
2
- import { Config } from 'prettier';
2
+ import { Options } from 'prettier';
3
3
 
4
4
  declare enum RuleSeverity {
5
5
  Off = "off",
@@ -16,6 +16,7 @@ interface StyleguideOptions {
16
16
  typescript?: RuleSeverity;
17
17
  react?: RuleSeverity;
18
18
  next?: RuleSeverity;
19
+ pasika?: RuleSeverity;
19
20
  playwright?: RuleSeverity;
20
21
  ignores?: string[];
21
22
  additionalConfigs?: Linter.Config[];
@@ -23,7 +24,7 @@ interface StyleguideOptions {
23
24
  }
24
25
  interface StyleguideResult {
25
26
  eslintConfig?: Linter.Config[] | Promise<Linter.Config[]>;
26
- prettierConfig?: Config;
27
+ prettierConfig?: Options;
27
28
  }
28
29
  declare function styleguide(options: StyleguideOptions): StyleguideResult;
29
30
 
@@ -14,7 +14,7 @@ var __export = (target, all) => {
14
14
  __defProp(target, name, { get: all[name], enumerable: true });
15
15
  };
16
16
 
17
- // prettier/index.ts
17
+ // prettier-config/index.ts
18
18
  function getPrettierConfig(options) {
19
19
  if (options === true) {
20
20
  return basePrettierConfig;
@@ -25,8 +25,8 @@ function getPrettierConfig(options) {
25
25
  };
26
26
  }
27
27
  var basePrettierConfig;
28
- var init_prettier = __esm({
29
- "prettier/index.ts"() {
28
+ var init_prettier_config = __esm({
29
+ "prettier-config/index.ts"() {
30
30
  "use strict";
31
31
  basePrettierConfig = {
32
32
  endOfLine: "lf",
@@ -1234,8 +1234,8 @@ var init_playwright = __esm({
1234
1234
 
1235
1235
  // styleguide.ts
1236
1236
  function styleguide(options) {
1237
- const { browser, node, typescript, react: react2, next, playwright, prettier } = options;
1238
- const hasEslintOptions = browser ?? node ?? typescript ?? react2 ?? next ?? playwright;
1237
+ const { browser, node, typescript, react: react2, next, pasika, playwright, prettier } = options;
1238
+ const hasEslintOptions = browser ?? node ?? typescript ?? react2 ?? next ?? pasika ?? playwright;
1239
1239
  const prettierConfig = prettier ? getPrettierConfig(prettier) : void 0;
1240
1240
  if (!hasEslintOptions) {
1241
1241
  return { prettierConfig };
@@ -1249,7 +1249,7 @@ function styleguide(options) {
1249
1249
  var RuleSeverity, applySeverity, loadEslintConfigs;
1250
1250
  var init_styleguide = __esm({
1251
1251
  "styleguide.ts"() {
1252
- init_prettier();
1252
+ init_prettier_config();
1253
1253
  RuleSeverity = /* @__PURE__ */ ((RuleSeverity2) => {
1254
1254
  RuleSeverity2["Off"] = "off";
1255
1255
  RuleSeverity2["Warn"] = "warn";
@@ -1264,13 +1264,14 @@ var init_styleguide = __esm({
1264
1264
  return transformSeverity2(config, severity);
1265
1265
  };
1266
1266
  loadEslintConfigs = async (options) => {
1267
- const { browser, node, typescript, react: react2, next, playwright, ignores, additionalConfigs = [] } = options;
1267
+ const { browser, node, typescript, react: react2, next, pasika, playwright, ignores, additionalConfigs = [] } = options;
1268
1268
  const configLoaders = [
1269
1269
  { loader: () => Promise.resolve().then(() => (init_browser(), browser_exports)).then((m) => m.browserConfig), severity: browser },
1270
1270
  { loader: () => Promise.resolve().then(() => (init_node(), node_exports)).then((m) => m.nodeConfig), severity: node },
1271
1271
  { loader: () => Promise.resolve().then(() => (init_typescript2(), typescript_exports)).then((m) => m.typescriptConfig), severity: typescript },
1272
1272
  { loader: () => Promise.resolve().then(() => (init_react(), react_exports)).then((m) => m.reactConfig), severity: react2 },
1273
1273
  { loader: () => Promise.resolve().then(() => (init_next(), next_exports)).then((m) => m.nextConfig), severity: next },
1274
+ { loader: () => import("pasika/eslint").then((m) => [m.pasikaConfig]), severity: pasika },
1274
1275
  { loader: () => Promise.resolve().then(() => (init_playwright(), playwright_exports)).then((m) => m.playwrightConfig), severity: playwright }
1275
1276
  ];
1276
1277
  const eslintConfigs = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zirka",
3
- "version": "0.0.29",
3
+ "version": "0.0.32",
4
4
  "description": "",
5
5
  "repository": {
6
6
  "type": "git",
@@ -60,6 +60,7 @@
60
60
  "eslint": "^9.27.0",
61
61
  "husky": "^9.1.7",
62
62
  "lint-staged": "^16.1.6",
63
+ "pasika": "^0.1.4",
63
64
  "prettier": "^3.5.3",
64
65
  "tsup": "^8.5.0",
65
66
  "typescript": "^5.8.3"
@@ -69,7 +70,12 @@
69
70
  "prettier": "^3.5.3",
70
71
  "typescript": "^5.8.3"
71
72
  },
73
+ "peerDependenciesMeta": {
74
+ "pasika": {
75
+ "optional": true
76
+ }
77
+ },
72
78
  "engines": {
73
- "node": ">=22.16"
79
+ "node": ">=22"
74
80
  }
75
81
  }