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
47 lines
1.5 KiB
JSON
47 lines
1.5 KiB
JSON
{
|
|
"private": true,
|
|
"scripts": {
|
|
"api-testing": "npm run api-testing-lint && mocha --timeout 0 --recursive tests/api-testing",
|
|
"api-testing-lint": "eslint --cache --max-warnings 0 tests/api-testing/**",
|
|
"build": "grunt minify",
|
|
"test": "grunt lint",
|
|
"qunit": "grunt qunit",
|
|
"doc": "jsduck",
|
|
"postdoc": "grunt copy:jsduck",
|
|
"selenium": "./tests/selenium/selenium.sh",
|
|
"selenium-daily": "npm run selenium-test -- --mochaOpts.grep @daily",
|
|
"selenium-test": "wdio ./tests/selenium/wdio.conf.js"
|
|
},
|
|
"devDependencies": {
|
|
"@wdio/cli": "5.13.2",
|
|
"@wdio/devtools-service": "5.13.2",
|
|
"@wdio/dot-reporter": "5.13.2",
|
|
"@wdio/junit-reporter": "5.13.2",
|
|
"@wdio/local-runner": "5.13.2",
|
|
"@wdio/mocha-framework": "5.13.2",
|
|
"@wdio/sauce-service": "5.13.2",
|
|
"@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",
|
|
"grunt-contrib-watch": "1.1.0",
|
|
"grunt-eslint": "22.0.0",
|
|
"grunt-karma": "3.0.2",
|
|
"grunt-stylelint": "0.12.0",
|
|
"grunt-svgmin": "5.0.0",
|
|
"jpeg-js": "0.3.5",
|
|
"karma": "4.4.1",
|
|
"karma-chrome-launcher": "3.1.0",
|
|
"karma-firefox-launcher": "1.3.0",
|
|
"karma-mocha-reporter": "2.2.5",
|
|
"karma-qunit": "4.0.0",
|
|
"postcss-less": "2.0.0",
|
|
"qunit": "2.9.3",
|
|
"stylelint-config-wikimedia": "0.7.0",
|
|
"wdio-mediawiki": "file:tests/selenium/wdio-mediawiki",
|
|
"webdriverio": "5.13.2"
|
|
}
|
|
}
|