@@ -73,6 +73,7 @@ module.exports = {
7373 'EsmLoader' ,
7474 'Exception' ,
7575 'ExceptionJSON' ,
76+ 'Mocha' ,
7677 'NodeJS' ,
7778 'PackageResolverOptions' ,
7879 'PackageResolverPath' ,
@@ -122,7 +123,8 @@ module.exports = {
122123 skipWordIfMatch : [ ] ,
123124 skipWords : [
124125 'argv' ,
125- 'basedir' ,
126+ 'bdd' ,
127+ 'chai' ,
126128 'cjs' ,
127129 'commitlint' ,
128130 'commonjs' ,
@@ -136,15 +138,17 @@ module.exports = {
136138 'formatter' ,
137139 'loadenv' ,
138140 'mjs' ,
141+ 'mocharc' ,
139142 'msg' ,
140143 'mts' ,
144+ 'namespace' ,
141145 'ncc' ,
142146 'perf' ,
143- 'pkgfile' ,
144147 'pnv' ,
145148 'postinstall' ,
146149 'prepack' ,
147150 'prog' ,
151+ 'redeclare' ,
148152 'stringified' ,
149153 'tgz' ,
150154 'tsc' ,
@@ -266,16 +270,52 @@ module.exports = {
266270 {
267271 files : [ '**/*.spec.ts' ] ,
268272 env : {
269- jest : true
273+ mocha : true
270274 } ,
271- extends : [ 'plugin:jest/recommended' ] ,
272275 globals : {
273- 'jest/globals' : true
276+ after : true ,
277+ afterEach : true ,
278+ before : true ,
279+ beforeEach : true ,
280+ describe : true ,
281+ expect : true ,
282+ it : true ,
283+ pf : true
274284 } ,
285+ plugins : [ 'chai-expect' , 'mocha' ] ,
275286 rules : {
276- 'jest/no-disabled-tests' : 0 ,
277- 'jest/valid-title' : 0 ,
278- 'tree-shaking/no-side-effects-in-initialization' : 0
287+ '@typescript-eslint/ban-ts-comment' : 0 ,
288+ 'chai-expect/missing-assertion' : 2 ,
289+ 'chai-expect/no-inner-compare' : 2 ,
290+ 'chai-expect/no-inner-literal' : 2 ,
291+ 'chai-expect/terminating-properties' : [ 2 , { properties : [ ] } ] ,
292+ 'mocha/handle-done-callback' : [ 2 , { ignoreSkipped : false } ] ,
293+ 'mocha/max-top-level-suites' : [ 2 , { limit : 1 } ] ,
294+ 'mocha/no-async-describe' : 2 ,
295+ 'mocha/no-exclusive-tests' : 2 ,
296+ 'mocha/no-exports' : 2 ,
297+ 'mocha/no-global-tests' : 2 ,
298+ 'mocha/no-hooks' : 0 ,
299+ 'mocha/no-hooks-for-single-case' : 0 ,
300+ 'mocha/no-identical-title' : 2 ,
301+ 'mocha/no-mocha-arrows' : 0 ,
302+ 'mocha/no-nested-tests' : 2 ,
303+ 'mocha/no-pending-tests' : 2 ,
304+ 'mocha/no-return-and-callback' : 2 ,
305+ 'mocha/no-return-from-async' : 2 ,
306+ 'mocha/no-setup-in-describe' : 0 ,
307+ 'mocha/no-sibling-hooks' : 2 ,
308+ 'mocha/no-skipped-tests' : 0 ,
309+ 'mocha/no-synchronous-tests' : [ 0 , { allowed : [ 'async' ] } ] ,
310+ 'mocha/no-top-level-hooks' : 2 ,
311+ 'mocha/prefer-arrow-callback' : 2 ,
312+ 'mocha/valid-suite-description' : [ 2 , { pattern : '^[.#@a-z0-9].+' } ] ,
313+ 'prefer-arrow-callback' : 0 ,
314+ 'mocha/valid-test-description' : [ 2 , { pattern : '^should.[a-z0-9]+.*' } ] ,
315+ 'tree-shaking/no-side-effects-in-initialization' : 0 ,
316+ 'unicorn/consistent-function-scoping' : 0 ,
317+ 'unicorn/no-array-for-each' : 0 ,
318+ 'unicorn/no-useless-undefined' : 0
279319 }
280320 } ,
281321 {
0 commit comments