-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.mjs
41 lines (40 loc) · 963 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
import globals from 'globals';
import pluginJs from '@eslint/js';
import playwright from 'eslint-plugin-playwright';
import eslintConfigPrettier from 'eslint-config-prettier';
/** @type {import('eslint').Linter.Config[]} */
export default [
{
ignores: [
'**/node_modules/*',
'playwright.config.js',
'**/playwright-report/**',
],
},
{ languageOptions: { globals: globals.node } },
eslintConfigPrettier,
{
...pluginJs.configs.recommended,
...playwright.configs['flat/recommended'],
rules: {
...pluginJs.configs.recommended.rules,
'no-unused-vars': 'error',
'max-len': [
'error',
{
code: 80,
comments: 80,
ignorePattern: 'import *',
},
],
...playwright.configs['flat/recommended'].rules,
'playwright/expect-expect': 'off',
},
},
{
rules: {
'no-unused-vars': 'off',
},
files: ['**/*.spec.js'],
},
];