-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.mjs
42 lines (41 loc) · 1.26 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
// @ts-check
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
// @ts-ignore no types available yet
import pluginVue from 'eslint-plugin-vue';
import withNuxt from './.nuxt/eslint.config.mjs';
export default withNuxt(
{
ignores: ['gen/', 'proto/'],
},
...pluginVue.configs['flat/recommended'],
eslintPluginPrettierRecommended,
{
rules: {
'no-console': 0,
'require-await': 0,
'no-restricted-syntax': ['error', 'IfStatement > ExpressionStatement > AssignmentExpression'],
'@typescript-eslint/no-unused-vars': [
'warn',
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
caughtErrorsIgnorePattern: '^_',
},
],
'vue/no-unused-vars': [
'warn',
{
ignorePattern: '^_',
},
],
'@typescript-eslint/unified-signatures': 'off',
'@typescript-eslint/no-unused-expressions': 'off',
},
},
{
files: ['app/pages/**', 'app/layouts/**'],
rules: {
'vue/multi-word-component-names': 'off',
},
},
);