@hublo/sentinel 1.1.0-alpha.2 → 1.1.0-alpha.4

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.
@@ -0,0 +1,215 @@
1
+ {
2
+ "$schema": "./node_modules/oxlint/configuration_schema.json",
3
+ "plugins": [
4
+ "typescript",
5
+ "oxc"
6
+ ],
7
+ "categories": {
8
+ "correctness": "off",
9
+ "suspicious": "off",
10
+ "pedantic": "off",
11
+ "perf": "off",
12
+ "style": "off",
13
+ "restriction": "off",
14
+ "nursery": "off"
15
+ },
16
+ "ignorePatterns": [
17
+ "**/dist/**",
18
+ "**/node_modules/**",
19
+ "**/coverage/**",
20
+ "**/*.mock.ts"
21
+ ],
22
+ "rules": {
23
+ "no-var": "error",
24
+ "prefer-const": [
25
+ "error",
26
+ {
27
+ "destructuring": "any",
28
+ "ignoreReadBeforeAssign": false
29
+ }
30
+ ],
31
+ "prefer-rest-params": "warn",
32
+ "prefer-spread": "warn",
33
+ "typescript/ban-ts-comment": "error",
34
+ "typescript/no-array-constructor": "error",
35
+ "typescript/no-duplicate-enum-values": "error",
36
+ "typescript/no-empty-object-type": "error",
37
+ "typescript/no-extra-non-null-assertion": "error",
38
+ "typescript/no-misused-new": "error",
39
+ "typescript/no-namespace": "error",
40
+ "typescript/no-non-null-asserted-optional-chain": "error",
41
+ "typescript/no-this-alias": "error",
42
+ "typescript/no-unnecessary-type-constraint": "error",
43
+ "typescript/no-unsafe-declaration-merging": "error",
44
+ "typescript/no-unsafe-function-type": "error",
45
+ "typescript/no-unused-expressions": [
46
+ "error",
47
+ {
48
+ "allowShortCircuit": false,
49
+ "allowTaggedTemplates": false,
50
+ "allowTernary": false
51
+ }
52
+ ],
53
+ "typescript/no-wrapper-object-types": "error",
54
+ "typescript/prefer-as-const": "error",
55
+ "typescript/prefer-namespace-keyword": "error",
56
+ "typescript/triple-slash-reference": "error",
57
+ "constructor-super": "error",
58
+ "for-direction": "error",
59
+ "getter-return": [
60
+ "error",
61
+ {
62
+ "allowImplicit": false
63
+ }
64
+ ],
65
+ "no-async-promise-executor": "error",
66
+ "no-case-declarations": "error",
67
+ "no-class-assign": "error",
68
+ "no-compare-neg-zero": "error",
69
+ "no-cond-assign": [
70
+ "error",
71
+ "except-parens"
72
+ ],
73
+ "no-const-assign": "error",
74
+ "no-constant-binary-expression": "error",
75
+ "no-constant-condition": [
76
+ "error",
77
+ {
78
+ "checkLoops": "allExceptWhileTrue"
79
+ }
80
+ ],
81
+ "no-control-regex": "error",
82
+ "no-debugger": "error",
83
+ "no-delete-var": "error",
84
+ "no-dupe-class-members": "error",
85
+ "no-dupe-else-if": "error",
86
+ "no-dupe-keys": "error",
87
+ "no-duplicate-case": "error",
88
+ "no-empty": [
89
+ "error",
90
+ {
91
+ "allowEmptyCatch": false
92
+ }
93
+ ],
94
+ "no-empty-character-class": "error",
95
+ "no-empty-pattern": [
96
+ "error",
97
+ {
98
+ "allowObjectPatternsAsParameters": false
99
+ }
100
+ ],
101
+ "no-empty-static-block": "error",
102
+ "no-ex-assign": "error",
103
+ "no-extra-boolean-cast": [
104
+ "error",
105
+ {}
106
+ ],
107
+ "no-fallthrough": [
108
+ "error",
109
+ {
110
+ "allowEmptyCase": false,
111
+ "reportUnusedFallthroughComment": false
112
+ }
113
+ ],
114
+ "no-func-assign": "error",
115
+ "no-global-assign": [
116
+ "error",
117
+ {
118
+ "exceptions": []
119
+ }
120
+ ],
121
+ "no-import-assign": "error",
122
+ "no-invalid-regexp": [
123
+ "error",
124
+ {}
125
+ ],
126
+ "no-irregular-whitespace": [
127
+ "error",
128
+ {
129
+ "skipComments": false,
130
+ "skipJSXText": false,
131
+ "skipRegExps": false,
132
+ "skipStrings": true,
133
+ "skipTemplates": false
134
+ }
135
+ ],
136
+ "no-loss-of-precision": "error",
137
+ "no-misleading-character-class": "error",
138
+ "no-new-native-nonconstructor": "error",
139
+ "no-nonoctal-decimal-escape": "error",
140
+ "no-obj-calls": "error",
141
+ "no-prototype-builtins": "error",
142
+ "no-redeclare": [
143
+ "error",
144
+ {
145
+ "builtinGlobals": true
146
+ }
147
+ ],
148
+ "no-regex-spaces": "error",
149
+ "no-self-assign": [
150
+ "error",
151
+ {
152
+ "props": true
153
+ }
154
+ ],
155
+ "no-setter-return": "error",
156
+ "no-shadow-restricted-names": [
157
+ "error",
158
+ {
159
+ "reportGlobalThis": false
160
+ }
161
+ ],
162
+ "no-sparse-arrays": "error",
163
+ "no-this-before-super": "error",
164
+ "no-undef": "off",
165
+ "no-unreachable": "error",
166
+ "no-unsafe-finally": "error",
167
+ "no-unsafe-negation": [
168
+ "error",
169
+ {
170
+ "enforceForOrderingRelations": false
171
+ }
172
+ ],
173
+ "no-unsafe-optional-chaining": [
174
+ "error",
175
+ {
176
+ "disallowArithmeticOperators": false
177
+ }
178
+ ],
179
+ "no-unused-labels": "error",
180
+ "no-unused-private-class-members": "error",
181
+ "no-useless-backreference": "error",
182
+ "no-useless-catch": "error",
183
+ "no-useless-escape": [
184
+ "error",
185
+ {
186
+ "allowRegexCharacters": []
187
+ }
188
+ ],
189
+ "no-with": "error",
190
+ "require-yield": "error",
191
+ "typescript/no-explicit-any": "warn",
192
+ "typescript/no-require-imports": "error",
193
+ "typescript/no-unused-vars": [
194
+ "warn",
195
+ {
196
+ "varsIgnorePattern": "^_",
197
+ "argsIgnorePattern": "^_",
198
+ "destructuredArrayIgnorePattern": "^_"
199
+ }
200
+ ],
201
+ "use-isnan": [
202
+ "error",
203
+ {
204
+ "enforceForIndexOf": false,
205
+ "enforceForSwitchCase": true
206
+ }
207
+ ],
208
+ "valid-typeof": [
209
+ "error",
210
+ {
211
+ "requireStringLiterals": false
212
+ }
213
+ ]
214
+ }
215
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hublo/sentinel",
3
- "version": "1.1.0-alpha.2",
3
+ "version": "1.1.0-alpha.4",
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",
@@ -28,9 +28,6 @@
28
28
  },
29
29
  "./tsconfig/node": {
30
30
  "default": "./dist/tsconfig/node.json"
31
- },
32
- "./oxlint/nest": {
33
- "default": "./oxlint/nest.json"
34
31
  }
35
32
  },
36
33
  "files": [
@@ -40,7 +37,12 @@
40
37
  "!dist/**/*.map"
41
38
  ],
42
39
  "dependencies": {
40
+ "@nx/eslint-plugin": "23.0.1",
43
41
  "commander": "^13.0.0",
42
+ "eslint-plugin-import": "2.32.0",
43
+ "eslint-plugin-no-barrel-files": "1.2.1",
44
+ "eslint-plugin-react-refresh": "0.4.19",
45
+ "eslint-plugin-styled-components-a11y": "2.2.0",
44
46
  "jsonc-parser": "^3.3.1",
45
47
  "oxlint": "1.77.0",
46
48
  "oxlint-tsgolint": "7.0.2001"