Skip to content
This repository was archived by the owner on Jul 27, 2021. It is now read-only.

Commit 3ac9b8f

Browse files
chore: update eslint
1 parent a851028 commit 3ac9b8f

File tree

4 files changed

+2409
-1701
lines changed

4 files changed

+2409
-1701
lines changed

.eslintrc.json

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
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
}

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
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",
@@ -37,8 +37,9 @@
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",

src/transformers/babelSyntax.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*/
77
function cleanStackTrace(message) {
88
return message
9-
.replace(/^\s*at\s.*:\d+:\d+[\s\)]*\n/gm, ''); // at ... ...:x:y
9+
.replace(/^\s*at\s.*:\d+:\d+[\s)]*\n/gm, ''); // at ... ...:x:y
1010
}
1111

1212
function cleanMessage(message) {

0 commit comments

Comments
 (0)