@satinhq/lint 0.1.0-beta.1 → 0.1.0-beta.3
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 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Fidelity lint preset for Satin apps. Extend it from an app's `.oxlintrc.json`:
|
|
4
4
|
|
|
5
5
|
```json
|
|
6
|
-
{ "extends": ["../../packages/
|
|
6
|
+
{ "extends": ["../../packages/lint/oxlint.json"] }
|
|
7
7
|
```
|
|
8
8
|
|
|
9
9
|
The preset exists to make Satin's invariants hard to violate. It bans browser-history routers and any `pushState` or `replaceState` property access in app code. The framework package does not extend the preset, so its future URL-projection module can own the single allowed `replaceState` call.
|
|
@@ -13,7 +13,7 @@ Oxlint cannot inspect CSS or determine whether a style expression contains viewp
|
|
|
13
13
|
```json
|
|
14
14
|
{
|
|
15
15
|
"scripts": {
|
|
16
|
-
"lint": "oxlint && node ../../packages/
|
|
16
|
+
"lint": "oxlint && node ../../packages/lint/scripts/check-fidelity.mjs src"
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@satinhq/lint",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Fidelity lint preset for Satin apps: bans the web idioms that break the native illusion.",
|
|
6
6
|
"exports": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"repository": {
|
|
32
32
|
"type": "git",
|
|
33
33
|
"url": "git+https://github.com/satinhq/satin.git",
|
|
34
|
-
"directory": "packages/
|
|
34
|
+
"directory": "packages/lint"
|
|
35
35
|
},
|
|
36
36
|
"homepage": "https://satin.build",
|
|
37
37
|
"scripts": {
|