@naturalcycles/dev-lib 20.12.12 → 20.13.0
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/cfg/eslint-rules.js
CHANGED
|
@@ -118,7 +118,7 @@ export default {
|
|
|
118
118
|
modifiers: ['requiresQuotes'],
|
|
119
119
|
},
|
|
120
120
|
],
|
|
121
|
-
'@typescript-eslint/no-array-constructor':
|
|
121
|
+
'@typescript-eslint/no-array-constructor': 0, // ox
|
|
122
122
|
'@typescript-eslint/no-extra-non-null-assertion': 2,
|
|
123
123
|
'@typescript-eslint/no-floating-promises': 0, // oxlint
|
|
124
124
|
'@typescript-eslint/no-inferrable-types': [
|
|
@@ -136,7 +136,7 @@ export default {
|
|
|
136
136
|
'@typescript-eslint/prefer-function-type': 0, // ox
|
|
137
137
|
'@typescript-eslint/prefer-namespace-keyword': 0, // ox
|
|
138
138
|
'@typescript-eslint/promise-function-async': [
|
|
139
|
-
|
|
139
|
+
0, // ox
|
|
140
140
|
{
|
|
141
141
|
checkArrowFunctions: false,
|
|
142
142
|
checkFunctionDeclarations: true,
|
|
@@ -328,6 +328,7 @@ export default {
|
|
|
328
328
|
'@typescript-eslint/prefer-promise-reject-errors': 0, // ox
|
|
329
329
|
'unicorn/prefer-import-meta-properties': 2,
|
|
330
330
|
'unicorn/prefer-response-static-json': 0, // ox
|
|
331
|
+
'unicorn/prefer-includes': 0, // ox
|
|
331
332
|
'unicorn/no-array-callback-reference': 0, // false positives
|
|
332
333
|
'unicorn/no-process-exit': 0,
|
|
333
334
|
'unicorn/prefer-single-call': 0,
|
|
File without changes
|
|
File without changes
|
package/cfg/oxlint.config.json
CHANGED
|
@@ -37,6 +37,8 @@
|
|
|
37
37
|
"prefer-array-find": 2,
|
|
38
38
|
"prefer-array-flat-map": 2,
|
|
39
39
|
"prefer-set-has": 2,
|
|
40
|
+
"no-array-constructor": 2,
|
|
41
|
+
"no-useless-return": 2,
|
|
40
42
|
"no-bitwise": 2,
|
|
41
43
|
"no-empty": [2, { "allowEmptyCatch": true }],
|
|
42
44
|
"no-regex-spaces": 2,
|
|
@@ -87,7 +89,7 @@
|
|
|
87
89
|
"typescript/non-nullable-type-assertion-style": 2,
|
|
88
90
|
"typescript/prefer-literal-enum-member": 2,
|
|
89
91
|
"typescript/promise-function-async": [
|
|
90
|
-
|
|
92
|
+
2,
|
|
91
93
|
{
|
|
92
94
|
"checkArrowFunctions": false,
|
|
93
95
|
"checkFunctionDeclarations": true,
|
package/dist/lint.util.js
CHANGED
package/package.json
CHANGED
|
@@ -1,15 +1,36 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturalcycles/dev-lib",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "20.
|
|
4
|
+
"version": "20.13.0",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"tsx-debug": "tsx scripts/testScript.ts",
|
|
7
|
+
"dev-lib": "tsx ./src/bin/dev-lib.ts",
|
|
8
|
+
"bt": "tsx ./src/bin/dev-lib.ts bt && tsx scripts/eslintPrintConfig.script.ts && tsx scripts/oxlintPrintConfig.script.ts",
|
|
9
|
+
"check": "tsx ./src/bin/dev-lib.ts check && tsx scripts/eslintPrintConfig.script.ts && tsx scripts/oxlintPrintConfig.script.ts",
|
|
10
|
+
"typecheck": "tsx ./src/bin/dev-lib.ts typecheck",
|
|
11
|
+
"clean": "tsx ./src/bin/dev-lib.ts clean",
|
|
12
|
+
"build": "tsx ./src/bin/dev-lib.ts build",
|
|
13
|
+
"out": "tsx ./src/bin/out.ts",
|
|
14
|
+
"test": "tsx ./src/bin/dev-lib.ts test",
|
|
15
|
+
"test-leaks": "tsx ./src/bin/dev-lib.ts test-leaks",
|
|
16
|
+
"test-integration": "tsx ./src/bin/dev-lib.ts test-integration",
|
|
17
|
+
"test-manual": "tsx ./src/bin/dev-lib.ts test-manual",
|
|
18
|
+
"lint": "tsx scripts/eslintPrintConfig.script.ts && tsx scripts/oxlintPrintConfig.script.ts && tsx ./src/bin/dev-lib.ts lint",
|
|
19
|
+
"eslint": "tsx ./src/bin/dev-lib.ts eslint",
|
|
20
|
+
"eslint-no-fix": "tsx ./src/bin/dev-lib.ts eslint-no-fix",
|
|
21
|
+
"biome-no-fix": "tsx ./src/bin/dev-lib.ts biome-no-fix",
|
|
22
|
+
"oxlint": "tsx ./src/bin/dev-lib.ts oxlint",
|
|
23
|
+
"oxlint-no-fix": "tsx ./src/bin/dev-lib.ts oxlint-no-fix",
|
|
24
|
+
"lint-staged-debug": "tsx ./src/bin/dev-lib.ts lint-staged"
|
|
25
|
+
},
|
|
5
26
|
"dependencies": {
|
|
6
27
|
"@biomejs/biome": "^2",
|
|
7
28
|
"@commitlint/cli": "^20",
|
|
8
29
|
"@commitlint/config-conventional": "^20",
|
|
9
30
|
"@eslint/js": "^9",
|
|
10
31
|
"@inquirer/prompts": "^8",
|
|
11
|
-
"@naturalcycles/js-lib": "
|
|
12
|
-
"@naturalcycles/nodejs-lib": "
|
|
32
|
+
"@naturalcycles/js-lib": "workspace:^15",
|
|
33
|
+
"@naturalcycles/nodejs-lib": "workspace:^15",
|
|
13
34
|
"@vitest/coverage-v8": "^4",
|
|
14
35
|
"@vitest/eslint-plugin": "^1",
|
|
15
36
|
"eslint": "^9",
|
|
@@ -91,26 +112,5 @@
|
|
|
91
112
|
},
|
|
92
113
|
"description": "Set of opinionated configuration files and tools for common project needs",
|
|
93
114
|
"author": "Natural Cycles Team",
|
|
94
|
-
"license": "MIT"
|
|
95
|
-
|
|
96
|
-
"tsx-debug": "tsx scripts/testScript.ts",
|
|
97
|
-
"dev-lib": "tsx ./src/bin/dev-lib.ts",
|
|
98
|
-
"bt": "tsx ./src/bin/dev-lib.ts bt && tsx scripts/eslintPrintConfig.script.ts && tsx scripts/oxlintPrintConfig.script.ts",
|
|
99
|
-
"check": "tsx ./src/bin/dev-lib.ts check && tsx scripts/eslintPrintConfig.script.ts && tsx scripts/oxlintPrintConfig.script.ts",
|
|
100
|
-
"typecheck": "tsx ./src/bin/dev-lib.ts typecheck",
|
|
101
|
-
"clean": "tsx ./src/bin/dev-lib.ts clean",
|
|
102
|
-
"build": "tsx ./src/bin/dev-lib.ts build",
|
|
103
|
-
"out": "tsx ./src/bin/out.ts",
|
|
104
|
-
"test": "tsx ./src/bin/dev-lib.ts test",
|
|
105
|
-
"test-leaks": "tsx ./src/bin/dev-lib.ts test-leaks",
|
|
106
|
-
"test-integration": "tsx ./src/bin/dev-lib.ts test-integration",
|
|
107
|
-
"test-manual": "tsx ./src/bin/dev-lib.ts test-manual",
|
|
108
|
-
"lint": "tsx scripts/eslintPrintConfig.script.ts && tsx scripts/oxlintPrintConfig.script.ts && tsx ./src/bin/dev-lib.ts lint",
|
|
109
|
-
"eslint": "tsx ./src/bin/dev-lib.ts eslint",
|
|
110
|
-
"eslint-no-fix": "tsx ./src/bin/dev-lib.ts eslint-no-fix",
|
|
111
|
-
"biome-no-fix": "tsx ./src/bin/dev-lib.ts biome-no-fix",
|
|
112
|
-
"oxlint": "tsx ./src/bin/dev-lib.ts oxlint",
|
|
113
|
-
"oxlint-no-fix": "tsx ./src/bin/dev-lib.ts oxlint-no-fix",
|
|
114
|
-
"lint-staged-debug": "tsx ./src/bin/dev-lib.ts lint-staged"
|
|
115
|
-
}
|
|
116
|
-
}
|
|
115
|
+
"license": "MIT"
|
|
116
|
+
}
|
package/cfg/overwrite/.gitignore
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
#
|
|
2
|
-
# DO NOT MODIFY, WILL BE OVERWRITTEN BY @naturalcycles/dev-lib
|
|
3
|
-
#
|
|
4
|
-
# You can put more .gitignore files in your respective subfolders (e.g `src`) to ignore additional things.
|
|
5
|
-
# Or PR to @naturalcycles/dev-lib if you want to ignore something generic.
|
|
6
|
-
#
|
|
7
|
-
|
|
8
|
-
#
|
|
9
|
-
# Global (all dirs)
|
|
10
|
-
#
|
|
11
|
-
*.iml
|
|
12
|
-
.idea
|
|
13
|
-
.vscode
|
|
14
|
-
.DS_Store
|
|
15
|
-
node_modules
|
|
16
|
-
.env
|
|
17
|
-
.npmrc
|
|
18
|
-
.classpath
|
|
19
|
-
.project
|
|
20
|
-
.settings
|
|
21
|
-
.externalToolBuilders
|
|
22
|
-
.cache
|
|
23
|
-
.stencil
|
|
24
|
-
.nuxt
|
|
25
|
-
.gitconfig
|
|
26
|
-
.lighthouseci
|
|
27
|
-
|
|
28
|
-
#
|
|
29
|
-
# Root dir
|
|
30
|
-
#
|
|
31
|
-
/target
|
|
32
|
-
/*.log
|
|
33
|
-
/log.txt
|
|
34
|
-
/.sass-cache
|
|
35
|
-
/.sourcemaps
|
|
36
|
-
/docs/.vuepress/dist
|
|
37
|
-
/docs/.vitepress/dist
|
|
38
|
-
/docs/.vitepress/cache
|
|
39
|
-
/loader
|
|
40
|
-
/.angular/cache
|
|
41
|
-
|
|
42
|
-
/coverage
|
|
43
|
-
|
|
44
|
-
/dist
|
|
45
|
-
/dist-cjs
|
|
46
|
-
/dist-esm
|
|
47
|
-
/tmp
|
|
48
|
-
|
|
49
|
-
# All secrets are ignored, except encrypted
|
|
50
|
-
/secret/**/*.*
|
|
51
|
-
!/secret/**/*.enc
|
|
52
|
-
|
|
53
|
-
/scripts/try.*
|
|
54
|
-
/logs
|
|
55
|
-
/www/*
|
|
56
|
-
!/www/.gitkeep
|