-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy patheslint.config.mjs
56 lines (54 loc) · 1.25 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// @ts-check
import globals from 'globals';
import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';
import pluginVue from 'eslint-plugin-vue';
import pluginImport from 'eslint-plugin-import';
import vueParser from 'vue-eslint-parser';
export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
...pluginVue.configs['flat/essential'],
pluginImport.flatConfigs.recommended,
{
languageOptions: {
ecmaVersion: 2022,
sourceType: "module",
globals: {
...globals.es2021,
...globals.webextensions,
...globals.browser,
...globals.node,
HTMLElementEventMap: false,
IntersectionObserverInit: false
},
parser: vueParser,
parserOptions: { "parser": "@typescript-eslint/parser" }
},
rules: {
"import/extensions": [
"error",
"always"
],
"linebreak-style": [
"error",
"unix"
],
quotes: [
"error",
"single"
],
semi: [
"error",
"always"
],
"@typescript-eslint/explicit-module-boundary-types": "off",
"no-console": "off"
},
ignores: [
"node_modules",
"packages",
"dist"
]
}
);