-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
51 lines (49 loc) · 1.5 KB
/
.eslintrc.cjs
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
42
43
44
45
46
47
48
49
50
51
/* eslint-env node */
require("@rushstack/eslint-patch/modern-module-resolution");
const { defineConfig } = require("eslint-define-config");
module.exports = defineConfig({
env: {
browser: true,
es2023: true,
},
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:playwright/recommended",
"plugin:@typescript-eslint/stylistic",
"prettier",
],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: "latest",
project: "./tsconfig.json",
},
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint", "playwright"],
rules: {
"@typescript-eslint/no-unused-vars": "off",
"no-empty": "off",
"playwright/no-networkidle": "off",
"no-case-declarations": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-var-requires": "off",
"no-console": "off",
"max-len": "off",
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/consistent-generic-constructors": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/consistent-type-definitions": "off",
"playwright/missing-playwright-await": "off",
"playwright/no-nested-step": "off",
"prefer-const": "off",
"@typescript-eslint/consistent-indexed-object-style": "off",
"playwright/valid-expect": "warn",
"no-undef": "warn",
},
overrides: [
{
extends: ["plugin:@typescript-eslint/disable-type-checked"],
files: ["./**/*.js"],
},
],
});