From e8993eac99e561f79436c2b48f0ff7820f8ac846 Mon Sep 17 00:00:00 2001 From: Pim Date: Tue, 23 Oct 2018 08:52:59 +0200 Subject: [PATCH] chore: lint all template files (#4130) --- lib/app/.eslintignore | 3 +++ package.json | 2 ++ yarn.lock | 11 ++++++++++- 3 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 lib/app/.eslintignore diff --git a/lib/app/.eslintignore b/lib/app/.eslintignore new file mode 100644 index 0000000000..8bf6e2d1fb --- /dev/null +++ b/lib/app/.eslintignore @@ -0,0 +1,3 @@ +dist +_nuxt +*.json diff --git a/package.json b/package.json index 7a69545970..d38be6a648 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ "dev": "yarn build --watch", "coverage": "codecov", "lint": "eslint --ext .js,.mjs,.vue .", + "lint:app": "eslint-multiplexer eslint --ignore-path lib/app/.eslintignore 'test/fixtures/!(missing-plugin)/.nuxt!(-dev)/**' | eslint-multiplexer -b", "nuxt": "node -r esm ./packages/cli/bin/nuxt.js", "test": "yarn test:fixtures && yarn test:unit", "test:fixtures": "jest test/fixtures", @@ -31,6 +32,7 @@ "cross-spawn": "^6.0.5", "eslint": "^5.7.0", "eslint-config-standard": "^12.0.0", + "eslint-multiplexer": "^1.0.2", "eslint-plugin-import": "^2.14.0", "eslint-plugin-jest": "^21.25.1", "eslint-plugin-node": "^7.0.1", diff --git a/yarn.lock b/yarn.lock index fa8a6d17da..1fa608cc9b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4004,6 +4004,15 @@ eslint-module-utils@^2.2.0: debug "^2.6.8" pkg-dir "^1.0.0" +eslint-multiplexer@^1.0.2: + version "1.0.2" + resolved "https://registry.npmjs.org/eslint-multiplexer/-/eslint-multiplexer-1.0.2.tgz#8cce47bbeac7f448617b714245860aa6e5c38941" + integrity sha512-H8fIwGwrydqyGs9n10VPr5zt2PPYsAiRrDKcWtE4aw1w+JGzj+DBYc4wvp+ptGwGi/4YCkjsmIkDZQrGgv5axg== + dependencies: + cross-spawn "^6.0.5" + minimist "^1.2.0" + minimist-options "^3.0.2" + eslint-plugin-es@^1.3.1: version "1.3.1" resolved "https://registry.npmjs.org/eslint-plugin-es/-/eslint-plugin-es-1.3.1.tgz#5acb2565db4434803d1d46a9b4cbc94b345bd028" @@ -6890,7 +6899,7 @@ minimatch@^3.0.0, minimatch@^3.0.2, minimatch@^3.0.3, minimatch@^3.0.4: dependencies: brace-expansion "^1.1.7" -minimist-options@^3.0.1: +minimist-options@^3.0.1, minimist-options@^3.0.2: version "3.0.2" resolved "https://registry.npmjs.org/minimist-options/-/minimist-options-3.0.2.tgz#fba4c8191339e13ecf4d61beb03f070103f3d954" integrity sha512-FyBrT/d0d4+uiZRbqznPXqw3IpZZG3gl3wKWiX784FycUKVwBt0uLBFkQrtE4tZOrgo78nZp2jnKz3L65T5LdQ==