@vvedantb/config 0.20.0 → 0.20.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.20.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`3292003`](https://github.com/vvedantb/v/commit/3292003d56cbc99c27b61923031358460baad941) Thanks [@vvedantb](https://github.com/vvedantb)! - The `localStorage` and `sessionStorage` lint rules now live in `oxlint/storage.json`, which `oxlint/base.json` extends. Rules are unchanged for configs that extend `base.json`. A config that cannot take the full base can extend `storage.json` alone.
8
+
3
9
  ## 0.20.0
4
10
 
5
11
  ### Minor Changes
package/oxlint/base.json CHANGED
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/oxc-project/oxc/main/npm/oxlint/configuration_schema.json",
3
+ "extends": ["./storage.json"],
3
4
  "plugins": ["typescript", "import", "unicorn", "react"],
4
5
  "jsPlugins": [
5
6
  { "name": "no-effect", "specifier": "./no-effect.mjs" },
@@ -44,50 +45,6 @@
44
45
  "vvedantb/no-filler-copy": "error",
45
46
  "vvedantb/no-tab-search-param": "error",
46
47
  "no-console": ["error", { "allow": ["warn", "error", "info"] }],
47
- "no-restricted-properties": [
48
- "error",
49
- {
50
- "object": "window",
51
- "property": "localStorage",
52
- "message": "Use useLocalStorage from usehooks-ts."
53
- },
54
- {
55
- "object": "window",
56
- "property": "sessionStorage",
57
- "message": "Use useSessionStorage from usehooks-ts."
58
- },
59
- {
60
- "object": "self",
61
- "property": "localStorage",
62
- "message": "Use useLocalStorage from usehooks-ts."
63
- },
64
- {
65
- "object": "self",
66
- "property": "sessionStorage",
67
- "message": "Use useSessionStorage from usehooks-ts."
68
- },
69
- {
70
- "object": "globalThis",
71
- "property": "localStorage",
72
- "message": "Use useLocalStorage from usehooks-ts."
73
- },
74
- {
75
- "object": "globalThis",
76
- "property": "sessionStorage",
77
- "message": "Use useSessionStorage from usehooks-ts."
78
- }
79
- ],
80
- "no-restricted-globals": [
81
- "error",
82
- {
83
- "name": "localStorage",
84
- "message": "Use useLocalStorage from usehooks-ts."
85
- },
86
- {
87
- "name": "sessionStorage",
88
- "message": "Use useSessionStorage from usehooks-ts."
89
- }
90
- ],
91
48
  "no-unused-vars": [
92
49
  "error",
93
50
  {
@@ -0,0 +1,49 @@
1
+ {
2
+ "$schema": "https://raw.githubusercontent.com/oxc-project/oxc/main/npm/oxlint/configuration_schema.json",
3
+ "rules": {
4
+ "no-restricted-properties": [
5
+ "error",
6
+ {
7
+ "object": "window",
8
+ "property": "localStorage",
9
+ "message": "Use useLocalStorage from usehooks-ts."
10
+ },
11
+ {
12
+ "object": "window",
13
+ "property": "sessionStorage",
14
+ "message": "Use useSessionStorage from usehooks-ts."
15
+ },
16
+ {
17
+ "object": "self",
18
+ "property": "localStorage",
19
+ "message": "Use useLocalStorage from usehooks-ts."
20
+ },
21
+ {
22
+ "object": "self",
23
+ "property": "sessionStorage",
24
+ "message": "Use useSessionStorage from usehooks-ts."
25
+ },
26
+ {
27
+ "object": "globalThis",
28
+ "property": "localStorage",
29
+ "message": "Use useLocalStorage from usehooks-ts."
30
+ },
31
+ {
32
+ "object": "globalThis",
33
+ "property": "sessionStorage",
34
+ "message": "Use useSessionStorage from usehooks-ts."
35
+ }
36
+ ],
37
+ "no-restricted-globals": [
38
+ "error",
39
+ {
40
+ "name": "localStorage",
41
+ "message": "Use useLocalStorage from usehooks-ts."
42
+ },
43
+ {
44
+ "name": "sessionStorage",
45
+ "message": "Use useSessionStorage from usehooks-ts."
46
+ }
47
+ ]
48
+ }
49
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vvedantb/config",
3
- "version": "0.20.0",
3
+ "version": "0.20.1",
4
4
  "license": "MIT",
5
5
  "description": "Shared tsconfig bases, oxlint base, Vite, Vitest, Babel and Metro presets, a WXT preset and host-permission helper for Chrome extensions, pinned tool versions, a sync CLI for Claude commands, CLAUDE.md, Cursor environment and Convex tsconfig, a packaged Electron app.asar module check, a shared header and footer check, a no-source-text-in-tests check, a no-comments check with a ratchet baseline, shared oxlint JS plugins and a CLI that adds an extension to Clerk's allowed origins.",
6
6
  "type": "module",