forked from Alfred-Skyblue/vue-draggable-plus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
49 lines (48 loc) · 1.2 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
47
48
49
// @ts-check
const { defineConfig } = require('eslint-define-config')
module.exports = defineConfig({
root: true,
env: {
node: true,
es2021: true
},
extends: [
'eslint:recommended',
'plugin:node/recommended',
'plugin:@typescript-eslint/recommended',
'plugin:vue/base'
],
plugins: ['import'],
parser: 'vue-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser',
sourceType: 'module',
ecmaVersion: 2021
},
overrides:[
{
files: ['*.ts'],
rules: {
'no-console': ['error', { allow: ['warn', 'error'] }],
}
}
],
rules: {
'no-debugger': ['error'],
'node/no-unpublished-require': 0,
'node/no-extraneous-import': 0,
'node/no-extraneous-require': 0,
'node/no-missing-import': 0,
'node/no-missing-require': 0,
'no-undef': 0,
'node/no-unpublished-import': 0,
'node/no-unsupported-features/es-syntax': 0,
'no-process-exit': 0,
'@typescript-eslint/ban-ts-comment': 0,
'no-constant-condition': 0,
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/no-var-requires': 0,
'@typescript-eslint/no-extra-semi': 0,
'@typescript-eslint/no-non-null-assertion': 0
}
})