-
Notifications
You must be signed in to change notification settings - Fork 88
/
eslint.config.mjs
48 lines (41 loc) · 1007 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
45
46
47
48
import globals from 'globals'
import js from '@eslint/js'
import pluginTs from 'typescript-eslint'
import pluginVue from 'eslint-plugin-vue'
import configPrettier from 'eslint-config-prettier'
export default [
js.configs.recommended,
...pluginTs.configs.recommended,
...pluginVue.configs['flat/recommended'],
configPrettier,
{
languageOptions: {
globals: {
...globals.browser,
},
ecmaVersion: 2024,
parserOptions: {
ecmaFeatures: { jsx: true },
},
},
rules: {
'arrow-body-style': ['error', 'as-needed'],
'prefer-arrow-callback': ['error', { allowNamedFunctions: true }],
},
},
{
files: ['service/**/*.js', '.prettierrc.js', '.stylelintrc.js', 'babel.config.js'],
languageOptions: {
globals: {
...globals.node,
},
},
rules: {
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/no-require-imports': 'off',
},
},
{
ignores: ['dist'],
},
]