aboutsummaryrefslogtreecommitdiffstats
path: root/package.json
diff options
context:
space:
mode:
authorRoan Kattouw <roan.kattouw@gmail.com>2020-02-03 15:54:11 -0800
committerJames D. Forrester <jforrester@wikimedia.org>2020-02-05 18:51:39 -0800
commitf1eaa06d5e2222f3a94dc269977cccfb6e891a25 (patch)
treefe2370550e9adba3edfd5b7a0353f1882f6526cf /package.json
parentae67d233cd4f969b5d62ddd9d882e0a792a3ae7b (diff)
downloadmediawikicore-f1eaa06d5e2222f3a94dc269977cccfb6e891a25.tar.gz
mediawikicore-f1eaa06d5e2222f3a94dc269977cccfb6e891a25.zip
build: Linting for .vue files
Install eslint-plugin-vue, which lints JS inside <script> blocks in .vue files, and also lints Vue templates. Configure eslint and stylelint to run on .vue files. stylelint automatically picks up on CSS in <style> tags. You may have to change a setting in your text editor or IDE to make it run eslint and stylelint in .vue files. For eslint, see https://eslint.vuejs.org/user-guide/#editor-integrations ; for stylelint, I had to install the linter-stylelint-plus Atom plugin then add source.css.embedded.html to the "Base Scopes" setting for that plugin. Change-Id: I7e6a13317792fc25c29106739b0c24864fd8d301
Diffstat (limited to 'package.json')
-rw-r--r--package.json1
1 files changed, 1 insertions, 0 deletions
diff --git a/package.json b/package.json
index fb336687cfc7..80db99117bdc 100644
--- a/package.json
+++ b/package.json
@@ -23,6 +23,7 @@
"@wdio/sync": "5.13.2",
"api-testing": "1.0.3",
"eslint-config-wikimedia": "0.15.0",
+ "eslint-plugin-vue": "^6.1.2",
"grunt": "1.0.4",
"grunt-banana-checker": "0.8.1",
"grunt-contrib-copy": "1.0.0",