-
Notifications
You must be signed in to change notification settings - Fork 0
/
ava.js
43 lines (42 loc) · 1.28 KB
/
ava.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
'use strict';
/**
* eslint-plugin-ava
*
* @see https://github.com/avajs/eslint-plugin-ava
*/
module.exports = {
plugins: ['ava'],
rules: {
'ava/assertion-arguments': 'error',
'ava/hooks-order': 'error',
'ava/max-asserts': 'off',
'ava/no-async-fn-without-await': 'off', // use `require-await`
'ava/no-cb-test': 'off',
'ava/no-duplicate-modifiers': 'error',
'ava/no-identical-title': 'error',
'ava/no-ignored-test-files': 'error',
'ava/no-import-test-files': 'error',
'ava/no-incorrect-deep-equal': 'error',
'ava/no-inline-assertions': 'error',
'ava/no-invalid-end': 'error',
'ava/no-nested-tests': 'error',
'ava/no-only-test': 'warn',
'ava/no-skip-assert': 'warn',
'ava/no-skip-test': 'warn',
'ava/no-statement-after-end': 'error',
'ava/no-todo-implementation': 'error',
'ava/no-todo-test': 'warn',
'ava/no-unknown-modifiers': 'error',
'ava/prefer-async-await': 'error',
'ava/prefer-power-assert': 'off',
'ava/prefer-t-regex': 'error',
'ava/test-ended': 'error',
'ava/test-title': 'error',
'ava/test-title-format': 'off',
'ava/use-t': 'error',
'ava/use-t-throws-async-well': 'error',
'ava/use-t-well': 'error',
'ava/use-test': 'error',
'ava/use-true-false': 'error',
},
};