-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.js
83 lines (81 loc) · 2.91 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
import pluginJs from '@eslint/js';
import html from '@html-eslint/eslint-plugin';
// import htmlParser from '@html-eslint/parser';
import eslintConfigPrettier from 'eslint-config-prettier';
//import eslintImport from 'eslint-plugin-import';
import eslintPluginPrettier from 'eslint-plugin-prettier';
import pluginVue from 'eslint-plugin-vue';
import globals from 'globals';
const globalsLocal = {};
export default [
pluginJs.configs.recommended,
{
...html.configs['flat/essential'],
...pluginVue.configs['flat/essential'],
plugins: {
//import: eslintImport,
prettier: eslintPluginPrettier,
'@html-eslint': html,
vue: pluginVue,
},
files: ['src/**/*.js', 'versaCompileJS/**/*.js'],
ignores: [
'assets/**/*.js',
'node_modules/**/*.js',
'src/jscontrollers/devDeclaraciones.js',
],
languageOptions: {
ecmaVersion: 2020,
globals: {
...globals.browser,
...globals.node,
...globalsLocal,
},
// parser: htmlParser,
sourceType: 'module',
parserOptions: {
sourceType: 'module',
},
},
rules: {
'vue/no-deprecated-data-object-declaration': 'error',
'vue/no-computed-properties-in-data': 'error',
'vue/no-deprecated-destroyed-lifecycle': 'error',
'vue/no-deprecated-dollar-listeners-api': 'error',
'vue/v-on-function-call': 'error',
'vue/no-setup-props-destructure': 'error',
'vue/prefer-template': 'error',
'vue/no-deprecated-filter': 'error',
'@html-eslint/sort-attrs': 'error',
'@html-eslint/no-duplicate-attrs': 'error',
'@html-eslint/no-duplicate-id': 'error',
'@html-eslint/no-obsolete-tags': 'error',
'@html-eslint/element-newline': 'error',
'@html-eslint/no-multiple-empty-lines': 'error',
'@html-eslint/quotes': 'error',
'prefer-template': 'warn',
eqeqeq: 'off',
semi: 'warn',
'prefer-const': 'error',
'no-use-before-define': 'warn',
'no-unused-vars': 'warn',
'no-unused-expressions': 'error',
'no-undef': 'error',
'arrow-body-style': 'warn',
'no-alert': 'warn',
strict: 'warn',
'getter-return': 'warn',
'no-irregular-whitespace': 'warn',
'vue/no-unused-vars': 'error',
// 'import/no-named-default': 'error',
camelcase: 'off',
'sort-keys': 'off',
'no-magic-numbers': 'off',
'max-lines-per-function': 'off',
'max-statements': 'off',
'one-var': 'off',
'new-cap': 'off',
},
},
eslintConfigPrettier,
];