File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ module.exports = {
5
5
sourceType : 'module'
6
6
} ,
7
7
env : {
8
+ mocha : process . env . NODE_ENV !== 'production' ,
8
9
browser : true ,
9
10
node : true
10
11
} ,
@@ -18,7 +19,8 @@ module.exports = {
18
19
__static : true
19
20
} ,
20
21
plugins : [
21
- 'html'
22
+ 'html' ,
23
+ 'chai-friendly'
22
24
] ,
23
25
'rules' : {
24
26
{ { #if_eq eslintConfig 'standard' } }
@@ -38,5 +40,14 @@ module.exports = {
38
40
{ { / if_eq} }
39
41
// allow debugger during development
40
42
'no-debugger' : process . env . NODE_ENV === 'production' ? 2 : 0
41
- }
43
+ } ,
44
+ overrides : [
45
+ {
46
+ "files" : [ "*-test.js" , "*.spec.js" ] ,
47
+ "rules" : {
48
+ "no-unused-expressions" : "off" ,
49
+ 'chai-friendly/no-unused-expressions' : 'off' ,
50
+ }
51
+ }
52
+ ]
42
53
}
Original file line number Diff line number Diff line change 108
108
"eslint" : " ^4.4.1" ,
109
109
"eslint-friendly-formatter" : " ^3.0.0" ,
110
110
"eslint-loader" : " ^1.9.0" ,
111
+ "eslint-plugin-chai-friendly" : " ^0.4.1" ,
111
112
"eslint-plugin-html" : " ^3.1.1" ,
112
113
{{#if_eq eslintConfig 'standard' }}
113
114
"eslint-config-standard" : " ^10.2.1" ,
You can’t perform that action at this time.
0 commit comments