@odg/eslint-config 3.2.5 → 3.2.7
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/package.json +1 -1
- package/rules/global/base.mjs +5 -0
package/package.json
CHANGED
package/rules/global/base.mjs
CHANGED
|
@@ -136,6 +136,11 @@ export default {
|
|
|
136
136
|
"message": "Avoid 'error instances'. Use the specific specifications of your @odg/exception"
|
|
137
137
|
+ "(Exception.isError) or structural type checking for greater security between packets.",
|
|
138
138
|
},
|
|
139
|
+
{
|
|
140
|
+
"selector": "CallExpression[callee.name='sleep']",
|
|
141
|
+
"message": "Do not use 'sleep()' with timestamps. Use async/await patterns, Promise.race"
|
|
142
|
+
+ ", timeout function or other async timing mechanisms instead.",
|
|
143
|
+
},
|
|
139
144
|
],
|
|
140
145
|
"no-magic-numbers": [
|
|
141
146
|
"warn",
|