-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
33 lines (33 loc) · 1.01 KB
/
.eslintrc.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
29
30
31
32
33
module.exports = {
root: true,
// This tells ESLint to load the config from the package `@antfu/eslint-config`
extends: ['@antfu'],
rules: {
// curly braces in object
'curly': ['error', 'multi-line', 'consistent'],
// [import/order](https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/order.md)
'import/order': ['error',
{
'groups': ['builtin', 'external', ['internal', 'parent', 'sibling', 'index'], 'object', 'type'],
'pathGroups': [
{
pattern: '@/**',
group: 'external',
position: 'after',
},
],
'pathGroupsExcludedImportTypes': ['builtin'],
'newlines-between': 'always',
'alphabetize': {
order: 'asc',
caseInsensitive: false,
},
'warnOnUnassignedImports': true,
},
],
/* others rules */
'no-console': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/prefer-ts-expect-error': 'off',
},
}