@thorprovider/create-thor-app 4.1.3 → 4.1.4
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/package.json
CHANGED
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
{
|
|
33
33
|
"id": "no-frozen-lib-modifications",
|
|
34
34
|
"filePattern": "lib/commerce.ts",
|
|
35
|
-
"pattern": "createProvider\\(",
|
|
36
|
-
"description": "lib/commerce.ts is frozen —
|
|
37
|
-
"
|
|
35
|
+
"pattern": "(?:^|\\n)\\s*(?:const\\s+[_$a-zA-Z][\\w$]*\\s*=\\s*|let\\s+[_$a-zA-Z][\\w$]*\\s*=\\s*|[_$a-zA-Z][\\w$]*\\s*=\\s*|return\\s+)createProvider\\([^]*?(?:^|\\n)\\s*(?:const\\s+[_$a-zA-Z][\\w$]*\\s*=\\s*|let\\s+[_$a-zA-Z][\\w$]*\\s*=\\s*|[_$a-zA-Z][\\w$]*\\s*=\\s*|return\\s+)createProvider\\(",
|
|
36
|
+
"description": "lib/commerce.ts is frozen — do not add a second createProvider() invocation in this file",
|
|
37
|
+
"severity": "warning"
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
40
|
"id": "no-any-type",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
{
|
|
46
46
|
"id": "no-var-declaration",
|
|
47
47
|
"filePattern": "**/*.{ts,tsx}",
|
|
48
|
-
"pattern": "\\
|
|
49
|
-
"description": "Use const/let instead of var"
|
|
48
|
+
"pattern": "(?:^|[;({]\\s*)var\\s+[A-Za-z_$][\\w$]*\\s*(?:=|[;,\\n])",
|
|
49
|
+
"description": "Use const/let instead of var declarations"
|
|
50
50
|
},
|
|
51
51
|
{
|
|
52
52
|
"id": "use-product-handle-in-urls",
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
{
|
|
58
58
|
"id": "no-client-env-vars",
|
|
59
59
|
"filePattern": "components/**/*.tsx",
|
|
60
|
-
"pattern": "process\\.env\\.[A-
|
|
61
|
-
"description": "Client components cannot access non-NEXT_PUBLIC env vars —
|
|
60
|
+
"pattern": "process\\.env\\.(?!NEXT_PUBLIC_)[A-Z][A-Z0-9_]*",
|
|
61
|
+
"description": "Client components cannot access non-NEXT_PUBLIC env vars — only NEXT_PUBLIC_* keys are allowed client-side"
|
|
62
62
|
},
|
|
63
63
|
{
|
|
64
64
|
"id": "use-cn-utility",
|