@deslop/coding-standards 0.1.913 → 0.1.1014

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/dist/oxlint.js CHANGED
@@ -1,5 +1,5 @@
1
- import { $ as fromOption, $n as isNullish$1, A as getSomes, Bn as optimize, C as findFirst, Ct as some, D as flatten, E as flatMap$1, Fn as symbol, G as sort, Gn as hasProperty, H as prepend, Hn as string, I as join, J as get$2, K as take, Kn as isBoolean, L as last, Ln as combine, M as isArrayEmpty, N as isArrayNonEmpty, Nn as byReferenceUnsafe, Pn as equals, Rn as hash, S as filterMap, St as orElse, Tn as NodeInspectSymbol, V as of, W as some$1, Wn as symbol$1, X as remove, Xn as isNotNull, Z as values, Zn as isNotNullish, _ as dropRight, _t as isSome, a as includes, ar as isString, at as all, b as every, bt as match$1, c as startsWith, ct as filter, d as TaggedError, dt as flatten$1, er as isNumber, ft as fromNullishOr, g as dedupe, h as contains$1, i as Order, ir as isReadonlyObject, j as head, k as get$1, lt as firstSomeOf, m as appendAll, mr as dual, mt as getOrElse, n as make$2, o as match, ot as contains, p as append, pt as fromUndefinedOr, q as fromEntries, r as update, s as split, st as exists, t as get$3, ut as flatMap, v as empty, vr as pipe, w as findFirstIndex, wt as zipWith, x as filter$1, xr as pipeArguments, xt as none, y as ensure, yt as map, z as map$1, zn as number } from "./MutableRef-NhSl8G9M.mjs";
2
- //#region ../../node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/internal/graph.js
1
+ import { $ as fromOption, $n as isNotNull, A as getSomes, Bn as combine, C as findFirst, Ct as some, D as flatten, E as flatMap$1, G as sort, Gn as string, H as prepend, Hn as number, I as join, In as byReferenceUnsafe, J as get$2, Jn as hasProperty, K as take, L as last, Ln as equals, M as isArrayEmpty, N as isArrayNonEmpty, On as NodeInspectSymbol, Rn as symbol, S as filterMap, St as orElse, Un as optimize, V as of, Vn as hash, W as some$1, X as remove, Yn as isBoolean, Z as values, _ as dropRight, _r as dual, _t as isSome, a as includes, at as all, b as every, bt as match$1, c as startsWith, cr as isString, ct as filter, d as TaggedError, dt as flatten$1, er as isNotNullish, ft as fromNullishOr, g as dedupe, h as contains$1, i as Order, j as head, k as get$1, lt as firstSomeOf, m as appendAll, mt as getOrElse, n as make$2, nr as isNullish$1, o as match, ot as contains, p as append, pt as fromUndefinedOr, q as fromEntries, qn as symbol$1, r as update, rr as isNumber, s as split, sr as isReadonlyObject, st as exists, t as get$3, ut as flatMap, v as empty, w as findFirstIndex, wr as pipeArguments, wt as zipWith, x as filter$1, xr as pipe, xt as none, y as ensure, yt as map, z as map$1 } from "./MutableRef-CzOzKHjT.mjs";
2
+ //#region ../../node_modules/.pnpm/effect@4.0.2/node_modules/effect/dist/internal/graph.js
3
3
  /** @internal */
4
4
  const TypeId = "~effect/Graph";
5
5
  /** @internal */
@@ -94,7 +94,7 @@ const finalize = (source) => {
94
94
  return graph;
95
95
  };
96
96
  //#endregion
97
- //#region ../../node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/internal/graphCsr.js
97
+ //#region ../../node_modules/.pnpm/effect@4.0.2/node_modules/effect/dist/internal/graphCsr.js
98
98
  const cache = /*#__PURE__*/ new WeakMap();
99
99
  const makeAdjacency = (csr, incoming) => {
100
100
  const impl = toImpl(csr.graph);
@@ -168,7 +168,7 @@ const get = (graph) => {
168
168
  return result;
169
169
  };
170
170
  //#endregion
171
- //#region ../../node_modules/.pnpm/effect@4.0.0/node_modules/effect/dist/Graph.js
171
+ //#region ../../node_modules/.pnpm/effect@4.0.2/node_modules/effect/dist/Graph.js
172
172
  /**
173
173
  * Models relationships between indexed nodes and edges.
174
174
  *
@@ -177,6 +177,7 @@ const get = (graph) => {
177
177
  * both nodes and edges. The module includes traversal, analysis, path-finding,
178
178
  * transformation, and diagram export utilities.
179
179
  *
180
+ * @stability unstable
180
181
  * @since 4.0.0
181
182
  */
182
183
  /**
@@ -189,6 +190,7 @@ const get = (graph) => {
189
190
  * Use when handling failures thrown by graph operations that reject invalid
190
191
  * graph structure or unsupported algorithm inputs.
191
192
  *
193
+ * @stability unstable
192
194
  * @category errors
193
195
  * @since 3.18.0
194
196
  */
@@ -229,6 +231,7 @@ const getMutableImplForMutation = (graph) => {
229
231
  *
230
232
  * @see {@link directed} for constructing a directed graph directly
231
233
  * @see {@link undirected} for constructing an undirected graph directly
234
+ * @stability unstable
232
235
  * @category constructors
233
236
  * @since 4.0.0
234
237
  */
@@ -268,6 +271,7 @@ const make = (type) => (mutate) => {
268
271
  * Array.of(Graph.nodeCount(graph), Graph.edgeCount(graph)) // => [3, 2]
269
272
  * ```
270
273
  *
274
+ * @stability unstable
271
275
  * @category constructors
272
276
  * @since 3.18.0
273
277
  */
@@ -297,6 +301,7 @@ const directed = /*#__PURE__*/ make("directed");
297
301
  *
298
302
  * @see {@link beginMutation} for opening a manual mutation scope
299
303
  * @see {@link mutate} for automatically scoped mutation
304
+ * @stability unstable
300
305
  * @category mutations
301
306
  * @since 3.18.0
302
307
  */
@@ -351,6 +356,7 @@ const mutateScoped = (mutable, f) => {
351
356
  * @see {@link mutate} for obtaining a mutable graph from an immutable graph
352
357
  * @see {@link addEdge} for connecting existing nodes
353
358
  *
359
+ * @stability unstable
354
360
  * @category mutations
355
361
  * @since 3.18.0
356
362
  */
@@ -379,6 +385,7 @@ const addNode = (mutable, data) => {
379
385
  * Graph.getNode(graph, 0) // => Option.some("Node A")
380
386
  * ```
381
387
  *
388
+ * @stability unstable
382
389
  * @category getters
383
390
  * @since 3.18.0
384
391
  */
@@ -424,6 +431,7 @@ const invalidateCycleFlagOnAddition = (mutable) => {
424
431
  * @see {@link mutate} for obtaining a mutable graph from an immutable graph
425
432
  * @see {@link addNode} for creating node indexes before connecting them
426
433
  *
434
+ * @stability unstable
427
435
  * @category mutations
428
436
  * @since 3.18.0
429
437
  */
@@ -489,6 +497,7 @@ const addEdge = (mutable, source, target, data) => {
489
497
  *
490
498
  * @see {@link isStronglyConnected} when only a boolean check is needed
491
499
  * @see {@link weaklyConnectedComponents} when edge orientation should be ignored
500
+ * @stability unstable
492
501
  * @category algorithms
493
502
  * @since 3.18.0
494
503
  */
@@ -612,7 +621,7 @@ Object.freeze({
612
621
  }
613
622
  });
614
623
  //#endregion
615
- //#region ../../node_modules/.pnpm/oxlint@1.85.0_oxlint-tsgolint@7.0.2003_vite-plus@1.0.0_@opentelemetry+api@1.9.1_@types+_bd1fc584f29238a6938d999624a6e509/node_modules/oxlint/dist/index.js
624
+ //#region ../../node_modules/.pnpm/oxlint@1.85.0_oxlint-tsgolint@7.0.2003_vite-plus@1.1.0_@opentelemetry+api@1.9.1_@types+_9cc4ccd295d1e4fa3c5d39f32d54a2b1/node_modules/oxlint/dist/index.js
616
625
  /**
617
626
  * Define an Oxlint configuration with type inference.
618
627
  *
@@ -2508,7 +2517,11 @@ const oxlint = defineConfig({
2508
2517
  },
2509
2518
  overrides: [
2510
2519
  {
2511
- files: ["**/*.config.ts", "**/main.*"],
2520
+ files: [
2521
+ "**/*.config.ts",
2522
+ "**/app.plugin.js",
2523
+ "**/main.*"
2524
+ ],
2512
2525
  rules: { "import/no-default-export": "off" }
2513
2526
  },
2514
2527
  {
@@ -3252,7 +3265,7 @@ const oxlint = defineConfig({
3252
3265
  },
3253
3266
  settings: {
3254
3267
  react: { version: "19.0" },
3255
- shadcn: { ui: ["@deslop/components/ui", "@dual/ui/components"] }
3268
+ shadcn: { ui: ["@deslop/components-web/ui", "@dual/ui/components"] }
3256
3269
  }
3257
3270
  });
3258
3271
  var oxlint_default = definePlugin({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deslop/coding-standards",
3
- "version": "0.1.913",
3
+ "version": "0.1.1014",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/MP281X/deslop",
@@ -32,8 +32,8 @@
32
32
  "access": "public"
33
33
  },
34
34
  "dependencies": {
35
- "@shadcn/lint": "^0.2.0",
36
- "oxlint-plugin-react-doctor": "^0.9.14"
35
+ "@shadcn/lint": "^0.2.1",
36
+ "oxlint-plugin-react-doctor": "^0.9.17"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@oxlint/plugins": "1.85.0",
@@ -260,12 +260,13 @@ JSON.parse(text)
260
260
  ```ts
261
261
  // good
262
262
  import {Effect, Schema} from 'effect'
263
- import type {Plugin} from 'vite'
264
-
265
- import type {PortfolioState} from '#rpcs/contracts.ts'
266
263
  // bad — each line is a diagnostic
267
264
  import {Schema as S} from 'effect'
265
+
266
+ import type {Plugin} from 'vite'
268
267
  import {type Plugin, createServer} from 'vite'
268
+
269
+ import type {PortfolioState} from '#rpcs/contracts.ts'
269
270
  export const EntryKind = Schema.Literals(['income', 'expense']) // no importer
270
271
  ```
271
272
 
@@ -282,7 +283,7 @@ export const EntryKind = Schema.Literals(['income', 'expense']) // no importer
282
283
  // oxlint-disable-next-line typescript/consistent-type-assertions
283
284
  // oxlint-disable-next-line sort-keys -- keeps the printed order
284
285
  // bad
285
- files: ['packages/components/src/components/dev-tools.tsx', 'packages/components/src/components/form.tsx'],
286
+ files: ['packages/components-web/src/form.tsx', 'packages/components-web/src/rich-text-area.tsx'],
286
287
  ```
287
288
 
288
289
  ## Effect