lenix 1.3.0 → 1.3.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 +1 -1
- package/bin/dist/lint.mjs +2 -2
- package/bin/lint.mts +2 -2
- package/package.json +5 -5
- /package/bin/{.eslint-preset.json → lint-preset.json} +0 -0
package/Readme.md
CHANGED
|
@@ -32,7 +32,7 @@ yarn add lenix
|
|
|
32
32
|
[](https://github.com/lenixdev/lenix)
|
|
33
33
|
|
|
34
34
|
## 🗺️ Roadmap
|
|
35
|
-
- [ ]
|
|
35
|
+
- [ ] fix the lint tsconfig.json file creation when no file is found
|
|
36
36
|
|
|
37
37
|
## 🧾License
|
|
38
38
|

|
package/bin/dist/lint.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import eslintJs from '@eslint/js';
|
|
|
6
6
|
import tseslint from 'typescript-eslint';
|
|
7
7
|
const [, , cmd, ...args] = process.argv;
|
|
8
8
|
if (cmd !== '--lint') {
|
|
9
|
-
process.stdout.write('Usage: lenix --lint [--preset]
|
|
9
|
+
process.stdout.write('Usage: lenix --lint [--preset]\n');
|
|
10
10
|
process.exit(0);
|
|
11
11
|
}
|
|
12
12
|
process.argv = [process.argv[0], process.argv[1], ...args];
|
|
@@ -207,7 +207,7 @@ if (preset) {
|
|
|
207
207
|
const config = generateConfig(data.rules);
|
|
208
208
|
fs.writeFileSync('eslint.config.mts', config, 'utf8');
|
|
209
209
|
process.stdout.write(`${tag('done', c.green)} Written to ${bold('eslint.config.mts')}\n`);
|
|
210
|
-
process.stdout.write(`${tag('notice', c.cyan)} Run:
|
|
210
|
+
process.stdout.write(`${tag('notice', c.cyan)} Run: ${bold('npm add -D @eslint/js globals typescript-eslint')}\n`);
|
|
211
211
|
fs.closeSync(ttyFd);
|
|
212
212
|
process.exit(0);
|
|
213
213
|
}
|
package/bin/lint.mts
CHANGED
|
@@ -11,7 +11,7 @@ import type { ESLint } from 'eslint'
|
|
|
11
11
|
|
|
12
12
|
const [,, cmd, ...args] = process.argv
|
|
13
13
|
if (cmd !== '--lint') {
|
|
14
|
-
process.stdout.write('Usage: lenix --lint [--preset]
|
|
14
|
+
process.stdout.write('Usage: lenix --lint [--preset]\n')
|
|
15
15
|
process.exit(0)
|
|
16
16
|
}
|
|
17
17
|
process.argv = [process.argv[0], process.argv[1], ...args]
|
|
@@ -236,7 +236,7 @@ if (preset) {
|
|
|
236
236
|
const config = generateConfig(data.rules)
|
|
237
237
|
fs.writeFileSync('eslint.config.mts', config, 'utf8')
|
|
238
238
|
process.stdout.write(`${tag('done', c.green)} Written to ${bold('eslint.config.mts')}\n`)
|
|
239
|
-
process.stdout.write(`${tag('notice', c.cyan)} Run:
|
|
239
|
+
process.stdout.write(`${tag('notice', c.cyan)} Run: ${bold('npm add -D @eslint/js globals typescript-eslint')}\n`)
|
|
240
240
|
fs.closeSync(ttyFd)
|
|
241
241
|
process.exit(0)
|
|
242
242
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lenix",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "Helpful modules for the software engineers",
|
|
5
5
|
"author": "Lenix",
|
|
6
6
|
"license": "GPL-3.0",
|
|
@@ -31,6 +31,9 @@
|
|
|
31
31
|
"dist",
|
|
32
32
|
"bin"
|
|
33
33
|
],
|
|
34
|
+
"scripts": {
|
|
35
|
+
"build": "tsc -p src/fxmanifest/tsconfig.json && tsc-alias && tsc -p bin/tsconfig.json"
|
|
36
|
+
},
|
|
34
37
|
"dependencies": {
|
|
35
38
|
"@eslint/js": "^10.0.1",
|
|
36
39
|
"eslint": "^10.0.3",
|
|
@@ -46,8 +49,5 @@
|
|
|
46
49
|
"tsc-alias": "^1.8.16",
|
|
47
50
|
"tsx": "^4.21.0",
|
|
48
51
|
"typescript": "^5.3.3"
|
|
49
|
-
},
|
|
50
|
-
"scripts": {
|
|
51
|
-
"build": "tsc -p src/fxmanifest/tsconfig.json && tsc-alias && tsc -p bin/tsconfig.json"
|
|
52
52
|
}
|
|
53
|
-
}
|
|
53
|
+
}
|
|
File without changes
|