-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy patheslint.config.js
More file actions
41 lines (40 loc) · 1.13 KB
/
eslint.config.js
File metadata and controls
41 lines (40 loc) · 1.13 KB
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
// This is the main configuration file for ESLint. It is a JavaScript file that exports an ESLint configuration object.
// https://eslint.org/docs/user-guide/configuring
import pluginVue from 'eslint-plugin-vue'
import pluginCypress from 'eslint-plugin-cypress'
import js from '@eslint/js'
import globals from 'globals'
import eslintConfigPrettier from 'eslint-config-prettier'
import { defineConfig } from 'eslint/config'
export default defineConfig([
...pluginVue.configs['flat/recommended'],
js.configs.recommended,
eslintConfigPrettier,
{
files: ['tests/e2e/**/*.js'],
extends: [pluginCypress.configs.recommended],
rules: {
'cypress/no-unnecessary-waiting': 'off',
},
},
{
files: ['tests/e2e/**/*.js'],
extends: [pluginCypress.configs.globals],
},
{
ignores: ['dist/**/*.js', 'docs/**/*.js', 'documentation/**/*.js'],
},
{
languageOptions: {
ecmaVersion: 2022,
sourceType: 'module',
globals: {
...globals.node,
// e.g. it, expect, describe
...globals.vitest,
// e.g. document, alert, window
...globals.browser,
},
},
},
])