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