Skip to content

Commit b3592b6

Browse files
rchlposva
authored andcommitted
style(test): add eslint configuration for unit tests (#2518)
* style(test): add eslint configuration for unit tests * style(test): move test-specific eslint configuration to test/unit
1 parent 842a760 commit b3592b6

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

Diff for: package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"dev": "node examples/server.js",
2929
"dev:dist": "rollup -wm -c build/rollup.dev.config.js",
3030
"build": "node build/build.js",
31-
"lint": "eslint src test examples",
31+
"lint": "eslint src examples test",
3232
"test": "npm run lint && npm run flow && npm run test:unit && npm run test:e2e && npm run test:types",
3333
"flow": "flow check",
3434
"test:unit": "jasmine JASMINE_CONFIG_PATH=test/unit/jasmine.json",
@@ -70,6 +70,7 @@
7070
"es6-promise": "^4.2.8",
7171
"eslint": "^4.19.1",
7272
"eslint-plugin-flowtype": "^2.46.1",
73+
"eslint-plugin-jasmine": "^2.10.1",
7374
"eslint-plugin-vue-libs": "^2.1.0",
7475
"express": "^4.17.1",
7576
"express-urlrewrite": "^1.2.0",

Diff for: test/unit/.eslintrc

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"env": {
3+
"jasmine": true
4+
},
5+
"plugins": [
6+
"jasmine"
7+
]
8+
}

Diff for: yarn.lock

+5
Original file line numberDiff line numberDiff line change
@@ -4077,6 +4077,11 @@ eslint-plugin-html@^4.0.1:
40774077
dependencies:
40784078
htmlparser2 "^3.8.2"
40794079

4080+
eslint-plugin-jasmine@^2.10.1:
4081+
version "2.10.1"
4082+
resolved "https://registry.yarnpkg.com/eslint-plugin-jasmine/-/eslint-plugin-jasmine-2.10.1.tgz#5733b709e751f4bc40e31e1c16989bd2cdfbec97"
4083+
integrity sha1-VzO3CedR9LxA4x4cFpib0s377Jc=
4084+
40804085
eslint-plugin-vue-libs@^2.1.0:
40814086
version "2.1.0"
40824087
resolved "https://registry.yarnpkg.com/eslint-plugin-vue-libs/-/eslint-plugin-vue-libs-2.1.0.tgz#e7faf4ae11dad58553f63f907d6642e2d816dcef"

0 commit comments

Comments
 (0)