@storm-software/linting-tools 1.39.5 → 1.41.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/CHANGELOG.md +29 -0
- package/README.md +1 -1
- package/bin/lint.js +23 -23
- package/package.json +1 -3
- package/src/cli/index.js +3 -1
- package/src/manypkg/index.js +1 -0
- package/tsconfig/reset.d.ts +0 -2
- package/tsconfig/tsconfig.root.json +0 -48
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,32 @@
|
|
|
1
|
+
## 1.41.0 (2024-02-26)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### 🚀 Features
|
|
5
|
+
|
|
6
|
+
- **tsconfig:** Added package to contain default base tsconfig files ([1b341f9a](https://github.com/storm-software/storm-ops/commit/1b341f9a))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### 🩹 Fixes
|
|
10
|
+
|
|
11
|
+
- **git-tools:** Resolved linting issues with the nx-version module ([9b5f02d0](https://github.com/storm-software/storm-ops/commit/9b5f02d0))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### ❤️ Thank You
|
|
15
|
+
|
|
16
|
+
- Patrick Sullivan
|
|
17
|
+
|
|
18
|
+
## 1.40.0 (2024-02-26)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### 🚀 Features
|
|
22
|
+
|
|
23
|
+
- **storm-ops:** Major updates to tsconfig values ([a3638fae](https://github.com/storm-software/storm-ops/commit/a3638fae))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### ❤️ Thank You
|
|
27
|
+
|
|
28
|
+
- Patrick Sullivan
|
|
29
|
+
|
|
1
30
|
## 1.39.5 (2024-02-24)
|
|
2
31
|
|
|
3
32
|
|
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
16
16
|
|
|
17
17
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.org" target="_blank">stormsoftware.org</a> to stay up to date with this developer</h3><br />
|
|
18
18
|
|
|
19
|
-
[](https://prettier.io/)
|
|
20
20
|
[](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://docusaurus.io/) 
|
|
21
21
|
|
|
22
22
|
> [!IMPORTANT]
|
package/bin/lint.js
CHANGED
|
@@ -285188,7 +285188,7 @@ function findFolderUp(startPath, endFileNames) {
|
|
|
285188
285188
|
|
|
285189
285189
|
// packages/config-tools/src/utilities/find-workspace-root.ts
|
|
285190
285190
|
var rootFiles = [
|
|
285191
|
-
"
|
|
285191
|
+
"storm.json",
|
|
285192
285192
|
"storm.config.js",
|
|
285193
285193
|
"storm.config.ts",
|
|
285194
285194
|
".storm.json",
|
|
@@ -285196,6 +285196,7 @@ var rootFiles = [
|
|
|
285196
285196
|
".storm.yml",
|
|
285197
285197
|
".storm.js",
|
|
285198
285198
|
".storm.ts",
|
|
285199
|
+
"lerna.json",
|
|
285199
285200
|
"nx.json",
|
|
285200
285201
|
"turbo.json",
|
|
285201
285202
|
"npm-workspace.json",
|
|
@@ -285270,25 +285271,23 @@ var getJsonConfigFile = async (fileName, filePath2) => {
|
|
|
285270
285271
|
} : { config: {}, filepath: jsonPath, isEmpty: isEmpty3 };
|
|
285271
285272
|
};
|
|
285272
285273
|
var getConfigFile = async (filePath2, additionalFileNames = []) => {
|
|
285273
|
-
const workspacePath = filePath2 ? filePath2 :
|
|
285274
|
-
|
|
285275
|
-
|
|
285276
|
-
|
|
285277
|
-
|
|
285278
|
-
|
|
285279
|
-
|
|
285280
|
-
|
|
285281
|
-
|
|
285282
|
-
|
|
285283
|
-
|
|
285284
|
-
|
|
285285
|
-
|
|
285286
|
-
|
|
285287
|
-
|
|
285288
|
-
|
|
285289
|
-
|
|
285290
|
-
break;
|
|
285291
|
-
}
|
|
285274
|
+
const workspacePath = filePath2 ? filePath2 : findWorkspaceRoot(filePath2);
|
|
285275
|
+
if (!defaultExplorer) {
|
|
285276
|
+
defaultExplorer = await getConfigFileExplorer("storm");
|
|
285277
|
+
}
|
|
285278
|
+
let cosmiconfigResult = null;
|
|
285279
|
+
if (defaultExplorer) {
|
|
285280
|
+
cosmiconfigResult = await defaultExplorer.search(workspacePath);
|
|
285281
|
+
}
|
|
285282
|
+
if ((!cosmiconfigResult || cosmiconfigResult.isEmpty) && additionalFileNames.length > 0) {
|
|
285283
|
+
for (const additionalFileName of additionalFileNames) {
|
|
285284
|
+
cosmiconfigResult = await getJsonConfigFile(additionalFileName, workspacePath);
|
|
285285
|
+
if (cosmiconfigResult && !cosmiconfigResult.isEmpty) {
|
|
285286
|
+
break;
|
|
285287
|
+
}
|
|
285288
|
+
cosmiconfigResult = await getConfigFileByName(additionalFileName, workspacePath);
|
|
285289
|
+
if (cosmiconfigResult && !cosmiconfigResult.isEmpty) {
|
|
285290
|
+
break;
|
|
285292
285291
|
}
|
|
285293
285292
|
}
|
|
285294
285293
|
}
|
|
@@ -289219,7 +289218,7 @@ var getLogLevel = (label) => {
|
|
|
289219
289218
|
return LogLevel.INFO;
|
|
289220
289219
|
}
|
|
289221
289220
|
};
|
|
289222
|
-
var getLogLevelLabel = (logLevel) => {
|
|
289221
|
+
var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
|
|
289223
289222
|
if (logLevel >= LogLevel.ALL) {
|
|
289224
289223
|
return LogLevelLabel.ALL;
|
|
289225
289224
|
}
|
|
@@ -289464,14 +289463,14 @@ var setExtensionEnv = (extensionName, extension) => {
|
|
|
289464
289463
|
if (extension[key]) {
|
|
289465
289464
|
const result = key?.replace(
|
|
289466
289465
|
/([A-Z])+/g,
|
|
289467
|
-
(input) => input ? input[0]
|
|
289466
|
+
(input) => input ? input[0]?.toUpperCase() + input.slice(1) : ""
|
|
289468
289467
|
).split(/(?=[A-Z])|[\.\-\s_]/).map((x) => x.toLowerCase()) ?? [];
|
|
289469
289468
|
let extensionKey;
|
|
289470
289469
|
if (result.length === 0) {
|
|
289471
289470
|
return;
|
|
289472
289471
|
}
|
|
289473
289472
|
if (result.length === 1) {
|
|
289474
|
-
extensionKey = result[0]
|
|
289473
|
+
extensionKey = result[0]?.toUpperCase() ?? "";
|
|
289475
289474
|
} else {
|
|
289476
289475
|
extensionKey = result.reduce((ret, part) => {
|
|
289477
289476
|
return `${ret}_${part.toLowerCase()}`;
|
|
@@ -332464,6 +332463,7 @@ var checks = {
|
|
|
332464
332463
|
|
|
332465
332464
|
// node_modules/.pnpm/@manypkg+cli@0.21.2/node_modules/@manypkg/cli/src/errors.ts
|
|
332466
332465
|
var ExitError = class extends Error {
|
|
332466
|
+
code;
|
|
332467
332467
|
constructor(code) {
|
|
332468
332468
|
super(`The process should exit with code ${code}`);
|
|
332469
332469
|
this.code = code;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/linting-tools",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.41.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "⚡ A package containing various linting tools used to validate syntax, enforce design standards, and format code in a Storm workspace.",
|
|
6
6
|
"keywords": [
|
|
@@ -85,8 +85,6 @@
|
|
|
85
85
|
"@manypkg/get-packages": "2.2.0",
|
|
86
86
|
"@size-limit/file": "11.0.2",
|
|
87
87
|
"@size-limit/time": "11.0.2",
|
|
88
|
-
"@total-typescript/ts-reset": "0.5.1",
|
|
89
|
-
"@tsconfig/recommended": "1.0.3",
|
|
90
88
|
"alex": "11.0.1",
|
|
91
89
|
"check-dependency-version-consistency": "4.1.0",
|
|
92
90
|
"child_process": "1.0.2",
|
package/src/cli/index.js
CHANGED
|
@@ -281044,7 +281044,7 @@ function findFolderUp(startPath, endFileNames) {
|
|
|
281044
281044
|
|
|
281045
281045
|
// packages/config-tools/src/utilities/find-workspace-root.ts
|
|
281046
281046
|
var rootFiles = [
|
|
281047
|
-
"
|
|
281047
|
+
"storm.json",
|
|
281048
281048
|
"storm.config.js",
|
|
281049
281049
|
"storm.config.ts",
|
|
281050
281050
|
".storm.json",
|
|
@@ -281052,6 +281052,7 @@ var rootFiles = [
|
|
|
281052
281052
|
".storm.yml",
|
|
281053
281053
|
".storm.js",
|
|
281054
281054
|
".storm.ts",
|
|
281055
|
+
"lerna.json",
|
|
281055
281056
|
"nx.json",
|
|
281056
281057
|
"turbo.json",
|
|
281057
281058
|
"npm-workspace.json",
|
|
@@ -327894,6 +327895,7 @@ var checks = {
|
|
|
327894
327895
|
|
|
327895
327896
|
// node_modules/.pnpm/@manypkg+cli@0.21.2/node_modules/@manypkg/cli/src/errors.ts
|
|
327896
327897
|
var ExitError = class extends Error {
|
|
327898
|
+
code;
|
|
327897
327899
|
constructor(code) {
|
|
327898
327900
|
super(`The process should exit with code ${code}`);
|
|
327899
327901
|
this.code = code;
|
package/src/manypkg/index.js
CHANGED
|
@@ -34269,6 +34269,7 @@ var checks = {
|
|
|
34269
34269
|
|
|
34270
34270
|
// node_modules/.pnpm/@manypkg+cli@0.21.2/node_modules/@manypkg/cli/src/errors.ts
|
|
34271
34271
|
var ExitError = class extends Error {
|
|
34272
|
+
code;
|
|
34272
34273
|
constructor(code) {
|
|
34273
34274
|
super(`The process should exit with code ${code}`);
|
|
34274
34275
|
this.code = code;
|
package/tsconfig/reset.d.ts
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
-
"display": "Storm Software",
|
|
4
|
-
"extends": "@tsconfig/recommended/tsconfig.json",
|
|
5
|
-
"compileOnSave": false,
|
|
6
|
-
"compilerOptions": {
|
|
7
|
-
"sourceMap": true,
|
|
8
|
-
"incremental": true,
|
|
9
|
-
"noImplicitReturns": true,
|
|
10
|
-
"noUnusedLocals": true,
|
|
11
|
-
"noUncheckedIndexedAccess": true,
|
|
12
|
-
"strictNullChecks": true,
|
|
13
|
-
"strict": true,
|
|
14
|
-
"types": [
|
|
15
|
-
"node"
|
|
16
|
-
],
|
|
17
|
-
"resolveJsonModule": true,
|
|
18
|
-
"isolatedModules": true,
|
|
19
|
-
"moduleResolution": "Bundler",
|
|
20
|
-
"allowSyntheticDefaultImports": true,
|
|
21
|
-
"forceConsistentCasingInFileNames": true,
|
|
22
|
-
"noImplicitOverride": true,
|
|
23
|
-
"noPropertyAccessFromIndexSignature": false,
|
|
24
|
-
"noFallthroughCasesInSwitch": true,
|
|
25
|
-
"importHelpers": true,
|
|
26
|
-
"experimentalDecorators": true,
|
|
27
|
-
"emitDecoratorMetadata": true,
|
|
28
|
-
"target": "esnext",
|
|
29
|
-
"module": "esnext",
|
|
30
|
-
"lib": [
|
|
31
|
-
"esnext",
|
|
32
|
-
"dom",
|
|
33
|
-
"dom.iterable"
|
|
34
|
-
],
|
|
35
|
-
"skipLibCheck": true,
|
|
36
|
-
"skipDefaultLibCheck": true,
|
|
37
|
-
"esModuleInterop": true
|
|
38
|
-
},
|
|
39
|
-
"include": [
|
|
40
|
-
"**/*.ts",
|
|
41
|
-
"**/*.d.ts",
|
|
42
|
-
"**/*.json"
|
|
43
|
-
],
|
|
44
|
-
"exclude": [
|
|
45
|
-
"**/node_modules",
|
|
46
|
-
"**/tmp"
|
|
47
|
-
]
|
|
48
|
-
}
|