forked from ViewTube/viewtube
-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.mjs
40 lines (39 loc) · 955 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
// @ts-check
import cypress from 'eslint-plugin-cypress';
import withNuxt from './client/.nuxt/eslint.config.mjs';
export default withNuxt([
{
rules: {
'@typescript-eslint/no-explicit-any': 'warn',
'@typescript-eslint/no-extraneous-class': 'off',
'@typescript-eslint/no-empty-object-type': 'off',
'@typescript-eslint/no-unused-expressions': 'off',
'@typescript-eslint/no-unused-vars': [
'warn',
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
caughtErrorsIgnorePattern: '^_'
}
],
'vue/multi-word-component-names': 'off',
'vue/html-self-closing': 'off'
}
},
{
files: ['server/**/*'],
rules: {
'@typescript-eslint/consistent-type-imports': 'off'
}
},
{
files: ['tests/**/*'],
// @ts-ignore
plugins: { cypress },
languageOptions: {
globals: {
Cypress: 'readonly'
}
}
}
]);