forked from clerk/javascript
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
30 lines (29 loc) · 932 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
// TODO: All rules below should be set to their defaults
// when we're able to make the appropriate changes.
const disabledRules = {
'playwright/expect-expect': 'off',
'playwright/no-skipped-test': 'off',
'playwright/no-page-pause': 'warn',
};
module.exports = {
root: true,
ignorePatterns: ['!.*.js', '*.snap', 'templates/**'],
extends: ['custom/node', 'custom/typescript', 'custom/playwright'],
rules: {
...disabledRules,
},
overrides: [
{
files: ['./models/deployment.ts', './testUtils/emailService.ts'],
rules: {
'@typescript-eslint/no-unnecessary-type-assertion': 'warn', // TODO: Remove when we able to update tests
},
},
{
files: ['./testUtils/testAgainstRunningApps.ts', './presets/longRunningApps.ts'],
rules: {
'@typescript-eslint/no-redundant-type-constituents': 'warn', // TODO: Remove when we able to update tests
},
},
],
};