This repository was archived by the owner on Jul 27, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +2409
-1701
lines changed
Expand file tree Collapse file tree 4 files changed +2409
-1701
lines changed Original file line number Diff line number Diff line change 11{
2- "parserOptions" : {
3- "ecmaVersion" : 8
4- },
5- "comma-dangle" : [" error" , " never" ]
2+ "parserOptions" : {
3+ "ecmaVersion" : 8
4+ },
5+ "plugins" : [" node" ],
6+ "extends" : [" eslint:recommended" , " plugin:node/recommended" ],
7+ "rules" : {
8+ "no-console" : " off" ,
9+ "no-unused-vars" : " off"
10+ }
611}
Original file line number Diff line number Diff line change 77 "node" : " >=6.0.0"
88 },
99 "scripts" : {
10- "test" : " eslint --ignore-pattern test/* && jest"
10+ "test" : " eslint --ignore-pattern ' test/*' . && jest"
1111 },
1212 "files" : [
1313 " src" ,
3737 "babel-loader" : " ^6.3.0" ,
3838 "babel-plugin-transform-async-to-generator" : " ^6.22.0" ,
3939 "babel-preset-react" : " ^6.23.0" ,
40- "eslint" : " ^3 .16.1 " ,
40+ "eslint" : " ^5 .16.0 " ,
4141 "eslint-loader" : " ^1.6.1" ,
42+ "eslint-plugin-node" : " ^9.0.0" ,
4243 "expect" : " ^1.20.2" ,
4344 "jest" : " ^18.1.0" ,
4445 "memory-fs" : " ^0.4.1" ,
Original file line number Diff line number Diff line change 66 */
77function cleanStackTrace ( message ) {
88 return message
9- . replace ( / ^ \s * a t \s .* : \d + : \d + [ \s \ )] * \n / gm, '' ) ; // at ... ...:x:y
9+ . replace ( / ^ \s * a t \s .* : \d + : \d + [ \s ) ] * \n / gm, '' ) ; // at ... ...:x:y
1010}
1111
1212function cleanMessage ( message ) {
You can’t perform that action at this time.
0 commit comments