Skip to content

Commit

Permalink
chore: update eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
christophehurpeau committed May 3, 2019
1 parent a851028 commit 3ac9b8f
Show file tree
Hide file tree
Showing 4 changed files with 2,409 additions and 1,701 deletions.
13 changes: 9 additions & 4 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
{
"parserOptions": {
"ecmaVersion": 8
},
"comma-dangle": ["error", "never"]
"parserOptions": {
"ecmaVersion": 8
},
"plugins": ["node"],
"extends": ["eslint:recommended", "plugin:node/recommended"],
"rules": {
"no-console": "off",
"no-unused-vars": "off"
}
}
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"node": ">=6.0.0"
},
"scripts": {
"test": "eslint --ignore-pattern test/* && jest"
"test": "eslint --ignore-pattern 'test/*' . && jest"
},
"files": [
"src",
Expand Down Expand Up @@ -37,8 +37,9 @@
"babel-loader": "^6.3.0",
"babel-plugin-transform-async-to-generator": "^6.22.0",
"babel-preset-react": "^6.23.0",
"eslint": "^3.16.1",
"eslint": "^5.16.0",
"eslint-loader": "^1.6.1",
"eslint-plugin-node": "^9.0.0",
"expect": "^1.20.2",
"jest": "^18.1.0",
"memory-fs": "^0.4.1",
Expand Down
2 changes: 1 addition & 1 deletion src/transformers/babelSyntax.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/
function cleanStackTrace(message) {
return message
.replace(/^\s*at\s.*:\d+:\d+[\s\)]*\n/gm, ''); // at ... ...:x:y
.replace(/^\s*at\s.*:\d+:\d+[\s)]*\n/gm, ''); // at ... ...:x:y
}

function cleanMessage(message) {
Expand Down
Loading

0 comments on commit 3ac9b8f

Please sign in to comment.