Skip to content

Commit 9618a04

Browse files
authored
eslint: separate test config from root config (#8817)
1 parent 24e6400 commit 9618a04

File tree

2 files changed

+19
-10
lines changed

2 files changed

+19
-10
lines changed

.eslintrc.json

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,19 @@
99

1010
"env": {
1111
"browser": true,
12-
"node": true,
13-
"mocha": true
12+
"node": true
1413
},
1514

1615
"globals": {
1716
"Map": true,
1817
"Set": true,
1918
"Symbol": true,
20-
"chrome": true,
2119
"Promise": true,
2220
"Uint8Array": true,
2321
"ArrayBuffer": true,
2422
"FileReaderSync": true,
25-
"sqlitePlugin": true,
2623
"emit": true,
27-
"PouchDB": true,
28-
"should": true,
29-
"assert": true,
30-
"testUtils": true,
31-
"importScripts": true,
32-
"testCases": true
24+
"PouchDB": true
3325
},
3426

3527
"rules": {

tests/.eslintrc.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"extends": "../.eslintrc.json",
3+
"env": {
4+
"mocha": true
5+
},
6+
7+
"globals": {
8+
"chrome": "readonly",
9+
"sqlitePlugin": "readonly",
10+
"PouchDB": "readonly",
11+
"should": "readonly",
12+
"assert": "readonly",
13+
"testUtils": "readonly",
14+
"importScripts": "readonly",
15+
"testCases": "readonly"
16+
}
17+
}

0 commit comments

Comments
 (0)