-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathxo.config.js
More file actions
25 lines (25 loc) · 905 Bytes
/
xo.config.js
File metadata and controls
25 lines (25 loc) · 905 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
export default {
space: 2,
semicolon: true,
prettier: false,
rules: {
'unicorn/prevent-abbreviations': 'off',
'import/extensions': 'off',
'@stylistic/comma-dangle': ['error', 'never'],
'@stylistic/indent-binary-ops': ['error', 2],
'@stylistic/object-curly-spacing': ['error', 'always'],
'@stylistic/object-curly-newline': ['error', {
ObjectExpression: { multiline: true, consistent: true },
ObjectPattern: { multiline: true, consistent: true },
ImportDeclaration: { multiline: true, consistent: true }
}],
'@stylistic/function-paren-newline': 'off',
'unicorn/no-process-exit': 'off',
'unicorn/import-style': 'off',
'no-return-await': 'off',
'unicorn/catch-error-name': ['error', { name: 'err' }],
'unicorn/no-array-for-each': 'off',
'unicorn/no-array-reduce': 'off',
'unicorn/no-array-callback-reference': 'off'
}
};