forked from formkit/formkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
59 lines (59 loc) · 1.33 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
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
module.exports = {
parser: '@typescript-eslint/parser',
plugins: [
'@typescript-eslint/eslint-plugin',
'eslint-plugin-tsdoc',
'eslint-plugin-html',
],
extends: ['plugin:@typescript-eslint/recommended'],
parserOptions: {
sourceType: 'module',
},
rules: {
'@typescript-eslint/no-extra-semi': 0,
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/no-unused-vars': ['error', { varsIgnorePattern: '^_' }],
'tsdoc/syntax': 'warn',
},
ignorePatterns: ['dist.*'],
overrides: [
{
files: '*.mjs',
parser: 'espree',
env: {
node: true,
es6: true,
},
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
},
plugins: [],
extends: 'eslint:recommended',
rules: {
'tsdoc/syntax': 0,
},
},
{
files: '**/__tests__/**.ts',
rules: {
'@typescript-eslint/no-empty-function': 0,
'@typescript-eslint/no-non-null-assertion': 0,
},
},
{
files: '*.vue',
extends: [
'plugin:vue/vue3-recommended',
'eslint:recommended',
'@vue/typescript/recommended',
],
globals: {
defineProps: 'readonly',
defineEmits: 'readonly',
defineExpose: 'readonly',
withDefaults: 'readonly',
},
},
],
}