zirka 0.0.42 → 0.0.43
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
|
@@ -40,8 +40,22 @@ Each config block is loaded lazily — if you don't enable `react`, none of its
|
|
|
40
40
|
| `react` | — | `@eslint-react`, `react-hooks`, `jsx-a11y` |
|
|
41
41
|
| `next` | — | `@next/eslint-plugin-next` |
|
|
42
42
|
| `playwright` | — | `eslint-plugin-playwright` |
|
|
43
|
+
| `pasika` | — | Pasika rules over TS/TSX, CSS, Markdown, and JSON |
|
|
43
44
|
|
|
44
|
-
Base rules (always included with any block): `@eslint/js` recommended,
|
|
45
|
+
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
|
+
|
|
47
|
+
### The `pasika` block
|
|
48
|
+
|
|
49
|
+
Enabling `pasika` wires four language-scoped rule sets (see the pasika README for the full rule tables):
|
|
50
|
+
|
|
51
|
+
| Files | Rules |
|
|
52
|
+
| ------------------------------------------ | ------------------------- |
|
|
53
|
+
| `src/**/*.{js,jsx,ts,tsx,mjs,mts,cjs,cts}` | `pasika/*` TS/TSX rules |
|
|
54
|
+
| `src/**/globals.css`, `src/**/*.css` | `pasika/*` CSS rules |
|
|
55
|
+
| `**/*.md` (not `_templates/`) | `pasika/*` Markdown rules |
|
|
56
|
+
| `package.json` | `pasika/*` JSON rules |
|
|
57
|
+
|
|
58
|
+
The JS/TS base blocks (browser, node, typescript, react, next, playwright) are scoped to JS/TS files, so the pasika language blocks are never shadowed — CSS, Markdown, and JSON files are linted by their own rules.
|
|
45
59
|
|
|
46
60
|
### `RuleSeverity`
|
|
47
61
|
|
|
@@ -54,18 +68,18 @@ Base rules (always included with any block): `@eslint/js` recommended, `eslint-p
|
|
|
54
68
|
|
|
55
69
|
### Options
|
|
56
70
|
|
|
57
|
-
| Option | Type | Description
|
|
58
|
-
| ------------------- | -------------------------------- |
|
|
59
|
-
| `browser` | `RuleSeverity` | Browser globals
|
|
60
|
-
| `node` | `RuleSeverity` | Node.js globals
|
|
61
|
-
| `typescript` | `RuleSeverity` | TypeScript-ESLint strict rules
|
|
62
|
-
| `react` | `RuleSeverity` | React + JSX-a11y rules
|
|
63
|
-
| `next` | `RuleSeverity` | Next.js rules
|
|
64
|
-
| `pasika` | `RuleSeverity` | Pasika
|
|
65
|
-
| `playwright` | `RuleSeverity` | Playwright test rules
|
|
66
|
-
| `ignores` | `string[]` | Glob patterns to ignore
|
|
67
|
-
| `additionalConfigs` | `Linter.Config[]` | Extra flat config entries appended last
|
|
68
|
-
| `prettier` | `true \| { tailwind?: boolean }` | Enable Prettier config
|
|
71
|
+
| Option | Type | Description |
|
|
72
|
+
| ------------------- | -------------------------------- | -------------------------------------------- |
|
|
73
|
+
| `browser` | `RuleSeverity` | Browser globals |
|
|
74
|
+
| `node` | `RuleSeverity` | Node.js globals |
|
|
75
|
+
| `typescript` | `RuleSeverity` | TypeScript-ESLint strict rules |
|
|
76
|
+
| `react` | `RuleSeverity` | React + JSX-a11y rules |
|
|
77
|
+
| `next` | `RuleSeverity` | Next.js rules |
|
|
78
|
+
| `pasika` | `RuleSeverity` | Pasika rules: TS/TSX + CSS + Markdown + JSON |
|
|
79
|
+
| `playwright` | `RuleSeverity` | Playwright test rules |
|
|
80
|
+
| `ignores` | `string[]` | Glob patterns to ignore |
|
|
81
|
+
| `additionalConfigs` | `Linter.Config[]` | Extra flat config entries appended last |
|
|
82
|
+
| `prettier` | `true \| { tailwind?: boolean }` | Enable Prettier config |
|
|
69
83
|
|
|
70
84
|
---
|
|
71
85
|
|
|
@@ -129,4 +143,4 @@ The base config only sets strictness flags — no environment-specific settings.
|
|
|
129
143
|
## Requirements
|
|
130
144
|
|
|
131
145
|
- Node ≥ 22
|
|
132
|
-
- `eslint` ^9 · `prettier` ^3 · `typescript` ^5 (peer deps)
|
|
146
|
+
- `eslint` ^10.9.1 · `prettier` ^3 · `typescript` ^5 (peer deps)
|
package/package.json
CHANGED