lenix 1.3.1 → 1.3.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 +45 -1
- package/{bin → lint}/dist/lint.mjs +0 -0
- package/{bin → lint/src}/lint-preset.json +54 -18
- package/{bin → lint/src}/tsconfig.json +1 -1
- package/package.json +17 -13
- package/{dist → ts/dist}/fetch/index.js +1 -1
- package/bin/Readme.md +0 -33
- /package/{bin → lint/src}/lint.mts +0 -0
- /package/{bin/mac-lua_modules.sh → lua/mac-lua-modules.sh} +0 -0
- /package/{dist → ts/dist}/fetch/index.d.ts +0 -0
- /package/{dist → ts/dist}/fxmanifest/fxmanifest.json +0 -0
- /package/{dist → ts/dist}/fxmanifest/index.d.ts +0 -0
- /package/{dist → ts/dist}/fxmanifest/index.js +0 -0
- /package/{dist → ts/dist}/index.d.ts +0 -0
- /package/{dist → ts/dist}/index.js +0 -0
- /package/{dist → ts/dist}/wait/index.d.ts +0 -0
- /package/{dist → ts/dist}/wait/index.js +0 -0
package/Readme.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# lenix
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The Monorepo for the software engineering community
|
|
4
4
|
|
|
5
5
|

|
|
6
6
|

|
|
@@ -43,3 +43,47 @@ yarn add lenix
|
|
|
43
43
|
## 💻 Build with
|
|
44
44
|

|
|
45
45
|

|
|
46
|
+
|
|
47
|
+
# Lua Object Oriented Programming Class Module
|
|
48
|
+
|
|
49
|
+
Lua object oriented programming class module allow you to use oop similar to the TypeScript/JavaScript/Java/C++ Classes
|
|
50
|
+
|
|
51
|
+
## 🗺️ Roadmap
|
|
52
|
+
- [ ] Implement the complete annotation
|
|
53
|
+
- [ ] Provide Documentation
|
|
54
|
+
- [ ] Clearify the installation steps
|
|
55
|
+
|
|
56
|
+
## Lua Modules Setup
|
|
57
|
+
|
|
58
|
+
Auto-configure Lua to use `./lua_modules` (like `node_modules`) instead of unorganized directories.
|
|
59
|
+
|
|
60
|
+
### Install
|
|
61
|
+
- MAC
|
|
62
|
+
```bash
|
|
63
|
+
npx mac-lua-modules
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
### Usage
|
|
67
|
+
```bash
|
|
68
|
+
# Install Lua packages
|
|
69
|
+
luarocks install --tree ./lua_modules inspect
|
|
70
|
+
|
|
71
|
+
# Use in code (no setup needed)
|
|
72
|
+
local inspect = require('inspect')
|
|
73
|
+
print(inspect({name = "Lenix"}))
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
### What it does
|
|
77
|
+
|
|
78
|
+
Adds environment variables to your shell config (for mac users: `~/.zshrc` or `~/.bashrc`) to automatically change your Lua modules configurations to `./lua_modules` instead of hidden nested directories.
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
## ESLINT Usage
|
|
82
|
+
### Build your own linter
|
|
83
|
+
```zsh
|
|
84
|
+
npx lenix --lint
|
|
85
|
+
```
|
|
86
|
+
### Clone a preset lint
|
|
87
|
+
```zsh
|
|
88
|
+
npx lenix --lint --preset
|
|
89
|
+
```
|
|
File without changes
|
|
@@ -12,7 +12,10 @@
|
|
|
12
12
|
"consistent-return": "warn",
|
|
13
13
|
"consistent-this": "warn",
|
|
14
14
|
"constructor-super": "warn",
|
|
15
|
-
"curly":
|
|
15
|
+
"curly": [
|
|
16
|
+
"error",
|
|
17
|
+
"multi"
|
|
18
|
+
],
|
|
16
19
|
"default-case": "error",
|
|
17
20
|
"default-case-last": "error",
|
|
18
21
|
"default-param-last": "error",
|
|
@@ -26,14 +29,21 @@
|
|
|
26
29
|
"grouped-accessor-pairs": "error",
|
|
27
30
|
"guard-for-in": "warn",
|
|
28
31
|
"id-denylist": "warn",
|
|
29
|
-
"id-length":
|
|
32
|
+
"id-length": [
|
|
33
|
+
"error",
|
|
34
|
+
{
|
|
35
|
+
"exceptions": [
|
|
36
|
+
"_"
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
],
|
|
30
40
|
"id-match": "error",
|
|
31
41
|
"init-declarations": "error",
|
|
32
42
|
"logical-assignment-operators": "error",
|
|
33
43
|
"max-classes-per-file": "error",
|
|
34
44
|
"max-depth": "error",
|
|
35
45
|
"max-lines": "error",
|
|
36
|
-
"max-lines-per-function": "
|
|
46
|
+
"max-lines-per-function": "warn",
|
|
37
47
|
"max-nested-callbacks": "error",
|
|
38
48
|
"max-params": "error",
|
|
39
49
|
"max-statements": "error",
|
|
@@ -48,7 +58,7 @@
|
|
|
48
58
|
"no-class-assign": "error",
|
|
49
59
|
"no-compare-neg-zero": "error",
|
|
50
60
|
"no-cond-assign": "warn",
|
|
51
|
-
"no-console": "
|
|
61
|
+
"no-console": "warn",
|
|
52
62
|
"no-const-assign": "error",
|
|
53
63
|
"no-constant-binary-expression": "warn",
|
|
54
64
|
"no-constant-condition": "warn",
|
|
@@ -96,7 +106,18 @@
|
|
|
96
106
|
"no-lonely-if": "error",
|
|
97
107
|
"no-loop-func": "warn",
|
|
98
108
|
"no-loss-of-precision": "error",
|
|
99
|
-
"no-magic-numbers":
|
|
109
|
+
"no-magic-numbers": [
|
|
110
|
+
"error",
|
|
111
|
+
{
|
|
112
|
+
"detectObjects": true,
|
|
113
|
+
"enforceConst": true,
|
|
114
|
+
"ignore": [
|
|
115
|
+
0,
|
|
116
|
+
1
|
|
117
|
+
],
|
|
118
|
+
"ignoreReadonlyClassProperties": true
|
|
119
|
+
}
|
|
120
|
+
],
|
|
100
121
|
"no-misleading-character-class": "warn",
|
|
101
122
|
"no-multi-assign": "error",
|
|
102
123
|
"no-multi-str": "error",
|
|
@@ -136,9 +157,9 @@
|
|
|
136
157
|
"no-this-before-super": "error",
|
|
137
158
|
"no-throw-literal": "error",
|
|
138
159
|
"no-unassigned-vars": "error",
|
|
139
|
-
"no-undef": "
|
|
160
|
+
"no-undef": "error",
|
|
140
161
|
"no-undef-init": "error",
|
|
141
|
-
"no-undefined": "
|
|
162
|
+
"no-undefined": "off",
|
|
142
163
|
"no-underscore-dangle": "warn",
|
|
143
164
|
"no-unexpected-multiline": "error",
|
|
144
165
|
"no-unmodified-loop-condition": "warn",
|
|
@@ -168,7 +189,7 @@
|
|
|
168
189
|
"no-warning-comments": "warn",
|
|
169
190
|
"no-with": "error",
|
|
170
191
|
"object-shorthand": "error",
|
|
171
|
-
"one-var": "
|
|
192
|
+
"one-var": "off",
|
|
172
193
|
"operator-assignment": "warn",
|
|
173
194
|
"prefer-arrow-callback": "error",
|
|
174
195
|
"prefer-const": "error",
|
|
@@ -189,8 +210,8 @@
|
|
|
189
210
|
"require-await": "error",
|
|
190
211
|
"require-unicode-regexp": "warn",
|
|
191
212
|
"require-yield": "error",
|
|
192
|
-
"sort-imports": "
|
|
193
|
-
"sort-keys": "
|
|
213
|
+
"sort-imports": "off",
|
|
214
|
+
"sort-keys": "off",
|
|
194
215
|
"sort-vars": "error",
|
|
195
216
|
"strict": "error",
|
|
196
217
|
"symbol-description": "error",
|
|
@@ -211,9 +232,9 @@
|
|
|
211
232
|
"@typescript-eslint/consistent-type-definitions": "error",
|
|
212
233
|
"@typescript-eslint/consistent-type-imports": "error",
|
|
213
234
|
"@typescript-eslint/default-param-last": "warn",
|
|
214
|
-
"@typescript-eslint/explicit-function-return-type": "
|
|
235
|
+
"@typescript-eslint/explicit-function-return-type": "off",
|
|
215
236
|
"@typescript-eslint/explicit-member-accessibility": "warn",
|
|
216
|
-
"@typescript-eslint/explicit-module-boundary-types": "
|
|
237
|
+
"@typescript-eslint/explicit-module-boundary-types": "off",
|
|
217
238
|
"@typescript-eslint/init-declarations": "error",
|
|
218
239
|
"@typescript-eslint/max-params": "error",
|
|
219
240
|
"@typescript-eslint/member-ordering": "error",
|
|
@@ -231,7 +252,7 @@
|
|
|
231
252
|
"@typescript-eslint/no-inferrable-types": "error",
|
|
232
253
|
"@typescript-eslint/no-invalid-void-type": "error",
|
|
233
254
|
"@typescript-eslint/no-loop-func": "error",
|
|
234
|
-
"@typescript-eslint/no-magic-numbers": "
|
|
255
|
+
"@typescript-eslint/no-magic-numbers": "off",
|
|
235
256
|
"@typescript-eslint/no-misused-new": "error",
|
|
236
257
|
"@typescript-eslint/no-namespace": "error",
|
|
237
258
|
"@typescript-eslint/no-non-null-asserted-nullish-coalescing": "warn",
|
|
@@ -266,7 +287,17 @@
|
|
|
266
287
|
"@typescript-eslint/consistent-return": "error",
|
|
267
288
|
"@typescript-eslint/consistent-type-exports": "error",
|
|
268
289
|
"@typescript-eslint/dot-notation": "error",
|
|
269
|
-
"@typescript-eslint/naming-convention":
|
|
290
|
+
"@typescript-eslint/naming-convention": [
|
|
291
|
+
"warn",
|
|
292
|
+
{
|
|
293
|
+
"selector": "variable",
|
|
294
|
+
"format": [
|
|
295
|
+
"camelCase",
|
|
296
|
+
"UPPER_CASE",
|
|
297
|
+
"PascalCase"
|
|
298
|
+
]
|
|
299
|
+
}
|
|
300
|
+
],
|
|
270
301
|
"@typescript-eslint/no-array-delete": "error",
|
|
271
302
|
"@typescript-eslint/no-base-to-string": "warn",
|
|
272
303
|
"@typescript-eslint/no-confusing-void-expression": "error",
|
|
@@ -279,14 +310,14 @@
|
|
|
279
310
|
"@typescript-eslint/no-misused-promises": "error",
|
|
280
311
|
"@typescript-eslint/no-misused-spread": "error",
|
|
281
312
|
"@typescript-eslint/no-mixed-enums": "error",
|
|
282
|
-
"@typescript-eslint/no-redundant-type-constituents": "
|
|
313
|
+
"@typescript-eslint/no-redundant-type-constituents": "error",
|
|
283
314
|
"@typescript-eslint/no-unnecessary-boolean-literal-compare": "error",
|
|
284
315
|
"@typescript-eslint/no-unnecessary-condition": "error",
|
|
285
316
|
"@typescript-eslint/no-unnecessary-qualifier": "warn",
|
|
286
317
|
"@typescript-eslint/no-unnecessary-template-expression": "error",
|
|
287
318
|
"@typescript-eslint/no-unnecessary-type-arguments": "error",
|
|
288
319
|
"@typescript-eslint/no-unnecessary-type-assertion": "error",
|
|
289
|
-
"@typescript-eslint/no-unnecessary-type-conversion": "
|
|
320
|
+
"@typescript-eslint/no-unnecessary-type-conversion": "error",
|
|
290
321
|
"@typescript-eslint/no-unnecessary-type-parameters": "error",
|
|
291
322
|
"@typescript-eslint/no-unsafe-argument": "error",
|
|
292
323
|
"@typescript-eslint/no-unsafe-assignment": "error",
|
|
@@ -306,7 +337,12 @@
|
|
|
306
337
|
"@typescript-eslint/prefer-optional-chain": "error",
|
|
307
338
|
"@typescript-eslint/prefer-promise-reject-errors": "error",
|
|
308
339
|
"@typescript-eslint/prefer-readonly": "error",
|
|
309
|
-
"@typescript-eslint/prefer-readonly-parameter-types":
|
|
340
|
+
"@typescript-eslint/prefer-readonly-parameter-types": [
|
|
341
|
+
"error",
|
|
342
|
+
{
|
|
343
|
+
"ignoreInferredTypes": true
|
|
344
|
+
}
|
|
345
|
+
],
|
|
310
346
|
"@typescript-eslint/prefer-reduce-type-parameter": "error",
|
|
311
347
|
"@typescript-eslint/prefer-regexp-exec": "warn",
|
|
312
348
|
"@typescript-eslint/prefer-return-this-type": "error",
|
|
@@ -319,7 +355,7 @@
|
|
|
319
355
|
"@typescript-eslint/restrict-template-expressions": "error",
|
|
320
356
|
"@typescript-eslint/return-await": "error",
|
|
321
357
|
"@typescript-eslint/strict-boolean-expressions": "error",
|
|
322
|
-
"@typescript-eslint/strict-void-return": "
|
|
358
|
+
"@typescript-eslint/strict-void-return": "off",
|
|
323
359
|
"@typescript-eslint/switch-exhaustiveness-check": "error",
|
|
324
360
|
"@typescript-eslint/unbound-method": "warn",
|
|
325
361
|
"@typescript-eslint/use-unknown-in-catch-callback-variable": "error"
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lenix",
|
|
3
|
-
"version": "1.3.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.3.3",
|
|
4
|
+
"description": "The Monorepo for the software engineering community",
|
|
5
5
|
"author": "Lenix",
|
|
6
6
|
"license": "GPL-3.0",
|
|
7
7
|
"type": "module",
|
|
@@ -15,25 +15,25 @@
|
|
|
15
15
|
"fxmanifest",
|
|
16
16
|
"api",
|
|
17
17
|
"oop",
|
|
18
|
-
"class"
|
|
18
|
+
"class",
|
|
19
|
+
"eslint",
|
|
20
|
+
"linter"
|
|
19
21
|
],
|
|
20
22
|
"repository": {
|
|
21
23
|
"type": "git",
|
|
22
24
|
"url": "git+https://github.com/lenixdev/lenix.git"
|
|
23
25
|
},
|
|
24
|
-
"main": "./dist/index.js",
|
|
25
|
-
"types": "./dist/index.d.ts",
|
|
26
|
+
"main": "./ts/dist/index.js",
|
|
27
|
+
"types": "./ts/dist/index.d.ts",
|
|
26
28
|
"bin": {
|
|
27
|
-
"mac-lua-modules": "
|
|
28
|
-
"lenix": "./
|
|
29
|
+
"mac-lua-modules": "lua/mac-lua-modules.sh",
|
|
30
|
+
"lenix": "./lint/dist/lint.mjs"
|
|
29
31
|
},
|
|
30
32
|
"files": [
|
|
31
|
-
"dist",
|
|
32
|
-
"
|
|
33
|
+
"ts/dist",
|
|
34
|
+
"lua/dist",
|
|
35
|
+
"lint"
|
|
33
36
|
],
|
|
34
|
-
"scripts": {
|
|
35
|
-
"build": "tsc -p src/fxmanifest/tsconfig.json && tsc-alias && tsc -p bin/tsconfig.json"
|
|
36
|
-
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@eslint/js": "^10.0.1",
|
|
39
39
|
"eslint": "^10.0.3",
|
|
@@ -49,5 +49,9 @@
|
|
|
49
49
|
"tsc-alias": "^1.8.16",
|
|
50
50
|
"tsx": "^4.21.0",
|
|
51
51
|
"typescript": "^5.3.3"
|
|
52
|
+
},
|
|
53
|
+
"scripts": {
|
|
54
|
+
"build": "tsc -p ts/src/fxmanifest/tsconfig.json && tsc-alias && tsc -p lint/src/tsconfig.json",
|
|
55
|
+
"bump": "pnpm version patch"
|
|
52
56
|
}
|
|
53
|
-
}
|
|
57
|
+
}
|
|
@@ -11,6 +11,6 @@ export const safeRequest = async (domain, endpoint, request) => {
|
|
|
11
11
|
throw new Error('An error occurred while making the request.', { cause: error });
|
|
12
12
|
}
|
|
13
13
|
finally {
|
|
14
|
-
console.
|
|
14
|
+
console.debug(`End of ${domain}/${endpoint} request`);
|
|
15
15
|
}
|
|
16
16
|
};
|
package/bin/Readme.md
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
## Lua Modules Setup
|
|
2
|
-
|
|
3
|
-
Auto-configure Lua to use `./lua_modules` (like `node_modules`).
|
|
4
|
-
|
|
5
|
-
### Install
|
|
6
|
-
- MAC
|
|
7
|
-
```bash
|
|
8
|
-
npx mac-lua-modules
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
### Usage
|
|
12
|
-
```bash
|
|
13
|
-
# Install Lua packages
|
|
14
|
-
luarocks install --tree ./lua_modules inspect
|
|
15
|
-
|
|
16
|
-
# Use in code (no setup needed)
|
|
17
|
-
local inspect = require('inspect')
|
|
18
|
-
print(inspect({name = "Lenix"}))
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
### What it does
|
|
22
|
-
|
|
23
|
-
Adds environment variables to your shell config (for mac users: `~/.zshrc` or `~/.bashrc`) to automatically change your Lua modules configurations to `./lua_modules` instead of hidden nested directories.
|
|
24
|
-
|
|
25
|
-
## ESLINT Usage
|
|
26
|
-
### Build your own linter
|
|
27
|
-
```zsh
|
|
28
|
-
npx lenix --lint
|
|
29
|
-
```
|
|
30
|
-
### Clone a preset lint
|
|
31
|
-
```zsh
|
|
32
|
-
npx lenix --lint --preset
|
|
33
|
-
```
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|