forked from npmgraph/npmgraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.mjs
40 lines (38 loc) · 1.1 KB
/
eslint.config.mjs
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
import antfu from '@antfu/eslint-config';
export default antfu({
react: {
version: 'detect',
},
rules: {
'no-alert': 'off',
'no-console': 'off',
'antfu/if-newline': 'off',
'style/indent-binary-ops': 'off',
'ts/consistent-type-definitions': ['error', 'type'],
'perfectionist/sort-imports': 'off',
'perfectionist/sort-named-imports': 'off',
// Prettier conflicts
// TODO: Update after https://github.com/antfu/eslint-config/issues/615
'style/arrow-parens': 'off',
'style/brace-style': 'off',
'style/indent': 'off',
'style/jsx-one-expression-per-line': 'off',
'style/member-delimiter-style': 'off',
'style/multiline-ternary': 'off',
'style/operator-linebreak': 'off',
'style/quote-props': 'off',
'style/quotes': 'off',
'style/semi': 'off',
'style/type-generic-spacing': 'off',
'antfu/consistent-chaining': 'off',
},
typescript: {
overrides: {
// https://github.com/antfu/eslint-config/issues/570
'ts/consistent-type-imports': [
'error',
{ fixStyle: 'inline-type-imports' },
],
},
},
});