diff --git a/.eslintrc.js b/.eslintrc.js index e1b3df62e8..4e895e3ca6 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,7 +1,7 @@ module.exports = { root: true, - parser: 'babel-eslint', parserOptions: { + parser: 'babel-eslint', sourceType: 'module' }, env: { @@ -13,10 +13,11 @@ module.exports = { 'standard', 'standard-jsx', 'plugin:import/errors', - 'plugin:import/warnings' + 'plugin:import/warnings', + "plugin:vue/recommended" ], plugins: [ - 'html', + 'vue', 'jest' ], settings: { @@ -48,13 +49,16 @@ module.exports = { // Do not allow console.logs etc... 'no-console': 2, - 'space-before-function-paren': [ - 2, - { - anonymous: 'always', - named: 'never' - } - ], + 'space-before-function-paren': [2, { + anonymous: 'always', + named: 'never' + }], + 'vue/no-parsing-error': [2, { + 'x-invalid-end-tag': false + }], + "vue/max-attributes-per-line": [2, { + "singleline": 5, + }] }, globals: {} diff --git a/examples/async-component-injection/layouts/default.vue b/examples/async-component-injection/layouts/default.vue index 204ba8cf6c..092ebb1420 100644 --- a/examples/async-component-injection/layouts/default.vue +++ b/examples/async-component-injection/layouts/default.vue @@ -12,4 +12,3 @@ - diff --git a/examples/async-component-injection/pages/index.vue b/examples/async-component-injection/pages/index.vue index c14422030b..13636fe492 100644 --- a/examples/async-component-injection/pages/index.vue +++ b/examples/async-component-injection/pages/index.vue @@ -1,8 +1,8 @@ diff --git a/examples/scroll-behavior/pages/users.vue b/examples/scroll-behavior/pages/users.vue index 81056d4759..c57a1a13a3 100644 --- a/examples/scroll-behavior/pages/users.vue +++ b/examples/scroll-behavior/pages/users.vue @@ -7,7 +7,7 @@ Next > diff --git a/examples/static-images/pages/about.vue b/examples/static-images/pages/about.vue index 9e4840f4bd..d0bf522099 100644 --- a/examples/static-images/pages/about.vue +++ b/examples/static-images/pages/about.vue @@ -1,6 +1,6 @@ diff --git a/examples/with-vuikit/pages/index.vue b/examples/with-vuikit/pages/index.vue index d68251e432..e3e6700c8e 100644 --- a/examples/with-vuikit/pages/index.vue +++ b/examples/with-vuikit/pages/index.vue @@ -14,6 +14,6 @@
- + diff --git a/examples/with-vux/layouts/default.vue b/examples/with-vux/layouts/default.vue index cc972b0ae7..803567762f 100644 --- a/examples/with-vux/layouts/default.vue +++ b/examples/with-vux/layouts/default.vue @@ -1,9 +1,9 @@ \ No newline at end of file + diff --git a/examples/with-vux/pages/index.vue b/examples/with-vux/pages/index.vue index 5d16695816..c9fad02162 100644 --- a/examples/with-vux/pages/index.vue +++ b/examples/with-vux/pages/index.vue @@ -1,12 +1,11 @@ - \ No newline at end of file + diff --git a/package.json b/package.json index 967780f1d6..b09a022cf1 100644 --- a/package.json +++ b/package.json @@ -142,7 +142,6 @@ "eslint": "^4.19.1", "eslint-config-standard": "^11.0.0", "eslint-config-standard-jsx": "^5.0.0", - "eslint-plugin-html": "^4.0.2", "eslint-plugin-import": "^2.12.0", "eslint-plugin-jest": "^21.17.0", "eslint-plugin-node": "^6.0.0", diff --git a/test/fixtures/basic/pages/extractCSS.vue b/test/fixtures/basic/pages/extractCSS.vue index ec788f2e74..90198a3c24 100644 --- a/test/fixtures/basic/pages/extractCSS.vue +++ b/test/fixtures/basic/pages/extractCSS.vue @@ -1,5 +1,5 @@ \ No newline at end of file + diff --git a/test/fixtures/with-config/layouts/mobile/default.vue b/test/fixtures/with-config/layouts/mobile/default.vue index 548fe9b27b..81077ff137 100644 --- a/test/fixtures/with-config/layouts/mobile/default.vue +++ b/test/fixtures/with-config/layouts/mobile/default.vue @@ -18,4 +18,3 @@ body { font-family: 'Roboto'; } - diff --git a/test/fixtures/with-config/pages/desktop.vue b/test/fixtures/with-config/pages/desktop.vue index 4c0951062e..53f8ae3b56 100644 --- a/test/fixtures/with-config/pages/desktop.vue +++ b/test/fixtures/with-config/pages/desktop.vue @@ -9,4 +9,3 @@ export default { layout: 'desktop/default' } - diff --git a/test/fixtures/with-config/pages/mobile.vue b/test/fixtures/with-config/pages/mobile.vue index 915e603c6e..1d2dc17f9d 100644 --- a/test/fixtures/with-config/pages/mobile.vue +++ b/test/fixtures/with-config/pages/mobile.vue @@ -9,4 +9,3 @@ export default { layout: 'mobile/default' } - diff --git a/yarn.lock b/yarn.lock index d1dfd04a25..183b10583a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2345,7 +2345,7 @@ domain-browser@^1.1.1: version "1.2.0" resolved "https://registry.yarnpkg.com/domain-browser/-/domain-browser-1.2.0.tgz#3d31f50191a6749dd1375a7f522e823d42e54eda" -domelementtype@1, domelementtype@^1.3.0: +domelementtype@1: version "1.3.0" resolved "https://registry.yarnpkg.com/domelementtype/-/domelementtype-1.3.0.tgz#b17aed82e8ab59e52dd9c19b1756e0fc187204c2" @@ -2365,12 +2365,6 @@ domhandler@2.1: dependencies: domelementtype "1" -domhandler@^2.3.0: - version "2.4.2" - resolved "https://registry.yarnpkg.com/domhandler/-/domhandler-2.4.2.tgz#8805097e933d65e85546f726d60f5eb88b44f803" - dependencies: - domelementtype "1" - domutils@1.1: version "1.1.6" resolved "https://registry.yarnpkg.com/domutils/-/domutils-1.1.6.tgz#bddc3de099b9a2efacc51c623f28f416ecc57485" @@ -2384,13 +2378,6 @@ domutils@1.5.1: dom-serializer "0" domelementtype "1" -domutils@^1.5.1: - version "1.7.0" - resolved "https://registry.yarnpkg.com/domutils/-/domutils-1.7.0.tgz#56ea341e834e06e6748af7a1cb25da67ea9f8c2a" - dependencies: - dom-serializer "0" - domelementtype "1" - dot-prop@^4.1.1: version "4.2.0" resolved "https://registry.yarnpkg.com/dot-prop/-/dot-prop-4.2.0.tgz#1f19e0c2e1aa0e32797c49799f2837ac6af69c57" @@ -2477,7 +2464,7 @@ enhanced-resolve@^4.1.0: memory-fs "^0.4.0" tapable "^1.0.0" -entities@^1.1.1, entities@~1.1.1: +entities@~1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/entities/-/entities-1.1.1.tgz#6e5c2d0a5621b5dadaecef80b90edfb5cd7772f0" @@ -2591,12 +2578,6 @@ eslint-module-utils@^2.2.0: debug "^2.6.8" pkg-dir "^1.0.0" -eslint-plugin-html@^4.0.2: - version "4.0.3" - resolved "https://registry.yarnpkg.com/eslint-plugin-html/-/eslint-plugin-html-4.0.3.tgz#97d52dcf9e22724505d02719fbd02754013c8a17" - dependencies: - htmlparser2 "^3.8.2" - eslint-plugin-import@^2.12.0: version "2.12.0" resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.12.0.tgz#dad31781292d6664b25317fd049d2e2b2f02205d" @@ -3436,17 +3417,6 @@ html-webpack-plugin@^3.2.0: toposort "^1.0.0" util.promisify "1.0.0" -htmlparser2@^3.8.2: - version "3.9.2" - resolved "https://registry.yarnpkg.com/htmlparser2/-/htmlparser2-3.9.2.tgz#1bdf87acca0f3f9e53fa4fcceb0f4b4cbb00b338" - dependencies: - domelementtype "^1.3.0" - domhandler "^2.3.0" - domutils "^1.5.1" - entities "^1.1.1" - inherits "^2.0.1" - readable-stream "^2.0.2" - htmlparser2@~3.3.0: version "3.3.0" resolved "https://registry.yarnpkg.com/htmlparser2/-/htmlparser2-3.3.0.tgz#cc70d05a59f6542e43f0e685c982e14c924a9efe"