-
Notifications
You must be signed in to change notification settings - Fork 42
/
Copy patheslint.config.js
26 lines (25 loc) · 1.02 KB
/
eslint.config.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
import playwright from 'eslint-plugin-playwright'
export default {
...playwright.configs['flat/recommended'],
rules: {
...playwright.configs['flat/recommended'].rules,
'playwright/no-commented-out-tests': 'error',
'playwright/no-duplicate-hooks': 'error',
'playwright/no-get-by-title': 'error',
'playwright/no-nth-methods': 'error',
'playwright/no-raw-locators': 'error',
'playwright/no-restricted-matchers': 'error',
'playwright/prefer-comparison-matcher': 'error',
'playwright/prefer-equality-matcher': 'error',
'playwright/prefer-hooks-in-order': 'error',
'playwright/prefer-hooks-on-top': 'error',
'playwright/prefer-lowercase-title': 'error',
'playwright/prefer-strict-equal': 'error',
'playwright/prefer-to-be': 'error',
'playwright/prefer-to-contain': 'error',
'playwright/prefer-to-have-count': 'error',
'playwright/prefer-to-have-length': 'error',
'playwright/require-to-throw-message': 'error',
'playwright/require-top-level-describe': 'error',
},
}