-
-
Notifications
You must be signed in to change notification settings - Fork 883
Expand file tree
/
Copy pathxo.config.ts
More file actions
54 lines (52 loc) · 1.61 KB
/
xo.config.ts
File metadata and controls
54 lines (52 loc) · 1.61 KB
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
48
49
50
51
52
53
54
import {type FlatXoConfig} from 'xo';
const xoConfig: FlatXoConfig = [
{
ignores: ['src/parse-keypress.ts'],
},
{
react: true,
prettier: true,
semicolon: true,
rules: {
'react/no-unescaped-entities': 'off',
'unicorn/import-index': 'off',
'import-x/no-useless-path-segments': 'off',
complexity: 'off',
},
},
{
files: ['src/**/*.{ts,tsx}', 'test/**/*.{ts,tsx}'],
rules: {
'no-unused-expressions': 'off',
camelcase: ['error', {allow: ['^unstable__', '^internal_']}],
'unicorn/filename-case': 'off',
'react/default-props-match-prop-types': 'off',
'unicorn/prevent-abbreviations': 'off',
'react/require-default-props': 'off',
'react/jsx-curly-brace-presence': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/promise-function-async': 'warn',
'@typescript-eslint/explicit-function-return': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'dot-notation': 'off',
'react/boolean-prop-naming': 'off',
'unicorn/prefer-dom-node-remove': 'off',
'unicorn/prefer-event-target': 'off',
'unicorn/consistent-existence-index-check': 'off',
'unicorn/prefer-string-raw': 'off',
'promise/prefer-await-to-then': 'off',
},
},
{
files: ['examples/**/*.{ts,tsx}', 'benchmark/**/*.{ts,tsx}'],
rules: {
'import-x/no-unassigned-import': 'off',
'@typescript-eslint/no-unsafe-call': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-unsafe-return': 'off',
'@typescript-eslint/no-unsafe-argument': 'off',
'@typescript-eslint/restrict-plus-operands': 'off',
},
},
];
export default xoConfig;