mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-15 21:57:22 +01:00
Move test specific eslint rules to eslint task
This commit is contained in:
@@ -46,7 +46,18 @@ gulp.task('lint:tests', () => {
|
||||
'!./test/server_side/**/*',
|
||||
'!./test/spec/**/*',
|
||||
])
|
||||
.pipe(eslint())
|
||||
.pipe(eslint({
|
||||
rules: {
|
||||
'no-unused-expressions': 0,
|
||||
'mocha/no-exclusive-tests': 2,
|
||||
'mocha/no-global-tests': 2,
|
||||
'mocha/handle-done-callback': 2,
|
||||
},
|
||||
globals: {
|
||||
'expect': true,
|
||||
},
|
||||
plugins: [ 'mocha' ],
|
||||
}))
|
||||
.pipe(eslint.format())
|
||||
.pipe(eslint.failAfterError());
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user