Skip to content

Commit 9246582

Browse files
committed
build: update eslint configuration for cypress
1 parent 69f91e9 commit 9246582

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

projects/mat-datatable-demo/cypress/.eslintrc.json

+9-12
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
{
22
"extends": "../.eslintrc.json",
3-
"ignorePatterns": [
4-
"!**/*"
5-
],
3+
"ignorePatterns": ["!**/*"],
64
"overrides": [
75
{
8-
"files": [
9-
"*.ts"
10-
],
6+
"files": ["*.ts"],
7+
"plugins": ["cypress"],
8+
"env": {
9+
"cypress/globals": true
10+
},
11+
"extends": ["plugin:cypress/recommended"],
1112
"parser": "@typescript-eslint/parser",
1213
"parserOptions": {
1314
"project": "projects/mat-datatable-demo/cypress/tsconfig.json",
@@ -16,16 +17,12 @@
1617
},
1718
"settings": {
1819
"import/parsers": {
19-
"@typescript-eslint/parser": [
20-
".ts"
21-
]
20+
"@typescript-eslint/parser": [".ts"]
2221
},
2322
"import/resolver": {
2423
"node": true,
2524
"typescript": {
26-
"project": [
27-
"projects/mat-datatable-demo/cypress/tsconfig.json"
28-
]
25+
"project": ["projects/mat-datatable-demo/cypress/tsconfig.json"]
2926
}
3027
}
3128
},

0 commit comments

Comments
 (0)