forked from homebridge/plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.js
28 lines (27 loc) · 850 Bytes
/
eslint.config.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
import antfu from '@antfu/eslint-config'
export default antfu({
rules: {
'curly': ['error'],
'import/extensions': ['error', 'ignorePackages'],
'import/order': 'off',
'jsdoc/check-alignment': 'error',
'jsdoc/check-line-alignment': 'error',
'new-cap': 'off',
'no-undef': 'error',
'perfectionist/sort-exports': 'error',
'perfectionist/sort-named-exports': 'error',
'perfectionist/sort-named-imports': 'error',
'quotes': ['error', 'single'],
'sort-imports': 'off',
'style/brace-style': ['error', '1tbs'],
'style/quote-props': ['error', 'consistent-as-needed'],
'test/no-only-tests': 'error',
'unicorn/no-useless-spread': 'error',
'unused-imports/no-unused-vars': ['error', { caughtErrors: 'none' }],
},
typescript: true,
yaml: true,
formatters: {
markdown: true,
},
})