@sarj/eslint-plugin 2.10.0 → 2.11.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/dist/index.cjs +6 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6050,7 +6050,7 @@ var rules = {
|
|
|
6050
6050
|
var plugin = {
|
|
6051
6051
|
meta: {
|
|
6052
6052
|
name: "@sarj/eslint-plugin",
|
|
6053
|
-
version: "2.
|
|
6053
|
+
version: "2.11.0"
|
|
6054
6054
|
},
|
|
6055
6055
|
rules,
|
|
6056
6056
|
configs: {
|
|
@@ -6134,15 +6134,15 @@ var plugin = {
|
|
|
6134
6134
|
"@sarj/no-comment-cruft": "error",
|
|
6135
6135
|
// Frontend / styling — distilled from frontend PR-review mining. Stylistic,
|
|
6136
6136
|
// no autofix → warn (rollout should prove the FP rate before raising it).
|
|
6137
|
-
"@sarj/prefer-semantic-colors": "
|
|
6137
|
+
"@sarj/prefer-semantic-colors": "error",
|
|
6138
6138
|
// Ported from sarj-python-lint (SARJ), corpus-validated FP~0.
|
|
6139
6139
|
"@sarj/no-fat-try-blocks": "error",
|
|
6140
6140
|
"@sarj/no-cors-wildcard-with-credentials": "error",
|
|
6141
6141
|
"@sarj/no-secret-in-log": "error",
|
|
6142
|
-
"@sarj/no-unsafe-cast": "
|
|
6142
|
+
"@sarj/no-unsafe-cast": "error",
|
|
6143
6143
|
"@sarj/single-public-export": "error",
|
|
6144
|
-
//
|
|
6145
|
-
"@sarj/prefer-string-literal-union": "
|
|
6144
|
+
// Promoted to error 2026-07-25 — strict means strict (user directive).
|
|
6145
|
+
"@sarj/prefer-string-literal-union": "error",
|
|
6146
6146
|
// Mined from 2y of PR review feedback + 5-repo code-smell audit (2026-07).
|
|
6147
6147
|
"@sarj/require-fetch-timeout": "error",
|
|
6148
6148
|
"@sarj/no-silent-promise-catch": "error",
|
|
@@ -6157,7 +6157,7 @@ var plugin = {
|
|
|
6157
6157
|
// API-shape advice rather than a runtime defect — a corpus sweep found its
|
|
6158
6158
|
// only hits are parser `[value, cursor]` returns, which are conventional.
|
|
6159
6159
|
// Warn even in strict until a rollout justifies more.
|
|
6160
|
-
"@sarj/no-positional-tuple-return": "
|
|
6160
|
+
"@sarj/no-positional-tuple-return": "error",
|
|
6161
6161
|
"@sarj/no-dynamic-sql": "error",
|
|
6162
6162
|
// Architectural: both need per-repo config to be meaningful, so they
|
|
6163
6163
|
// are strict-only. `no-storage-in-stateless-modules` is a no-op until
|