@timber-js/oxlint-plugin 0.2.0 → 0.2.1
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/README.md +2 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/recommended.json +1 -1
package/README.md
CHANGED
|
@@ -19,6 +19,8 @@ Then extend the recommended preset, which loads the plugin and turns on every ru
|
|
|
19
19
|
}
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
+
A TypeScript `oxlint.config.ts` can import the same file instead (`import timber from '@timber-js/oxlint-plugin/recommended.json' with { type: 'json' }`) and put it in `extends`; the preset loads the plugin by package name, so it works from either.
|
|
23
|
+
|
|
22
24
|
oxlint does not turn on a plugin's rules by itself, and its `extends` takes file paths, not package names, so the preset is referenced through `node_modules`. New rules are added to the preset as they ship.
|
|
23
25
|
|
|
24
26
|
To pick rules yourself instead, load the plugin and name each rule:
|
package/dist/index.js
CHANGED
|
@@ -540,7 +540,7 @@ var cacheFnDiscipline = {
|
|
|
540
540
|
description: "Disallow request state and swallowed failures inside cache.data / cache.component functions"
|
|
541
541
|
},
|
|
542
542
|
messages: {
|
|
543
|
-
requestApi: "`{{api}}()` inside a `{{method}}` function: the cache key does not include {{what}}, so the first caller's {{what}} is cached and served to every user for the TTL. Read it outside and pass it in as an argument (design/06-caching.md).",
|
|
543
|
+
requestApi: "`{{api}}()` inside a `{{method}}` function: the cache key does not include {{what}}, so the result computed from the first caller's {{what}} is cached and served to every user for the TTL. Read it outside and pass it in as an argument (design/06-caching.md).",
|
|
544
544
|
cachedFailure: "This `catch` returns a value from a `{{method}}` function, so the failure is cached for the whole TTL and outlives the upstream's recovery. Rethrow (a failed refresh keeps serving the last good entry) and handle the error at the call site."
|
|
545
545
|
},
|
|
546
546
|
schema: []
|
package/package.json
CHANGED
package/recommended.json
CHANGED