@ploaness/config 1.1.0 → 1.3.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/biome.json +0 -5
- package/dist/access.d.ts +16 -2
- package/dist/access.d.ts.map +1 -1
- package/dist/access.js +49 -1
- package/dist/access.js.map +1 -1
- package/dist/eslint-core.d.ts +9 -0
- package/dist/eslint-core.d.ts.map +1 -1
- package/dist/eslint-core.js +55 -10
- package/dist/eslint-core.js.map +1 -1
- package/dist/eslint.d.ts.map +1 -1
- package/dist/eslint.js +46 -30
- package/dist/eslint.js.map +1 -1
- package/dist/project-settings.d.ts.map +1 -1
- package/dist/project-settings.js +1 -13
- package/dist/project-settings.js.map +1 -1
- package/package.json +4 -5
- package/pins.json +1 -1
package/biome.json
CHANGED
package/dist/access.d.ts
CHANGED
|
@@ -1,4 +1,18 @@
|
|
|
1
|
-
import type
|
|
2
|
-
export { type AccessReport, undeclaredGrants } from '@ploaness/governance';
|
|
1
|
+
import { type DatalessFields, type PublicAccess } from '@ploaness/governance';
|
|
2
|
+
export { type AccessReport, type DatalessFields, staleDeclarations, undeclaredGrants, } from '@ploaness/governance';
|
|
3
3
|
export declare const PUBLIC_ACCESS: readonly PublicAccess[];
|
|
4
|
+
/**
|
|
5
|
+
* Every field path the project's Payload configuration reports but stores nothing behind.
|
|
6
|
+
*
|
|
7
|
+
* Resolved from the working directory, which in the Playwright worker is the project root: the
|
|
8
|
+
* `@payload-config` alias in the project tsconfig names the file, and the environment the configuration
|
|
9
|
+
* validates at module scope has already been loaded by the shipped Playwright config.
|
|
10
|
+
*
|
|
11
|
+
* A configuration that cannot be read or imported yields nothing, which judges every reported path and
|
|
12
|
+
* so errs on the side of more findings rather than fewer - the sweep is a security boundary, and a
|
|
13
|
+
* failure here must never quietly widen it. It is also not this sweep's report to make: `payload-defaults`
|
|
14
|
+
* boots the same configuration and names an unbuildable one far better than a browser test could.
|
|
15
|
+
* @returns the dataless paths of each entity that has any, keyed by slug; empty when unreadable.
|
|
16
|
+
*/
|
|
17
|
+
export declare const datalessFields: () => Promise<DatalessFields>;
|
|
4
18
|
//# sourceMappingURL=access.d.ts.map
|
package/dist/access.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"access.d.ts","sourceRoot":"","sources":["../src/access.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"access.d.ts","sourceRoot":"","sources":["../src/access.ts"],"names":[],"mappings":"AAqBA,OAAO,EACL,KAAK,cAAc,EAEnB,KAAK,YAAY,EAIlB,MAAM,sBAAsB,CAAA;AAG7B,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,sBAAsB,CAAA;AAE7B,eAAO,MAAM,aAAa,EAAE,SAAS,YAAY,EAAiC,CAAA;AAElF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,cAAc,QAAa,OAAO,CAAC,cAAc,CAa7D,CAAA"}
|
package/dist/access.js
CHANGED
|
@@ -1,4 +1,52 @@
|
|
|
1
|
+
// The one fact the shipped access-boundary sweep cannot know about the project it runs in, and the
|
|
2
|
+
// decision it makes about what the running application answered.
|
|
3
|
+
//
|
|
4
|
+
// The sweep itself is a managed file, byte-identical in every consumer, so this module is the whole of
|
|
5
|
+
// its configuration surface. It cannot loosen the sweep in the way an exclusion loosens a gate: every
|
|
6
|
+
// entry names one permission the project grants on purpose and says why, and the sweep still reports
|
|
7
|
+
// every other anonymous permission it finds. A project that declares nothing is judged most strictly.
|
|
8
|
+
//
|
|
9
|
+
// The verdict travels with the setting because the sweep is a spec no unit test can reach: what it does
|
|
10
|
+
// with Payload's answer is decided in `access-boundary.ts` and re-exported here, leaving the spec
|
|
11
|
+
// holding the HTTP call and the assertion.
|
|
12
|
+
//
|
|
13
|
+
// The other fact the sweep needs is which reported fields hold no data. `/api/access` cannot say: a
|
|
14
|
+
// `type: 'ui'` field is reported exactly as a real column is, and no rule can be written against one.
|
|
15
|
+
// Only the BUILT configuration can tell them apart, so it is imported here - the same way the
|
|
16
|
+
// `payload-defaults` probe imports it, and for the same reason, that the configuration Payload boots is
|
|
17
|
+
// the only place the answer exists. Reading it is filesystem work, which is why it sits in this package
|
|
18
|
+
// rather than in the dependency-free judging layer.
|
|
19
|
+
import { readFileSync } from 'node:fs';
|
|
20
|
+
import path from 'node:path';
|
|
21
|
+
import { pathToFileURL } from 'node:url';
|
|
22
|
+
import { datalessFieldsIn, parseJsonc, payloadConfigPathOf, readKey, } from '@ploaness/governance';
|
|
1
23
|
import { projectSettings } from './project-settings.js';
|
|
2
|
-
export { undeclaredGrants } from '@ploaness/governance';
|
|
24
|
+
export { staleDeclarations, undeclaredGrants, } from '@ploaness/governance';
|
|
3
25
|
export const PUBLIC_ACCESS = projectSettings.publicAccess;
|
|
26
|
+
/**
|
|
27
|
+
* Every field path the project's Payload configuration reports but stores nothing behind.
|
|
28
|
+
*
|
|
29
|
+
* Resolved from the working directory, which in the Playwright worker is the project root: the
|
|
30
|
+
* `@payload-config` alias in the project tsconfig names the file, and the environment the configuration
|
|
31
|
+
* validates at module scope has already been loaded by the shipped Playwright config.
|
|
32
|
+
*
|
|
33
|
+
* A configuration that cannot be read or imported yields nothing, which judges every reported path and
|
|
34
|
+
* so errs on the side of more findings rather than fewer - the sweep is a security boundary, and a
|
|
35
|
+
* failure here must never quietly widen it. It is also not this sweep's report to make: `payload-defaults`
|
|
36
|
+
* boots the same configuration and names an unbuildable one far better than a browser test could.
|
|
37
|
+
* @returns the dataless paths of each entity that has any, keyed by slug; empty when unreadable.
|
|
38
|
+
*/
|
|
39
|
+
export const datalessFields = async () => {
|
|
40
|
+
try {
|
|
41
|
+
const root = process.cwd();
|
|
42
|
+
const tsconfig = parseJsonc(readFileSync(path.join(root, 'tsconfig.json'), 'utf8')).value;
|
|
43
|
+
const configFile = path.join(root, payloadConfigPathOf(tsconfig));
|
|
44
|
+
const configModule = await import(pathToFileURL(configFile).href);
|
|
45
|
+
// Awaited either way: `buildConfig` returns a promise, and a plain object is read the same.
|
|
46
|
+
return datalessFieldsIn(await readKey(configModule, 'default'));
|
|
47
|
+
}
|
|
48
|
+
catch {
|
|
49
|
+
return {};
|
|
50
|
+
}
|
|
51
|
+
};
|
|
4
52
|
//# sourceMappingURL=access.js.map
|
package/dist/access.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"access.js","sourceRoot":"","sources":["../src/access.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"access.js","sourceRoot":"","sources":["../src/access.ts"],"names":[],"mappings":"AAAA,mGAAmG;AACnG,iEAAiE;AACjE,EAAE;AACF,uGAAuG;AACvG,sGAAsG;AACtG,qGAAqG;AACrG,sGAAsG;AACtG,EAAE;AACF,wGAAwG;AACxG,kGAAkG;AAClG,2CAA2C;AAC3C,EAAE;AACF,oGAAoG;AACpG,sGAAsG;AACtG,8FAA8F;AAC9F,wGAAwG;AACxG,wGAAwG;AACxG,oDAAoD;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AACtC,OAAO,IAAI,MAAM,WAAW,CAAA;AAC5B,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AACxC,OAAO,EAEL,gBAAgB,EAEhB,UAAU,EACV,mBAAmB,EACnB,OAAO,GACR,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAEvD,OAAO,EAGL,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,sBAAsB,CAAA;AAE7B,MAAM,CAAC,MAAM,aAAa,GAA4B,eAAe,CAAC,YAAY,CAAA;AAElF;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,KAAK,IAA6B,EAAE;IAChE,IAAI,CAAC;QACH,MAAM,IAAI,GAAW,OAAO,CAAC,GAAG,EAAE,CAAA;QAClC,MAAM,QAAQ,GAAY,UAAU,CAClC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,eAAe,CAAC,EAAE,MAAM,CAAC,CACvD,CAAC,KAAK,CAAA;QACP,MAAM,UAAU,GAAW,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,mBAAmB,CAAC,QAAQ,CAAC,CAAC,CAAA;QACzE,MAAM,YAAY,GAAY,MAAM,MAAM,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,CAAA;QAC1E,4FAA4F;QAC5F,OAAO,gBAAgB,CAAC,MAAM,OAAO,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC,CAAA;IACjE,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,EAAE,CAAA;IACX,CAAC;AACH,CAAC,CAAA"}
|
package/dist/eslint-core.d.ts
CHANGED
|
@@ -164,6 +164,15 @@ export declare const processConfigBlock: () => FlatConfigBlock;
|
|
|
164
164
|
* catch.
|
|
165
165
|
*/
|
|
166
166
|
export declare const specEnvironmentBlock: () => FlatConfigBlock;
|
|
167
|
+
/**
|
|
168
|
+
* The hook directories' role, which is to carry a request's state between Payload hooks.
|
|
169
|
+
*
|
|
170
|
+
* Mounted by the Payload configuration alone: a library has no request to carry state on. Built with the
|
|
171
|
+
* shared constructor, so the base carve-out survives the replacement a block that sets this rule
|
|
172
|
+
* performs, and with the plugin re-mounted, for the reason `processConfigBlock` states.
|
|
173
|
+
* @param files the globs the project's hooks live under.
|
|
174
|
+
*/
|
|
175
|
+
export declare const hookContextBlock: (files: readonly string[]) => FlatConfigBlock;
|
|
167
176
|
export type { RestrictedSyntax } from './eslint-security.js';
|
|
168
177
|
/** The shared selectors, re-exported so a scoped block can spread rather than restate them. */
|
|
169
178
|
export { NO_FAST_CHECK_SEED, NO_INHERITANCE, NO_LITERAL_ASSERTIONS, NO_MOCK_PROPERTIES, NO_NETWORK_GUARD_ESCAPE, NO_TEST_ORDER_ESCAPE, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eslint-core.d.ts","sourceRoot":"","sources":["../src/eslint-core.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"eslint-core.d.ts","sourceRoot":"","sources":["../src/eslint-core.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAS5C,OAAO,EAAE,KAAK,gBAAgB,EAAyB,MAAM,sBAAsB,CAAA;AAEnF;;;;;;;;;GASG;AACH,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAA;AAE/D;;;;;;;GAOG;AACH,MAAM,MAAM,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC,WAAW,CAAC,CAAA;AAEnD;;;;;;;;;GASG;AACH,MAAM,MAAM,uBAAuB,GAAG,SAAS,CAAC,OAAO,EAAE,GAAG,gBAAgB,EAAE,CAAC,CAAA;AAE/E,kGAAkG;AAClG,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;CACzB;AAED,+DAA+D;AAC/D,MAAM,MAAM,OAAO,GAAG,CAAC,GAAG,MAAM,EAAE,SAAS,OAAO,EAAE,KAAK,SAAS,eAAe,EAAE,CAAA;AAsEnF,QAAA,MAAM,kBAAkB,EAAE,SAAS,kBAAkB,EAIlD,CAAA;AAEH,QAAA,MAAM,cAAc,EAAE,uBAUrB,CAAA;AAiBD,QAAA,MAAM,qBAAqB,EAAE,SAAS,gBAAgB,EAerD,CAAA;AAED;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,OAAO,EAAE,OAAO,YAA2B,CAAA;AAExD,oGAAoG;AACpG,eAAO,MAAM,YAAY,EAAE,eAA0B,CAAA;AA8BrD,mGAAmG;AACnG,e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;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,GAAI,OAAO,SAAS,MAAM,EAAE,KAAG,eAM1D,CAAA;AAEF,YAAY,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAC5D,+FAA+F;AAC/F,OAAO,EACL,kBAAkB,EAClB,cAAc,EACd,qBAAqB,EACrB,kBAAkB,EAClB,uBAAuB,EACvB,oBAAoB,GACrB,CAAA"}
|
package/dist/eslint-core.js
CHANGED
|
@@ -1,13 +1,4 @@
|
|
|
1
|
-
//
|
|
2
|
-
//
|
|
3
|
-
// It was extracted because ploaness never ran ESLint on itself. The rules below carry every size cap,
|
|
4
|
-
// explicitness rule, naming ban, and suppression discipline the governing standard states - and the
|
|
5
|
-
// harness that publishes them was not measured by them. Sharing only the five cap NUMBERS would have
|
|
6
|
-
// left roughly seventy rule declarations to drift; the blocks are shared instead, and the globs are the
|
|
7
|
-
// caller's, because the globs are the only genuinely project-shaped part.
|
|
8
|
-
//
|
|
9
|
-
// `packages/config/eslint.js` composes these with the Payload-specific blocks. The ploaness repository
|
|
10
|
-
// composes them with its own workspace layout. Neither restates a rule.
|
|
1
|
+
// Framework-neutral lint policy shared by this repository and the configurations shipped to consumers.
|
|
11
2
|
import js from '@eslint/js';
|
|
12
3
|
import comments from '@eslint-community/eslint-plugin-eslint-comments/configs';
|
|
13
4
|
import { PROJECT_SETUP_FILE } from '@ploaness/governance';
|
|
@@ -227,6 +218,22 @@ export const guidelineRules = {
|
|
|
227
218
|
// that turned off the rule above.
|
|
228
219
|
'@typescript-eslint/prefer-as-const': 'off',
|
|
229
220
|
'@typescript-eslint/no-non-null-assertion': 'error',
|
|
221
|
+
// The rule that WRITES what the line above forbids, which is why it sits here rather than anywhere
|
|
222
|
+
// else. `non-nullable-type-assertion-style` arrives from `stylisticTypeChecked` and mandates `x!`
|
|
223
|
+
// wherever `x as T` only strips null or undefined; Biome refuses `!` outright, explicitly through
|
|
224
|
+
// `noNonNullAssertion` in `biome-core.json` and again through `noNonNullAssertedOptionalChain` in the
|
|
225
|
+
// recommended preset it enables.
|
|
226
|
+
//
|
|
227
|
+
// The two meet inside a single `ploaness format`, which runs Biome and then the ESLint fixers: the
|
|
228
|
+
// fixer rewrites the cast to `x!`, and the next `verify` fails on the character the harness itself
|
|
229
|
+
// just wrote. Nothing the author typed was wrong, no third spelling satisfies both tools, and the
|
|
230
|
+
// suggested repair the developer is left holding is a suppression.
|
|
231
|
+
//
|
|
232
|
+
// This one yields, in the direction the harness already settles a style disagreement: the formatter
|
|
233
|
+
// casts the deciding vote, so one tool owns the question and the other defers. Nothing is lost by
|
|
234
|
+
// it - the ban on `!` is unchanged and now belongs to Biome alone, and the cast the rule wanted to
|
|
235
|
+
// shorten remains legal, explicit, and type-checked.
|
|
236
|
+
'@typescript-eslint/non-nullable-type-assertion-style': 'off',
|
|
230
237
|
'@typescript-eslint/strict-boolean-expressions': 'error',
|
|
231
238
|
'@typescript-eslint/switch-exhaustiveness-check': 'error',
|
|
232
239
|
'@typescript-eslint/no-unnecessary-condition': 'error',
|
|
@@ -455,6 +462,19 @@ export const guidelineRules = {
|
|
|
455
462
|
// `functional/no-let` still rejects the loop binding, and Biome still does not re-ban the fold. The
|
|
456
463
|
// trade is a style guarantee for a correctness one, taken deliberately and in that direction.
|
|
457
464
|
'unicorn/prefer-spread': 'off',
|
|
465
|
+
// The same shape again, one layer down: two fixers that assume the browser's DOM.
|
|
466
|
+
//
|
|
467
|
+
// `prefer-dom-node-append` rewrites `parent.appendChild(child)` to `parent.append(child)` and
|
|
468
|
+
// `prefer-dom-node-remove` rewrites `parent.removeChild(child)` to `child.remove()`. Both are correct
|
|
469
|
+
// in a browser, where every node has both spellings, and neither rule is type-aware, so they say the
|
|
470
|
+
// same about any object with a method of that name. A Payload server has one: an XML parser such as
|
|
471
|
+
// `@xmldom/xmldom`, which a project reaches for to sanitise an uploaded SVG - the very thing the
|
|
472
|
+
// upload rules ask of it - implements the older methods and not the newer ones. The fixer therefore
|
|
473
|
+
// wrote `append` and `remove` into a file whose types have neither, and `ploaness format` handed the
|
|
474
|
+
// project code the `types` gate then rejected. A React component loses nothing: the browser DOM
|
|
475
|
+
// carries both spellings, and Biome's own rules still hold the markup.
|
|
476
|
+
'unicorn/prefer-dom-node-append': 'off',
|
|
477
|
+
'unicorn/prefer-dom-node-remove': 'off',
|
|
458
478
|
// New in unicorn 73. It would expand every concise one-line `/** ... */` export doc into a
|
|
459
479
|
// three-line block, and would also rewrite the `GENERATED AUTOMATICALLY BY PAYLOAD` /
|
|
460
480
|
// `DO NOT MODIFY` headers that Payload writes into the `src/app/(payload)` scaffolding.
|
|
@@ -749,6 +769,16 @@ const PROCESS_ENVIRONMENT = 'process.env.*';
|
|
|
749
769
|
// two rules were pointing at each other, one banning the assignment and naming `defineProperty` as its
|
|
750
770
|
// fix, the other banning `defineProperty`. Same shape as the `void` marker, resolved the same way.
|
|
751
771
|
const RUNTIME_GLOBALS = 'globalThis';
|
|
772
|
+
// A hook's per-request state, exempt where a Payload project writes its hooks.
|
|
773
|
+
//
|
|
774
|
+
// Payload hands every hook the same `req.context` object and documents writing to it as the way one
|
|
775
|
+
// hook passes a value to the next and stops a loop it would otherwise start. That is the framework's
|
|
776
|
+
// contract rather than a data structure the project owns, and a rule that reported it made every
|
|
777
|
+
// governed hook spend a suppression on the framework's own idiom. Written as `req.context.*.**` rather
|
|
778
|
+
// than `req.context.**`, because the plugin reads `**` as ANY depth including none: the shorter pattern
|
|
779
|
+
// would also admit `req.context = {}`, and replacing the bag is not writing into it. `req.file` stays
|
|
780
|
+
// reported, because replacing an upload on the request is rare enough to deserve its stated reason.
|
|
781
|
+
const REQUEST_CONTEXT = 'req.context.*.**';
|
|
752
782
|
// One constructor rather than an option object written at each site. A block that sets this rule REPLACES
|
|
753
783
|
// its options rather than adding to them, so the setup file's block has to restate the base carve-out to
|
|
754
784
|
// keep it - and restating it by hand is exactly how it would be dropped.
|
|
@@ -814,6 +844,21 @@ export const specEnvironmentBlock = () => ({
|
|
|
814
844
|
'functional/immutable-data': immutableData([PROCESS_ENVIRONMENT]),
|
|
815
845
|
},
|
|
816
846
|
});
|
|
847
|
+
/**
|
|
848
|
+
* The hook directories' role, which is to carry a request's state between Payload hooks.
|
|
849
|
+
*
|
|
850
|
+
* Mounted by the Payload configuration alone: a library has no request to carry state on. Built with the
|
|
851
|
+
* shared constructor, so the base carve-out survives the replacement a block that sets this rule
|
|
852
|
+
* performs, and with the plugin re-mounted, for the reason `processConfigBlock` states.
|
|
853
|
+
* @param files the globs the project's hooks live under.
|
|
854
|
+
*/
|
|
855
|
+
export const hookContextBlock = (files) => ({
|
|
856
|
+
files: [...files],
|
|
857
|
+
plugins: { functional },
|
|
858
|
+
rules: {
|
|
859
|
+
'functional/immutable-data': immutableData([REQUEST_CONTEXT]),
|
|
860
|
+
},
|
|
861
|
+
});
|
|
817
862
|
/** The shared selectors, re-exported so a scoped block can spread rather than restate them. */
|
|
818
863
|
export { NO_FAST_CHECK_SEED, NO_INHERITANCE, NO_LITERAL_ASSERTIONS, NO_MOCK_PROPERTIES, NO_NETWORK_GUARD_ESCAPE, NO_TEST_ORDER_ESCAPE, };
|
|
819
864
|
//# sourceMappingURL=eslint-core.js.map
|
package/dist/eslint-core.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eslint-core.js","sourceRoot":"","sources":["../src/eslint-core.ts"],"names":[],"mappings":"AAAA,8DAA8D;AAC9D,EAAE;AACF,sGAAsG;AACtG,oGAAoG;AACpG,qGAAqG;AACrG,wGAAwG;AACxG,0EAA0E;AAC1E,EAAE;AACF,uGAAuG;AACvG,wEAAwE;AACxE,OAAO,EAAE,MAAM,YAAY,CAAA;AAC3B,OAAO,QAAQ,MAAM,yDAAyD,CAAA;AAC9E,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,MAAM,MAAM,uBAAuB,CAAA;AAE1C,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAC5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
|
1
|
+
{"version":3,"file":"eslint.d.ts","sourceRoot":"","sources":["../src/eslint.ts"],"names":[],"mappings":";AAqEA,wBA2TC"}
|
package/dist/eslint.js
CHANGED
|
@@ -11,20 +11,22 @@
|
|
|
11
11
|
// Philosophy: maximum-explicit. The build should be hard to satisfy by accident, so that code which
|
|
12
12
|
// passes is verbose, explicit and readable by construction.
|
|
13
13
|
import nextPlugin from '@next/eslint-plugin-next';
|
|
14
|
-
import { ENVIRONMENT_READ_EXEMPTIONS, REEXPORT_CONFIG_FILES } from '@ploaness/governance';
|
|
14
|
+
import { APPLICATION_JSX_IGNORES, ENVIRONMENT_READ_EXEMPTIONS, REEXPORT_CONFIG_FILES, } from '@ploaness/governance';
|
|
15
15
|
//
|
|
16
16
|
// The framework-neutral half - the caps, the explicitness rules, the naming ban, the suppression
|
|
17
17
|
// discipline, the mock ban - lives in ./eslint-core.js and is shared with the ploaness repository's own
|
|
18
18
|
// lint run. What stays here is what is genuinely about Payload and Next: the generated mount, the
|
|
19
19
|
// collection configs, the environment module, the a11y layer, and the test-integrity block.
|
|
20
|
-
import jsxA11y from 'eslint-plugin-jsx-a11y';
|
|
21
20
|
import testingLibrary from 'eslint-plugin-testing-library';
|
|
22
|
-
import { baseLayers, compose, guidelineRules, immutabilityBlock, NO_INHERITANCE, NO_MOCK_PROPERTIES, NO_NETWORK_GUARD_ESCAPE, prettierLast, processConfigBlock, specEnvironmentBlock, testIdiomRules, testIntegrityRules, testSuiteSyntaxRules, typeAwareParsing, vitestPlugin, withoutWarnings, } from './eslint-core.js';
|
|
21
|
+
import { baseLayers, compose, guidelineRules, hookContextBlock, immutabilityBlock, NO_INHERITANCE, NO_MOCK_PROPERTIES, NO_NETWORK_GUARD_ESCAPE, prettierLast, processConfigBlock, specEnvironmentBlock, testIdiomRules, testIntegrityRules, testSuiteSyntaxRules, typeAwareParsing, vitestPlugin, withoutWarnings, } from './eslint-core.js';
|
|
23
22
|
import { SECURITY_RESTRICTIONS } from './eslint-security.js';
|
|
24
23
|
import { projectSettings as settings } from './project-settings.js';
|
|
24
|
+
// Where a Payload project writes its hooks, and therefore the one place `req.context` is written.
|
|
25
|
+
const PAYLOAD_HOOK_FILES = ['src/hooks/**'];
|
|
25
26
|
const NO_INLINE_CONFIG_FUNCTIONS_SELECTOR = 'ArrowFunctionExpression, FunctionExpression';
|
|
26
|
-
const NO_INLINE_CONFIG_FUNCTIONS_MESSAGE = 'No inline functions in collection/global/field/block configs. Define
|
|
27
|
-
'
|
|
27
|
+
const NO_INLINE_CONFIG_FUNCTIONS_MESSAGE = 'No inline functions in collection/global/field/block configs. Define access and pure rules in ' +
|
|
28
|
+
'src/access or src/lib, where the unit suite covers them, and a hook or validator that needs the ' +
|
|
29
|
+
'request in src/hooks; then import it by reference.';
|
|
28
30
|
// `unicorn/prefer-export-from` rewrites `import x from 'y'` + `export default x` into
|
|
29
31
|
// `export { default } from 'y'` - and it AUTOFIXES, so `ploaness format` turned a correctly wired
|
|
30
32
|
// project into one the `wiring` gate then rejected, every time it ran. Two rules this harness owns,
|
|
@@ -40,10 +42,7 @@ export default compose(
|
|
|
40
42
|
// ── What is never linted ────────────────────────────────────────────────────────────────────
|
|
41
43
|
{
|
|
42
44
|
ignores: [
|
|
43
|
-
|
|
44
|
-
'node_modules/**',
|
|
45
|
-
'coverage/**',
|
|
46
|
-
'pgadmin/**',
|
|
45
|
+
...APPLICATION_JSX_IGNORES,
|
|
47
46
|
'**/*.d.ts',
|
|
48
47
|
'src/payload-types.ts',
|
|
49
48
|
...settings.generatedArtefacts,
|
|
@@ -62,7 +61,6 @@ export default compose(
|
|
|
62
61
|
// parsing error rather than a finding, on every run, with no edit a project is permitted to make
|
|
63
62
|
// that would clear it: `include` is dictated and this config is re-exported verbatim. Biome and
|
|
64
63
|
// the conventions gate still read these files.
|
|
65
|
-
'.*/**',
|
|
66
64
|
],
|
|
67
65
|
}, ...baseLayers,
|
|
68
66
|
// Type-aware parsing against the consuming project's own tsconfig, plus the shared rule set.
|
|
@@ -76,6 +74,10 @@ immutabilityBlock(['**/*.ts', '**/*.tsx'], [...settings.frameworkGlue, 'src/payl
|
|
|
76
74
|
processConfigBlock(),
|
|
77
75
|
// And the spec's, which is to vary the environment rather than to fix it. Same ordering constraint.
|
|
78
76
|
specEnvironmentBlock(),
|
|
77
|
+
// The hook directories, where Payload's per-request state is written. `src/hooks` is the layer the
|
|
78
|
+
// project layout names for hooks; a hook written into `src/lib` is the pure floor claiming to be pure
|
|
79
|
+
// and is held to the full rule.
|
|
80
|
+
hookContextBlock(PAYLOAD_HOOK_FILES),
|
|
79
81
|
// ── Documenting comment blocks on hand-written modules. Default-safe: every src/ TypeScript module
|
|
80
82
|
// is in scope, with only the app/route layer, scripts, and generated files exempted (they carry
|
|
81
83
|
// no reusable API). A new logic directory is therefore held to the rule the moment it exists. ──
|
|
@@ -99,6 +101,24 @@ specEnvironmentBlock(),
|
|
|
99
101
|
'sonarjs/function-return-type': 'off',
|
|
100
102
|
},
|
|
101
103
|
},
|
|
104
|
+
// ── Recorded schema migrations ───────────────────────────────────────────────────────────────
|
|
105
|
+
// `payload migrate:create` writes `<date>_<time>_<name>.ts`, which is snake case and none of the
|
|
106
|
+
// three spellings the filename rule admits. Without this the harness would demand a migration and
|
|
107
|
+
// then reject the name its own generator produces - a project could satisfy neither rule.
|
|
108
|
+
//
|
|
109
|
+
// Widened rather than disabled, and scoped to the directory the generator writes to, so the rule
|
|
110
|
+
// still holds everywhere else. The full set is restated because a block that sets this rule REPLACES
|
|
111
|
+
// its options rather than adding to them. A project that declares another `migrationDir` sits outside
|
|
112
|
+
// this path and keeps the general rule.
|
|
113
|
+
{
|
|
114
|
+
files: ['src/migrations/**/*.ts'],
|
|
115
|
+
rules: {
|
|
116
|
+
'unicorn/filename-case': [
|
|
117
|
+
'error',
|
|
118
|
+
{ cases: { camelCase: true, pascalCase: true, kebabCase: true, snakeCase: true } },
|
|
119
|
+
],
|
|
120
|
+
},
|
|
121
|
+
},
|
|
102
122
|
// ── React components: return-type/boundary annotations add noise, not safety ─────────────────
|
|
103
123
|
{
|
|
104
124
|
files: ['**/*.tsx'],
|
|
@@ -107,26 +127,8 @@ specEnvironmentBlock(),
|
|
|
107
127
|
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
108
128
|
},
|
|
109
129
|
},
|
|
110
|
-
//
|
|
111
|
-
//
|
|
112
|
-
// This is pure static analysis, so it is deterministic (never flaky) and the baseline every site
|
|
113
|
-
// needs. What it CANNOT see (it does not render): color contrast, focus order, real keyboard
|
|
114
|
-
// navigation - those need a browser and are covered by axe-in-e2e (see AGENTS.md testing policy).
|
|
115
|
-
//
|
|
116
|
-
// This block also settles one rule for the whole application configuration. Biome ships a port of
|
|
117
|
-
// `no-noninteractive-element-to-interactive-role`, and it is `off` in `biome.json` because it
|
|
118
|
-
// contradicts Biome's own `useSemanticElements`: that rule requires `role="grid"` to sit on a
|
|
119
|
-
// `<table>`, which is what the ARIA pattern documents, and the port then refuses the table carrying
|
|
120
|
-
// it. No markup satisfies both, the port accepts no options, and the cost fell on any consumer
|
|
121
|
-
// building an accessible grid, treegrid, listbox or tab-strip on the correct native element - a
|
|
122
|
-
// suppression each, spent on a disagreement between two rules rather than on a hard case. The
|
|
123
|
-
// recommended options mounted here are the same check with the allowances the port lacks: they
|
|
124
|
-
// name `table: ['grid']`, `td: ['gridcell']` and `li: ['row']` explicitly, so nothing is lost.
|
|
125
|
-
{
|
|
126
|
-
files: ['**/*.tsx'],
|
|
127
|
-
plugins: { 'jsx-a11y': jsxA11y },
|
|
128
|
-
rules: jsxA11y.flatConfigs.recommended.rules,
|
|
129
|
-
},
|
|
130
|
+
// Application JSX accessibility is owned by the Oxlint gate. Its rule registry also generates
|
|
131
|
+
// Biome's matching exclusions, while this configuration keeps the remaining typed checks.
|
|
130
132
|
// ── Core Web Vitals: the static half of a measurement no gate can take. A vitals score, like a
|
|
131
133
|
// Lighthouse score, moves between two runs of an unchanged tree and would measure `next dev`'s
|
|
132
134
|
// on-demand compiler rather than the application, which is why neither is a gate. The CAUSES of a
|
|
@@ -275,6 +277,20 @@ specEnvironmentBlock(),
|
|
|
275
277
|
'tests/component/**/*.tsx',
|
|
276
278
|
],
|
|
277
279
|
plugins: { vitest: vitestPlugin, 'testing-library': testingLibrary },
|
|
280
|
+
// The plugin decides what a query IS by name, matching `/^(get|query|find)(All)?By.+$/`, and in its
|
|
281
|
+
// default "aggressive" mode it treats every match as one - a deliberate reach, so that a project's
|
|
282
|
+
// own `findByLabel` wrapper is linted like the built-in it wraps. In a Payload project that reach
|
|
283
|
+
// lands on the framework: `payload.findByID(...)` matches, so every read in an integration spec is
|
|
284
|
+
// reported as an unhandled query. The autofix then compounds it, inserting `await` in front of the
|
|
285
|
+
// ARGUMENT rather than the call, so `ploaness format` turns a correct spec into one that no longer
|
|
286
|
+
// type-checks. An agent meeting that has no true repair available and the cheap escapes - a
|
|
287
|
+
// suppression, a weakened test - are the ones the integrity rules above exist to prevent.
|
|
288
|
+
//
|
|
289
|
+
// Switching the setting off narrows detection to the built-in Testing Library names, which is
|
|
290
|
+
// exactly the set these rules were written for. What it costs is that a project's own custom query
|
|
291
|
+
// helper is no longer linted; the harness already asks specs to query by role and text, so that is
|
|
292
|
+
// a small surface, and it is the half of the reach that cannot tell a query from a database read.
|
|
293
|
+
settings: { 'testing-library/custom-queries': 'off' },
|
|
278
294
|
rules: {
|
|
279
295
|
// A test must actually run and actually assert. The rules live in eslint-core.js, because the
|
|
280
296
|
// ploaness repository's own suite is held to them too.
|
package/dist/eslint.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eslint.js","sourceRoot":"","sources":["../src/eslint.ts"],"names":[],"mappings":"AAAA,YAAY;AACZ,EAAE;AACF,iFAAiF;AACjF,EAAE;AACF,+FAA+F;AAC/F,gGAAgG;AAChG,mGAAmG;AACnG,0FAA0F;AAC1F,4FAA4F;AAC5F,EAAE;AACF,oGAAoG;AACpG,4DAA4D;AAE5D,OAAO,UAAU,MAAM,0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AmD;QAC5F,oCAAoC,EAAE,OAAO,EAAE,8CAA8C;QAC7F,+BAA+B,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;QACnD,gCAAgC,EAAE,OAAO,EAAE,qDAAqD;QAChG,wCAAwC,EAAE,OAAO;QACjD,uCAAuC,EAAE,OAAO;QAChD,mCAAmC,EAAE,OAAO,EAAE,wCAAwC;QACtF,iDAAiD,EAAE,OAAO;KAC3D;CACF;AAED,qGAAqG;AACrG,uGAAuG;AACvG,6EAA6E;AAC7E;IACE,KAAK,EAAE,CAAC,mBAAmB,EAAE,oBAAoB,CAAC;IAClD,KAAK,EAAE;QACL,sBAAsB,EAAE;YACtB,GAAG,cAAc;YACjB,GAAG,qBAAqB;YACxB,GAAG,uBAAuB;SAC3B;KACF;CACF;AAED,gGAAgG;AAChG,mBAAmB,EACnB,YAAY,CACb,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project-settings.d.ts","sourceRoot":"","sources":["../src/project-settings.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"project-settings.d.ts","sourceRoot":"","sources":["../src/project-settings.ts"],"names":[],"mappings":"AAGA,OAAO,EAIL,KAAK,QAAQ,EACd,MAAM,sBAAsB,CAAA;AA6C7B,eAAO,MAAM,eAAe,EAAE,QAAqC,CAAA"}
|
package/dist/project-settings.js
CHANGED
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
//
|
|
2
|
-
//
|
|
3
|
-
// Three shipped configurations need them - the Vitest config, the Playwright config, and the constants
|
|
4
|
-
// the managed accessibility sweep imports - and none of them may carry a second copy of this reader. A
|
|
5
|
-
// value the harness both writes and judges is declared once; the same holds for the value it reads.
|
|
6
|
-
//
|
|
7
|
-
// In a workspace the answer is TWO blocks rather than one. A member declares its own settings and the
|
|
8
|
-
// repository root declares the ones every member inherits, and the CLI layers them through
|
|
9
|
-
// `readMemberSettings` before any gate sees them. Reading only the member's block here left the
|
|
10
|
-
// shipped configurations disagreeing with every gate about the same project: a skip route declared at
|
|
11
|
-
// the root reached the gates and not the sweep, so the crawl followed a prefix it had been told to
|
|
12
|
-
// leave alone. The layering is one-directional, exactly as it is in the CLI - a list adds, a threshold
|
|
13
|
-
// is honoured only when stricter - so a member can never widen what the root set.
|
|
1
|
+
// Read the consumer's settings from the working directory, where its tools are invoked.
|
|
14
2
|
import { readFileSync } from 'node:fs';
|
|
15
3
|
import path from 'node:path';
|
|
16
4
|
import { ploanessBlock, readMemberSettings, readSettings, } from '@ploaness/governance';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project-settings.js","sourceRoot":"","sources":["../src/project-settings.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"project-settings.js","sourceRoot":"","sources":["../src/project-settings.ts"],"names":[],"mappings":"AAAA,wFAAwF;AACxF,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AACtC,OAAO,IAAI,MAAM,WAAW,CAAA;AAC5B,OAAO,EACL,aAAa,EACb,kBAAkB,EAClB,YAAY,GAEb,MAAM,sBAAsB,CAAA;AAE7B,mGAAmG;AACnG,8EAA8E;AAC9E,uGAAuG;AACvG,yEAAyE;AACzE,MAAM,eAAe,GAAG,CAAC,SAAiB,EAAW,EAAE;IACrD,IAAI,CAAC;QACH,OAAO,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,cAAc,CAAC,EAAE,MAAM,CAAC,CAAC,CAAA;IAC/E,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,EAAE,CAAA;IACX,CAAC;AACH,CAAC,CAAA;AAED,sGAAsG;AACtG,sGAAsG;AACtG,+FAA+F;AAC/F,MAAM,gBAAgB,GAAW,qBAAqB,CAAA;AAEtD,iGAAiG;AACjG,0FAA0F;AAC1F,MAAM,kBAAkB,GAAG,CAAC,SAAiB,EAAsB,EAAE;IACnE,MAAM,MAAM,GAAW,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAA;IAC9C,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;QACzB,OAAO,SAAS,CAAA;IAClB,CAAC;IACD,IAAI,CAAC;QACH,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,gBAAgB,CAAC,EAAE,MAAM,CAAC,CAAA;QACzD,OAAO,MAAM,CAAA;IACf,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,kBAAkB,CAAC,MAAM,CAAC,CAAA;IACnC,CAAC;AACH,CAAC,CAAA;AAED,MAAM,WAAW,GAAG,CAAC,MAAc,EAAY,EAAE;IAC/C,MAAM,GAAG,GAAY,eAAe,CAAC,MAAM,CAAC,CAAA;IAC5C,MAAM,cAAc,GAAuB,kBAAkB,CAAC,MAAM,CAAC,CAAA;IACrE,IAAI,cAAc,KAAK,SAAS,EAAE,CAAC;QACjC,kGAAkG;QAClG,+EAA+E;QAC/E,OAAO,YAAY,CAAC,GAAG,CAAC,CAAA;IAC1B,CAAC;IACD,OAAO,kBAAkB,CAAC,aAAa,CAAC,eAAe,CAAC,cAAc,CAAC,CAAC,EAAE,aAAa,CAAC,GAAG,CAAC,CAAC,CAAA;AAC/F,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,eAAe,GAAa,WAAW,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ploaness/config",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "Analyzer and tool configurations owned by ploaness: ESLint, Biome, TypeScript, Vitest, Stylelint, dependency-cruiser, knip.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Herman Ciechanowiec <herman@ciechanowiec.eu>",
|
|
@@ -80,17 +80,16 @@
|
|
|
80
80
|
"@eslint/js": "10.0.1",
|
|
81
81
|
"@next/eslint-plugin-next": "16.3.4",
|
|
82
82
|
"@playwright/test": "1.62.1",
|
|
83
|
-
"@ploaness/governance": "1.
|
|
83
|
+
"@ploaness/governance": "1.3.0",
|
|
84
84
|
"@testing-library/jest-dom": "7.0.1",
|
|
85
85
|
"@testing-library/react": "16.3.3",
|
|
86
|
-
"@testing-library/user-event": "14.6.
|
|
86
|
+
"@testing-library/user-event": "14.6.7",
|
|
87
87
|
"@vitejs/plugin-react": "6.1.1",
|
|
88
88
|
"@vitest/eslint-plugin": "1.6.27",
|
|
89
89
|
"eslint": "10.9.1",
|
|
90
90
|
"eslint-config-prettier": "10.1.8",
|
|
91
91
|
"eslint-plugin-functional": "10.0.0",
|
|
92
92
|
"eslint-plugin-jsdoc": "64.2.1",
|
|
93
|
-
"eslint-plugin-jsx-a11y": "6.10.2",
|
|
94
93
|
"eslint-plugin-regexp": "3.2.0",
|
|
95
94
|
"eslint-plugin-sonarjs": "4.2.0",
|
|
96
95
|
"eslint-plugin-testing-library": "7.16.2",
|
|
@@ -109,7 +108,7 @@
|
|
|
109
108
|
"access": "public"
|
|
110
109
|
},
|
|
111
110
|
"devDependencies": {
|
|
112
|
-
"@types/node": "26.4.
|
|
111
|
+
"@types/node": "26.4.1",
|
|
113
112
|
"typescript": "6.0.3"
|
|
114
113
|
},
|
|
115
114
|
"scripts": {
|
package/pins.json
CHANGED
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"requiredFor": ["payload", "application", "library"],
|
|
35
35
|
"why": "The definitions describing the runtime every governed package compiles against. Pinned for the toolchain's reason rather than the framework's: a type package is an input to tsc, so a patch release changes what type-checks while the project stays unchanged.",
|
|
36
36
|
"versions": {
|
|
37
|
-
"@types/node": "26.4.
|
|
37
|
+
"@types/node": "26.4.1"
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
40
|
{
|