chore(lint): Add chai globals to eslint config

- It will prevent ignore 'no-undef' errors for expect. We are globally registered the expect.
This commit is contained in:
Mert Şişmanoğlu committed 2024-12-29 14:41:42 +03:00
1 parent fcda60fe5b
commit b9863e5eee
1 file changed
+1
+1
View File
@@ -14,6 +14,7 @@ export default [
languageOptions: { languageOptions: {
globals: { globals: {
...globals.node, // Add Node.js globals ...globals.node, // Add Node.js globals
...globals.chai, // Add Chai globals
}, },
ecmaVersion: 2023, ecmaVersion: 2023,
sourceType: "module", sourceType: "module",