Skip to content

Commit 7503b17

Browse files
committed
Updated mocha, apply eslint to test code
1 parent 1d60d75 commit 7503b17

10 files changed

Lines changed: 748 additions & 495 deletions

eslint.config.mjs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ const commonRules = {
7474
'parameters': 2
7575
},
7676
'ignoredNodes': ['ConditionalExpression'],
77-
'ArrayExpression': 1
77+
'ArrayExpression': 1,
78+
'MemberExpression': 'off'
7879
}
7980
],
8081
'@stylistic/js/max-len': ['warn', 100],
@@ -126,7 +127,7 @@ export default defineConfig([
126127
rules: commonRules
127128
},
128129
{
129-
files: ['test/*.js'],
130+
files: ['test/*.js', 'test/unit/*.js', 'test/unit/builders/*.js'],
130131
plugins: {
131132
'js': js,
132133
'@stylistic/js': stylisticJs,
@@ -158,6 +159,7 @@ export default defineConfig([
158159
// TODO: Disable this because it causes an error:
159160
// TypeError: Cannot read properties of undefined (reading '0')
160161
'mocha/consistent-spacing-between-blocks': 'off',
162+
'mocha/no-exports': 'off',
161163
'mocha/no-hooks': 'off',
162164
'mocha/no-hooks-for-single-case': 'off',
163165
'mocha/no-setup-in-describe': 'off',

0 commit comments

Comments
 (0)