Skip to content

Commit

Permalink
style(test): add eslint configuration for unit tests (#2518)
Browse files Browse the repository at this point in the history
* style(test): add eslint configuration for unit tests

* style(test): move test-specific eslint configuration to test/unit
  • Loading branch information
rchl authored and posva committed Aug 23, 2019
1 parent 842a760 commit b3592b6
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"dev": "node examples/server.js",
"dev:dist": "rollup -wm -c build/rollup.dev.config.js",
"build": "node build/build.js",
"lint": "eslint src test examples",
"lint": "eslint src examples test",
"test": "npm run lint && npm run flow && npm run test:unit && npm run test:e2e && npm run test:types",
"flow": "flow check",
"test:unit": "jasmine JASMINE_CONFIG_PATH=test/unit/jasmine.json",
Expand Down Expand Up @@ -70,6 +70,7 @@
"es6-promise": "^4.2.8",
"eslint": "^4.19.1",
"eslint-plugin-flowtype": "^2.46.1",
"eslint-plugin-jasmine": "^2.10.1",
"eslint-plugin-vue-libs": "^2.1.0",
"express": "^4.17.1",
"express-urlrewrite": "^1.2.0",
Expand Down
8 changes: 8 additions & 0 deletions test/unit/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"env": {
"jasmine": true
},
"plugins": [
"jasmine"
]
}
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4077,6 +4077,11 @@ eslint-plugin-html@^4.0.1:
dependencies:
htmlparser2 "^3.8.2"

eslint-plugin-jasmine@^2.10.1:
version "2.10.1"
resolved "https://registry.yarnpkg.com/eslint-plugin-jasmine/-/eslint-plugin-jasmine-2.10.1.tgz#5733b709e751f4bc40e31e1c16989bd2cdfbec97"
integrity sha1-VzO3CedR9LxA4x4cFpib0s377Jc=

eslint-plugin-vue-libs@^2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/eslint-plugin-vue-libs/-/eslint-plugin-vue-libs-2.1.0.tgz#e7faf4ae11dad58553f63f907d6642e2d816dcef"
Expand Down

0 comments on commit b3592b6

Please sign in to comment.