-
Notifications
You must be signed in to change notification settings - Fork 32
/
eslint.config.mjs
37 lines (36 loc) · 1009 Bytes
/
eslint.config.mjs
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
import js from '@eslint/js';
import globals from 'globals';
import pluginVue from 'eslint-plugin-vue'
export default [
js.configs.recommended,
...pluginVue.configs['flat/vue2-recommended'], // as long as we use Vue2
{
languageOptions: {
ecmaVersion: 2022,
sourceType: "module",
globals: {
...globals.browser,
...globals.node,
...globals.jquery,
...globals.jest,
...globals.es2020,
"Vue": true,
"I18n": true,
"jest/globals": true,
"GobiertoAdmin": true,
"User": true,
"GobiertoPeople": true,
"GobiertoBudgets": true,
"GobiertoIndicators": true,
}
},
"rules": {
"no-multiple-empty-lines": ["error", { "max": 2, "maxEOF": 1 }],
"no-multi-spaces": "error",
"keyword-spacing": ["error", { "after": true, "before": true }],
"no-trailing-spaces": "error",
"object-curly-spacing": ["error", "always"],
"no-console": "off"
}
}
]