Run eslint on .vue files

master
Futago-za Ryuu 6 years ago
parent b7d4d01ff5
commit 8c30834ccc

@ -0,0 +1,21 @@
"use strict";
module.exports = {
"extends": "plugin:vue/recommended",
"parserOptions": {
// plugin:vue/recommended set's this to "module" for some reason...
"sourceType": "script"
},
"rules": {
"vue/html-indent": [ "error", 4 ],
"vue/singleline-html-element-content-newline": 0,
},
};

@ -8,7 +8,7 @@
"website"
],
"scripts": {
"lint": "eslint .",
"lint": "eslint --ext .js,.vue . docs/.vuepress",
"spec": "mocha --recursive",
"benchmark": "node tools/benchmark/node",
"build-docs": "vuepress build docs",
@ -19,7 +19,7 @@
"impact": "node tools/impact master",
"start": "node website/server.js",
"now-build": "npm run build-docs",
"test": "eslint . && nyc mocha --recursive",
"test": "npm run lint && nyc mocha --recursive",
"coverage": "nyc report --reporter=text-lcov | coveralls"
},
"devDependencies": {
@ -27,6 +27,7 @@
"rimraf": "2.6.2",
"eslint": "5",
"eslint-config-futagozaryuu": "5",
"eslint-plugin-vue": "5",
"mocha": "5.2.0",
"vuepress": "next",
"nyc": "13.1.0"

@ -3221,6 +3221,13 @@ eslint-plugin-node@~8.0.0:
resolve "^1.8.1"
semver "^5.5.0"
eslint-plugin-vue@5:
version "5.0.0"
resolved "https://registry.yarnpkg.com/eslint-plugin-vue/-/eslint-plugin-vue-5.0.0.tgz#4a2cc1c0e71ea45e1bd9c1a60f925bfe68bb5710"
integrity sha512-mSv2Ebz3RaPP+XJO/mu7F+SdR9lrMyGISSExnarLFqqf3pF5wTmwWNrhHW1o9zKzKI811UVTIIkWJJvgO6SsUQ==
dependencies:
vue-eslint-parser "^4.0.2"
eslint-scope@3.7.1:
version "3.7.1"
resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-3.7.1.tgz#3d63c3edfda02e06e01a452ad88caacc7cdcb6e8"
@ -3290,6 +3297,15 @@ eslint@5:
table "^5.0.2"
text-table "^0.2.0"
espree@^4.1.0:
version "4.1.0"
resolved "https://registry.yarnpkg.com/espree/-/espree-4.1.0.tgz#728d5451e0fd156c04384a7ad89ed51ff54eb25f"
integrity sha512-I5BycZW6FCVIub93TeVY1s7vjhP9CY6cXCznIRfiig7nRviKZYdRnj/sHEWC6A7WE9RDWOFq9+7OsWSYz8qv2w==
dependencies:
acorn "^6.0.2"
acorn-jsx "^5.0.0"
eslint-visitor-keys "^1.0.0"
espree@^5.0.0:
version "5.0.0"
resolved "https://registry.yarnpkg.com/espree/-/espree-5.0.0.tgz#fc7f984b62b36a0f543b13fb9cd7b9f4a7f5b65c"
@ -8586,6 +8602,18 @@ vm-browserify@0.0.4:
dependencies:
indexof "0.0.1"
vue-eslint-parser@^4.0.2:
version "4.0.3"
resolved "https://registry.yarnpkg.com/vue-eslint-parser/-/vue-eslint-parser-4.0.3.tgz#80cf162e484387b2640371ad21ba1f86e0c10a61"
integrity sha512-AUeQsYdO6+7QXCems+WvGlrXd37PHv/zcRQSQdY1xdOMwdFAPEnMBsv7zPvk0TPGulXkK/5p/ITgrjiYB7k3ag==
dependencies:
debug "^4.1.0"
eslint-scope "^4.0.0"
eslint-visitor-keys "^1.0.0"
espree "^4.1.0"
esquery "^1.0.1"
lodash "^4.17.11"
vue-hot-reload-api@^2.3.0:
version "2.3.1"
resolved "https://registry.yarnpkg.com/vue-hot-reload-api/-/vue-hot-reload-api-2.3.1.tgz#b2d3d95402a811602380783ea4f566eb875569a2"

Loading…
Cancel
Save