@hublo/sentinel 1.1.7 → 1.2.0-alpha.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 +5 -4
- package/dist/bin/sentinel.js +20 -4
- package/dist/{chunk-W73ISYMG.js → chunk-FLJ2QNFF.js} +1227 -430
- package/dist/chunk-XVDOQ3G3.js +39 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -1
- package/dist/roles/build/react-app.d.ts +112 -0
- package/dist/roles/build/react-app.js +126 -0
- package/lint/nest.json +358 -0
- package/lint/node.json +52 -0
- package/lint/react-lib.json +376 -0
- package/lint/react.json +474 -0
- package/lint/svelte.json +209 -0
- package/lint/tools.json +197 -0
- package/oxlint/nest.json +2 -355
- package/oxlint/node.json +3 -50
- package/oxlint/react-lib.json +2 -373
- package/oxlint/react.json +2 -471
- package/oxlint/svelte.json +3 -207
- package/oxlint/tools.json +3 -195
- package/package.json +21 -2
package/oxlint/tools.json
CHANGED
|
@@ -1,197 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
"oxc",
|
|
6
|
-
"unicorn",
|
|
7
|
-
"import",
|
|
8
|
-
"node"
|
|
9
|
-
],
|
|
10
|
-
"categories": {
|
|
11
|
-
"correctness": "off",
|
|
12
|
-
"suspicious": "off",
|
|
13
|
-
"pedantic": "off",
|
|
14
|
-
"perf": "off",
|
|
15
|
-
"style": "off",
|
|
16
|
-
"restriction": "off",
|
|
17
|
-
"nursery": "off"
|
|
18
|
-
},
|
|
19
|
-
"rules": {
|
|
20
|
-
"no-var": "error",
|
|
21
|
-
"prefer-const": [
|
|
22
|
-
"error",
|
|
23
|
-
{
|
|
24
|
-
"destructuring": "any",
|
|
25
|
-
"ignoreReadBeforeAssign": false
|
|
26
|
-
}
|
|
27
|
-
],
|
|
28
|
-
"prefer-rest-params": "error",
|
|
29
|
-
"prefer-spread": "error",
|
|
30
|
-
"typescript/ban-ts-comment": "error",
|
|
31
|
-
"typescript/no-array-constructor": "error",
|
|
32
|
-
"typescript/no-duplicate-enum-values": "error",
|
|
33
|
-
"typescript/no-empty-object-type": "error",
|
|
34
|
-
"typescript/no-extra-non-null-assertion": "error",
|
|
35
|
-
"typescript/no-misused-new": "error",
|
|
36
|
-
"typescript/no-namespace": "error",
|
|
37
|
-
"typescript/no-non-null-asserted-optional-chain": "error",
|
|
38
|
-
"typescript/no-this-alias": "error",
|
|
39
|
-
"typescript/no-unnecessary-type-constraint": "error",
|
|
40
|
-
"typescript/no-unsafe-declaration-merging": "error",
|
|
41
|
-
"typescript/no-unsafe-function-type": "error",
|
|
42
|
-
"typescript/no-unused-expressions": [
|
|
43
|
-
"error",
|
|
44
|
-
{
|
|
45
|
-
"allowShortCircuit": false,
|
|
46
|
-
"allowTaggedTemplates": false,
|
|
47
|
-
"allowTernary": false
|
|
48
|
-
}
|
|
49
|
-
],
|
|
50
|
-
"typescript/no-wrapper-object-types": "error",
|
|
51
|
-
"typescript/prefer-as-const": "error",
|
|
52
|
-
"typescript/prefer-namespace-keyword": "error",
|
|
53
|
-
"typescript/triple-slash-reference": "error",
|
|
54
|
-
"for-direction": "error",
|
|
55
|
-
"no-async-promise-executor": "error",
|
|
56
|
-
"no-case-declarations": "error",
|
|
57
|
-
"no-compare-neg-zero": "error",
|
|
58
|
-
"no-cond-assign": [
|
|
59
|
-
"error",
|
|
60
|
-
"except-parens"
|
|
61
|
-
],
|
|
62
|
-
"no-constant-binary-expression": [
|
|
63
|
-
"error",
|
|
64
|
-
{
|
|
65
|
-
"checkRelationalComparisons": false
|
|
66
|
-
}
|
|
67
|
-
],
|
|
68
|
-
"no-constant-condition": [
|
|
69
|
-
"error",
|
|
70
|
-
{
|
|
71
|
-
"checkLoops": "allExceptWhileTrue"
|
|
72
|
-
}
|
|
73
|
-
],
|
|
74
|
-
"no-control-regex": "error",
|
|
75
|
-
"no-debugger": "error",
|
|
76
|
-
"no-delete-var": "error",
|
|
77
|
-
"no-dupe-else-if": "error",
|
|
78
|
-
"no-duplicate-case": "error",
|
|
79
|
-
"no-empty": [
|
|
80
|
-
"error",
|
|
81
|
-
{
|
|
82
|
-
"allowEmptyCatch": false
|
|
83
|
-
}
|
|
84
|
-
],
|
|
85
|
-
"no-empty-character-class": "error",
|
|
86
|
-
"no-empty-pattern": [
|
|
87
|
-
"error",
|
|
88
|
-
{
|
|
89
|
-
"allowObjectPatternsAsParameters": false
|
|
90
|
-
}
|
|
91
|
-
],
|
|
92
|
-
"no-empty-static-block": "error",
|
|
93
|
-
"no-ex-assign": "error",
|
|
94
|
-
"no-extra-boolean-cast": [
|
|
95
|
-
"error",
|
|
96
|
-
{}
|
|
97
|
-
],
|
|
98
|
-
"no-fallthrough": [
|
|
99
|
-
"error",
|
|
100
|
-
{
|
|
101
|
-
"allowEmptyCase": false,
|
|
102
|
-
"reportUnusedFallthroughComment": false
|
|
103
|
-
}
|
|
104
|
-
],
|
|
105
|
-
"no-global-assign": [
|
|
106
|
-
"error",
|
|
107
|
-
{
|
|
108
|
-
"exceptions": []
|
|
109
|
-
}
|
|
110
|
-
],
|
|
111
|
-
"no-invalid-regexp": [
|
|
112
|
-
"error",
|
|
113
|
-
{}
|
|
114
|
-
],
|
|
115
|
-
"no-irregular-whitespace": [
|
|
116
|
-
"error",
|
|
117
|
-
{
|
|
118
|
-
"skipComments": false,
|
|
119
|
-
"skipJSXText": false,
|
|
120
|
-
"skipRegExps": false,
|
|
121
|
-
"skipStrings": true,
|
|
122
|
-
"skipTemplates": false
|
|
123
|
-
}
|
|
124
|
-
],
|
|
125
|
-
"no-loss-of-precision": "error",
|
|
126
|
-
"no-misleading-character-class": [
|
|
127
|
-
"error",
|
|
128
|
-
{
|
|
129
|
-
"allowEscape": false
|
|
130
|
-
}
|
|
131
|
-
],
|
|
132
|
-
"no-nonoctal-decimal-escape": "error",
|
|
133
|
-
"no-prototype-builtins": "error",
|
|
134
|
-
"no-regex-spaces": "error",
|
|
135
|
-
"no-self-assign": [
|
|
136
|
-
"error",
|
|
137
|
-
{
|
|
138
|
-
"props": true
|
|
139
|
-
}
|
|
140
|
-
],
|
|
141
|
-
"no-shadow-restricted-names": [
|
|
142
|
-
"error",
|
|
143
|
-
{
|
|
144
|
-
"reportGlobalThis": true
|
|
145
|
-
}
|
|
146
|
-
],
|
|
147
|
-
"no-sparse-arrays": "error",
|
|
148
|
-
"no-unassigned-vars": "error",
|
|
149
|
-
"no-unsafe-finally": "error",
|
|
150
|
-
"no-unsafe-optional-chaining": [
|
|
151
|
-
"error",
|
|
152
|
-
{
|
|
153
|
-
"disallowArithmeticOperators": false
|
|
154
|
-
}
|
|
155
|
-
],
|
|
156
|
-
"no-unused-labels": "error",
|
|
157
|
-
"no-unused-private-class-members": "error",
|
|
158
|
-
"no-useless-assignment": "error",
|
|
159
|
-
"no-useless-backreference": "error",
|
|
160
|
-
"no-useless-catch": "error",
|
|
161
|
-
"no-useless-escape": [
|
|
162
|
-
"error",
|
|
163
|
-
{
|
|
164
|
-
"allowRegexCharacters": []
|
|
165
|
-
}
|
|
166
|
-
],
|
|
167
|
-
"preserve-caught-error": [
|
|
168
|
-
"error",
|
|
169
|
-
{
|
|
170
|
-
"requireCatchParameter": false
|
|
171
|
-
}
|
|
172
|
-
],
|
|
173
|
-
"require-yield": "error",
|
|
174
|
-
"typescript/no-explicit-any": "error",
|
|
175
|
-
"typescript/no-require-imports": "error",
|
|
176
|
-
"typescript/no-unused-vars": [
|
|
177
|
-
"error",
|
|
178
|
-
{
|
|
179
|
-
"argsIgnorePattern": "^_",
|
|
180
|
-
"varsIgnorePattern": "^_"
|
|
181
|
-
}
|
|
182
|
-
],
|
|
183
|
-
"use-isnan": [
|
|
184
|
-
"error",
|
|
185
|
-
{
|
|
186
|
-
"enforceForIndexOf": false,
|
|
187
|
-
"enforceForSwitchCase": true
|
|
188
|
-
}
|
|
189
|
-
],
|
|
190
|
-
"valid-typeof": [
|
|
191
|
-
"error",
|
|
192
|
-
{
|
|
193
|
-
"requireStringLiterals": false
|
|
194
|
-
}
|
|
195
|
-
]
|
|
196
|
-
}
|
|
2
|
+
"extends": [
|
|
3
|
+
"../lint/tools.json"
|
|
4
|
+
]
|
|
197
5
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hublo/sentinel",
|
|
3
|
-
"version": "1.1
|
|
3
|
+
"version": "1.2.0-alpha.1",
|
|
4
4
|
"description": "One CLI that guards code health across Hublo repos: shared lint/typescript/build/test presets, static & dynamic analysis, and architecture checks.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -20,6 +20,15 @@
|
|
|
20
20
|
"types": "./dist/index.d.ts",
|
|
21
21
|
"import": "./dist/index.js"
|
|
22
22
|
},
|
|
23
|
+
"./typescript/react": {
|
|
24
|
+
"default": "./dist/tsconfig/react.json"
|
|
25
|
+
},
|
|
26
|
+
"./typescript/nest": {
|
|
27
|
+
"default": "./dist/tsconfig/nest.json"
|
|
28
|
+
},
|
|
29
|
+
"./typescript/node": {
|
|
30
|
+
"default": "./dist/tsconfig/node.json"
|
|
31
|
+
},
|
|
23
32
|
"./tsconfig/react": {
|
|
24
33
|
"default": "./dist/tsconfig/react.json"
|
|
25
34
|
},
|
|
@@ -28,16 +37,23 @@
|
|
|
28
37
|
},
|
|
29
38
|
"./tsconfig/node": {
|
|
30
39
|
"default": "./dist/tsconfig/node.json"
|
|
40
|
+
},
|
|
41
|
+
"./build/react": {
|
|
42
|
+
"types": "./dist/roles/build/react-app.d.ts",
|
|
43
|
+
"import": "./dist/roles/build/react-app.js"
|
|
31
44
|
}
|
|
32
45
|
},
|
|
33
46
|
"files": [
|
|
34
47
|
"dist",
|
|
48
|
+
"lint",
|
|
35
49
|
"oxlint",
|
|
36
50
|
"plugins",
|
|
37
51
|
"!dist/**/*.map"
|
|
38
52
|
],
|
|
39
53
|
"dependencies": {
|
|
40
54
|
"@nx/eslint-plugin": "23.0.1",
|
|
55
|
+
"@tailwindcss/vite": "4.1.18",
|
|
56
|
+
"@vitejs/plugin-react": "6.0.1",
|
|
41
57
|
"commander": "^13.0.0",
|
|
42
58
|
"eslint-plugin-jest-dom": "5.5.0",
|
|
43
59
|
"eslint-plugin-no-barrel-files": "1.2.1",
|
|
@@ -45,9 +61,12 @@
|
|
|
45
61
|
"eslint-plugin-storybook": "10.3.5",
|
|
46
62
|
"eslint-plugin-styled-components-a11y": "2.2.0",
|
|
47
63
|
"jsonc-parser": "^3.3.1",
|
|
64
|
+
"nitro": "3.0.260415-beta",
|
|
48
65
|
"oxfmt": "0.63.0",
|
|
49
66
|
"oxlint": "1.77.0",
|
|
50
|
-
"oxlint-tsgolint": "7.0.2001"
|
|
67
|
+
"oxlint-tsgolint": "7.0.2001",
|
|
68
|
+
"vite": "8.0.8",
|
|
69
|
+
"vite-plugin-svgr": "5.2.0"
|
|
51
70
|
},
|
|
52
71
|
"devDependencies": {
|
|
53
72
|
"@hublo/sentinel": "link:.",
|