-
Notifications
You must be signed in to change notification settings - Fork 13
/
.eslintrc.js
31 lines (31 loc) · 914 Bytes
/
.eslintrc.js
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
module.exports = {
env: {
browser: true,
es2021: true,
node: true,
'cypress/globals': true,
},
parser: 'vue-eslint-parser',
parserOptions: {
ecmaVersion: 2020,
},
plugins: ['vue', 'cypress'],
extends: ['eslint:recommended', 'plugin:vue/vue3-essential'],
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'vue/script-indent': 'off',
'vue/html-indent': 'off',
'vue/no-unused-vars': 'error',
'vue/require-default-prop': 'off',
indent: 'off',
semi: [2, 'never'],
quotes: [2, 'single'],
'cypress/no-assigning-return-values': 'error',
'cypress/no-unnecessary-waiting': 'error',
'cypress/assertion-before-screenshot': 'warn',
'cypress/no-force': 'warn',
'cypress/no-async-tests': 'error',
'cypress/no-pause': 'error',
},
}