Skip to content

Commit

Permalink
fix(lint): add jest support
Browse files Browse the repository at this point in the history
  • Loading branch information
Walker Leite committed Jun 29, 2018
1 parent e7d62ee commit bc62f54
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
12 changes: 5 additions & 7 deletions template/.eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,17 @@
"parser": "babel-eslint"
},
"env": {
"browser": true
"browser": true,
"jest/globals": true
},
"extends": [
"plugin:vue/recommended",
"airbnb-base",
"loopback"
],
"plugins": [
"vue"
"vue",
"jest"
],
"rules": {
"import/no-unresolved": "off",
Expand All @@ -35,10 +37,6 @@
"one-var-declaration-per-line": "off"
},
"globals": {
"expect": true,
"assert": true,
"require": true,
"request": true,
"jest": true
"require": true
}
}
1 change: 1 addition & 0 deletions template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
"eslint-plugin-import": "^2.9.0",
"eslint-config-loopback": "^8.0.0",
"eslint-plugin-vue": "^4.0.0",
"eslint-plugin-jest": "^21.17.0",
"gulp": "^3.9.1",
"gulp-autoprefixer": "^4.0.0",
"gulp-babel": "^6.1.2",
Expand Down

0 comments on commit bc62f54

Please sign in to comment.