-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy patheslint.config.mjs
44 lines (42 loc) · 1010 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
38
39
40
41
42
43
44
// @ts-check
import eslint from '@eslint/js'
import ts from 'typescript-eslint'
import prettier from 'eslint-plugin-prettier/recommended'
import vue from 'eslint-plugin-vue'
import globals from 'globals'
export default ts.config(
eslint.configs.recommended,
...ts.configs.strict,
...ts.configs.stylistic,
{
extends: [
eslint.configs.recommended,
...ts.configs.strict,
...ts.configs.stylistic,
...vue.configs['flat/recommended'],
],
files: ['**/*.{ts,vue}'],
languageOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
globals: globals.browser,
parserOptions: {
parser: ts.parser,
},
},
rules: {
'vue/one-component-per-file': 0,
},
},
{
files: ['**/*.ts'],
rules: {
'@typescript-eslint/explicit-function-return-type': 0,
'@typescript-eslint/no-explicit-any': 0,
},
},
prettier,
{
ignores: ['**/dist', '**/node_modules', '**/shim', '**/*.vue', '**/cache'],
},
)