Skip to content

Commit 934baed

Browse files
committed
allow async/await in tests
1 parent ef47cf0 commit 934baed

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.eslintrc

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,5 +152,19 @@
152152
// space-unary-ops: 2, // require or disallow spaces before/after unary operators (fixable)
153153
// spaced-comment: [2, "always", { markers: ["-", "*", "/", "{", "}", "#"], exceptions: ["}"] }]
154154

155-
}
155+
},
156+
157+
// Overrides for specific files/directories
158+
overrides: [
159+
{
160+
files: ['src/**/*_test.js'], // allow async/await in tests
161+
parserOptions: {
162+
ecmaVersion: 2022,
163+
},
164+
env: {
165+
},
166+
rules: {
167+
},
168+
}
169+
]
156170
}

0 commit comments

Comments
 (0)