-
Notifications
You must be signed in to change notification settings - Fork 2
/
eslint.config.js
62 lines (61 loc) · 1.97 KB
/
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
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
55
56
57
58
59
60
61
62
import antfu from '@antfu/eslint-config';
export default await antfu({
stylistic: {
semi: true,
},
markdown: false,
vue: true,
formatters: true,
ignores: [
'deployment',
'**/public',
'apps/api/src/food-index/language-backends/en/metaphone3.ts',
],
}, {
rules: {
'import/order': 'off',
'no-console': 'off',
'node/prefer-global/buffer': ['error', 'always'],
'node/prefer-global/process': ['error', 'always'],
'unused-imports/no-unused-vars': ['error', {
ignoreRestSiblings: true,
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
}],
'jsdoc/require-returns-description': 'off',
'perfectionist/sort-imports': ['error', {
groups: [
'type',
['parent-type', 'sibling-type', 'index-type'],
'builtin',
'external',
['internal', 'internal-type'],
['parent', 'sibling', 'index'],
'side-effect',
'object',
'unknown',
],
internalPattern: ['@intake24/**'],
newlinesBetween: 'ignore',
order: 'asc',
type: 'natural',
}],
'style/quote-props': ['error', 'as-needed'],
'style/member-delimiter-style': ['error', { multiline: { delimiter: 'semi' }, singleline: { delimiter: 'semi' } }],
'ts/ban-types': 'off',
'ts/consistent-type-imports': 'off',
'ts/consistent-type-definitions': 'off',
'ts/no-explicit-any': 'off',
'ts/no-use-before-define': 'warn',
'unicorn/consistent-function-scoping': 'off',
'vue/attributes-order': ['error', { alphabetical: true }],
'vue/block-order': ['error', { order: [['script', 'template'], 'style'] }],
'vue/component-name-in-template-casing': ['error', 'kebab-case'],
'vue/custom-event-name-casing': 'off',
'vue/multi-word-component-names': 'warn',
'vue/no-unused-refs': 'off', // remove with Vue 3
'vue/no-setup-props-destructure': 'warn',
'vue/require-default-prop': 'off',
'vue/valid-v-slot': ['error', { allowModifiers: true }],
},
});