summaryrefslogtreecommitdiffstats
path: root/package.json
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2021-03-17 08:19:11 +0100
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2021-03-17 13:03:38 +0100
commitfb183b457c2befbc3ab04b0cb070aa1e300443c6 (patch)
treebc440046f2484084b0e580181200864f0af5a294 /package.json
parentccaa131e96fabb0e24ab6596d96de69411e7d955 (diff)
downloadnextcloud-server-fb183b457c2befbc3ab04b0cb070aa1e300443c6.tar.gz
nextcloud-server-fb183b457c2befbc3ab04b0cb070aa1e300443c6.zip
Add eslint testing
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'package.json')
-rw-r--r--package.json5
1 files changed, 3 insertions, 2 deletions
diff --git a/package.json b/package.json
index c490ff736cd..82c9d76ffc6 100644
--- a/package.json
+++ b/package.json
@@ -11,8 +11,8 @@
"build": "NODE_ENV=production webpack --progress --config webpack.prod.js",
"dev": "NODE_ENV=development webpack --progress --config webpack.dev.js",
"watch": "NODE_ENV=development webpack --progress --watch --config webpack.dev.js",
- "lint:fix": "ESLINT_FIX=true webpack --progress --config webpack.dev.js",
- "lint:fix-watch": "ESLINT_FIX=true webpack --progress --watch --config webpack.dev.js",
+ "lint": "eslint '**/src/**/*.{vue,js}'",
+ "lint:fix": "eslint '**/*.{vue,js}' --fix",
"test": "mochapack --webpack-config core/webpack.test.js --require core/src/tests/setup.js \"core/src/tests/**/*.spec.js\"",
"test:watch": "mochapack -w --webpack-config core/webpack.test.js --require core/src/tests/setup.js \"core/src/tests/**/*.spec.js\""
},
@@ -122,6 +122,7 @@
"sinon": "^9.2.4",
"sinon-chai": "^3.5.0",
"style-loader": "^2.0.0",
+ "terser-webpack-plugin": "^5.1.1",
"url-loader": "^4.1.1",
"vue-loader": "^15.9.6",
"vue-template-compiler": "^2.6.12",