@pragmatiks/lint 0.5.0 → 0.6.0
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/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -10,20 +10,20 @@ This package has no `bin` entry. Command-line integration belongs in `pragma-cli
|
|
|
10
10
|
|
|
11
11
|
**Package-wide** (the root entry and `/eslint-config/next`):
|
|
12
12
|
|
|
13
|
-
| Package | Range
|
|
14
|
-
| ----------------------- |
|
|
15
|
-
| `eslint` | `^
|
|
16
|
-
| `typescript-eslint` | `^8.70.1`
|
|
17
|
-
| `eslint-plugin-sonarjs` | `^4.0.0`
|
|
18
|
-
| `eslint-plugin-unicorn` | `^64.0.0`
|
|
13
|
+
| Package | Range |
|
|
14
|
+
| ----------------------- | ---------- |
|
|
15
|
+
| `eslint` | `^10.11.0` |
|
|
16
|
+
| `typescript-eslint` | `^8.70.1` |
|
|
17
|
+
| `eslint-plugin-sonarjs` | `^4.0.0` |
|
|
18
|
+
| `eslint-plugin-unicorn` | `^64.0.0` |
|
|
19
19
|
|
|
20
20
|
**`/eslint-config/next` only** (optional peers; install them when you use `@pragmatiks/lint/eslint-config/next`):
|
|
21
21
|
|
|
22
22
|
| Package | Range | Why |
|
|
23
23
|
| ----------------------- | --------- | -------------------------------------------------------------------- |
|
|
24
|
-
| `@tailwindcss/node` | `~4.
|
|
25
|
-
| `tailwindcss` | `~4.
|
|
26
|
-
| `@tailwindcss/postcss` | `~4.
|
|
24
|
+
| `@tailwindcss/node` | `~4.3.3` | Compiles class strings with the project's own Tailwind design system |
|
|
25
|
+
| `tailwindcss` | `~4.3.3` | Version check against the project |
|
|
26
|
+
| `@tailwindcss/postcss` | `~4.3.3` | Version check against the project |
|
|
27
27
|
| `@eslint/css` | `^2.0.0` | Lints `.css` files |
|
|
28
28
|
| `eslint-plugin-react-x` | `^5.20.8` | Leaked conditional rendering (typed) |
|
|
29
29
|
|
|
@@ -72,8 +72,7 @@ Every config object you add after the result must set `files`, for example `file
|
|
|
72
72
|
|
|
73
73
|
- **Not `--cache`-safe across stylesheet edits.** Class checks depend on the stylesheet, which ESLint's cache does not track.
|
|
74
74
|
- **Restart after editing a stylesheet.** The design system loads when the config is built, so persistent ESLint processes and editor servers keep the old theme until restarted.
|
|
75
|
-
- **
|
|
76
|
-
- **Tailwind bumps.** Rerun the class-token corpus (`tests/next-class-tokens.test.ts`, AC-1) at the new version before widening the `~4.1.17` peer range. The config uses Tailwind's `__unstable__loadDesignSystem`; a load canary and the version check fail fast when it changes shape.
|
|
75
|
+
- **Tailwind bumps.** Rerun the class-token corpus (`tests/next-class-tokens.test.ts`, AC-1) at the new version before widening the `~4.3.3` peer range. The config uses Tailwind's `__unstable__loadDesignSystem`; a load canary and the version check fail fast when it changes shape.
|
|
77
76
|
|
|
78
77
|
### Focus patterns
|
|
79
78
|
|
|
@@ -143,7 +142,7 @@ Fix these by rewriting the code:
|
|
|
143
142
|
|
|
144
143
|
## Development
|
|
145
144
|
|
|
146
|
-
| Command | Purpose
|
|
147
|
-
| -------------------------------------------------- |
|
|
148
|
-
| `task js:check` / `task js:test` / `task js:build` | Lint and type check / tests (Node `>=22.15` for `module.registerHooks`; `mise.toml` pins Node
|
|
149
|
-
| `task js:pack` | Install, build and `npm pack` the committed HEAD with CI's toolchain (Node
|
|
145
|
+
| Command | Purpose |
|
|
146
|
+
| -------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
147
|
+
| `task js:check` / `task js:test` / `task js:build` | Lint and type check / tests (Node `>=22.15` for `module.registerHooks`; `mise.toml` pins Node 26) / build |
|
|
148
|
+
| `task js:pack` | Install, build and `npm pack` the committed HEAD with CI's toolchain (Node 26, pnpm 12.6.0, latest npm) in a throwaway worktree, printing all three versions; the tarball lands in `js/` |
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as eslint_config from 'eslint/config';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* The files every Pragmatiks config object applies to: JavaScript and TypeScript, JSX included.
|
|
@@ -31,6 +31,6 @@ declare function semgrepRulesDirectory(): string;
|
|
|
31
31
|
* @throws Error when the package root cannot be found, or when sonarjs or unicorn has no
|
|
32
32
|
* recommended flat config.
|
|
33
33
|
*/
|
|
34
|
-
declare function pragmatiksConfig():
|
|
34
|
+
declare function pragmatiksConfig(): eslint_config.ConfigObject[];
|
|
35
35
|
|
|
36
36
|
export { PRAGMATIKS_LINT_FILES, pragmatiksConfig as default, findPackageRoot, pragmatiksConfig, semgrepRulesDirectory };
|
|
@@ -297,7 +297,7 @@ function referencedVariable(node) {
|
|
|
297
297
|
// src/eslint-config/next/frontend/design-system.ts
|
|
298
298
|
var DEFAULT_THEME_OPTION = 4;
|
|
299
299
|
var CACHE_LIMIT = 1e4;
|
|
300
|
-
var SUPPORTED_TAILWIND_RANGE = "~4.
|
|
300
|
+
var SUPPORTED_TAILWIND_RANGE = "~4.3.3";
|
|
301
301
|
var VERSION_RECOVERY = `pin tailwindcss, @tailwindcss/postcss and @tailwindcss/node to the same ${SUPPORTED_TAILWIND_RANGE} version`;
|
|
302
302
|
var CANARY_EXPECTATIONS = [
|
|
303
303
|
{ token: "z-60", property: "z-index", value: "60" },
|