forked from gajus/eslint-config-canonical
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ava.js
47 lines (46 loc) · 1.21 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
44
45
46
47
const ava = require('eslint-plugin-ava');
const unicorn = require('eslint-plugin-unicorn');
module.exports.recommended = {
files: ['**/*.test.{js,ts,tsx}'],
plugins: {
ava,
unicorn,
},
rules: {
'ava/assertion-arguments': 2,
'ava/hooks-order': 2,
'ava/max-asserts': [2, 5],
'ava/no-async-fn-without-await': 2,
'ava/no-duplicate-modifiers': 2,
'ava/no-identical-title': 2,
'ava/no-ignored-test-files': 2,
'ava/no-import-test-files': 0,
'ava/no-incorrect-deep-equal': 2,
'ava/no-inline-assertions': 2,
'ava/no-nested-tests': 2,
'ava/no-only-test': 2,
'ava/no-skip-assert': 2,
'ava/no-skip-test': 2,
'ava/no-todo-implementation': 2,
'ava/no-todo-test': 2,
'ava/no-unknown-modifiers': 2,
'ava/prefer-async-await': 2,
'ava/prefer-power-assert': 0,
'ava/prefer-t-regex': 2,
'ava/test-title': 2,
'ava/test-title-format': 0,
'ava/use-t': 2,
'ava/use-t-throws-async-well': 2,
'ava/use-t-well': 2,
'ava/use-test': 2,
'ava/use-true-false': 2,
'id-length': [
2,
{
exceptions: ['_', '$', 'a', 'b', 'x', 'y', 't'],
min: 2,
},
],
'unicorn/consistent-function-scoping': 0,
},
};