-
Notifications
You must be signed in to change notification settings - Fork 52
Expand file tree
/
Copy pathxo.config.js
More file actions
41 lines (40 loc) · 781 Bytes
/
xo.config.js
File metadata and controls
41 lines (40 loc) · 781 Bytes
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
import eslintPlugin from 'eslint-plugin-eslint-plugin';
export default [
{
ignores: [
'test/integration/**',
],
},
{
rules: {
'ava/no-ignored-test-files': 'off',
'import-x/extensions': 'off',
'import-x/no-anonymous-default-export': 'off',
'import-x/order': 'off',
},
},
{
files: [
'rules/*.js',
'create-ava-rule.js',
'util.js',
'index.js',
],
plugins: {
'eslint-plugin': eslintPlugin,
},
rules: {
...eslintPlugin.configs.all.rules,
'eslint-plugin/require-meta-docs-description': ['error', {
pattern: '^(Enforce|Require|Disallow|Prefer|Limit)',
}],
},
},
{
files: ['create-ava-rule.js'],
rules: {
'eslint-plugin/require-meta-docs-url': 'off',
'unicorn/no-anonymous-default-export': 'off',
},
},
];