-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.cjs
46 lines (46 loc) · 1.51 KB
/
.eslintrc.cjs
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
module.exports = {
root: true,
env: {
browser: true,
node: true,
},
extends: '@antfu',
rules: {
'no-console': 'off',
'antfu/if-newline': 'off',
'antfu/top-level-function': 'off',
'top-level-function': 'off',
'vue/no-deprecated-functional-template': 'off',
'vue/one-component-per-file': 'off',
'vue/no-template-shadow': 'off',
'vue/require-prop-types': 'off',
'no-restricted-imports': ['error', { paths: ['..', '../..'] }],
'prefer-rest-params': 'off',
'node/no-callback-literal': 'off',
'import/namespace': 'off',
'import/default': 'off',
'import/no-named-as-default': 'off',
'import/no-named-as-default-member': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
},
overrides: [
{
files: ['**/*.md', '**/*.md/*.*', 'demo.vue', 'demo.client.vue', '*.test.ts', 'utils.ts'],
rules: {
'no-alert': 'off',
'no-console': 'off',
'no-undef': 'off',
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'prefer-rest-params': 'off',
'@typescript-eslint/no-redeclare': 'off',
'@typescript-eslint/no-invalid-this': 'off',
'unused-imports/no-unused-vars': 'off',
'@typescript-eslint/no-this-alias': ['error', { allowedNames: ['self', 'instance'] },
],
},
},
{ files: ['docs/.vitepress/**/*.*'], rules: { 'no-restricted-imports': 'off' } },
{ files: ['docs/.vitepress/theme/plugins/**/*.*'], rules: { 'prefer-rest-params': 'off' } },
],
}