From ab658812394634155f66a83433b3aa1c77d6e549 Mon Sep 17 00:00:00 2001 From: Grzegorz Leoniec Date: Sun, 25 Nov 2018 14:14:15 +0100 Subject: [PATCH] fixed linting --- .eslintignore | 1 + components/Badges.spec.js | 3 +-- package.json | 3 ++- yarn.lock | 23 ++++++++++++++++++++++- 4 files changed, 26 insertions(+), 4 deletions(-) diff --git a/.eslintignore b/.eslintignore index 181955808..69d9ce171 100644 --- a/.eslintignore +++ b/.eslintignore @@ -2,3 +2,4 @@ node_modules build .nuxt cypress/ +styleguide/ diff --git a/components/Badges.spec.js b/components/Badges.spec.js index 711cb89da..5273fca21 100644 --- a/components/Badges.spec.js +++ b/components/Badges.spec.js @@ -5,8 +5,7 @@ describe('Badges.vue', () => { let wrapper beforeEach(() => { - wrapper = shallowMount(Badges, { - }) + wrapper = shallowMount(Badges, {}) }) it('renders', () => { diff --git a/package.json b/package.json index 0729b1aae..c33c4ec8a 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "build": "nuxt build", "start": "cross-env node server/index.js", "generate": "nuxt generate", - "lint": "eslint --ext .js,.vue --ignore-path .gitignore .", + "lint": "eslint --ext .js,.vue .", "styleguide": "cd ./styleguide && yarn dev", "styleguide:build": "cd ./styleguide && yarn build:lib && cd ../ && yarn upgrade vue-cion-design-system --ignore-engines", "test": "jest", @@ -48,6 +48,7 @@ "vue-izitoast": "^1.1.0" }, "devDependencies": { + "@vue/eslint-config-prettier": "^4.0.1", "@vue/test-utils": "^1.0.0-beta.25", "babel-eslint": "^10.0.1", "babel-jest": "^23.6.0", diff --git a/yarn.lock b/yarn.lock index b7ee774c4..8b38d028a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -900,6 +900,15 @@ source-map "^0.5.6" vue-template-es2015-compiler "^1.6.0" +"@vue/eslint-config-prettier@^4.0.1": + version "4.0.1" + resolved "https://registry.yarnpkg.com/@vue/eslint-config-prettier/-/eslint-config-prettier-4.0.1.tgz#a036d0d2193c5c836542b35a3a7c35c4e1c68c97" + integrity sha512-rJEDXPb61Hfgg8GllO3XXFP98bcIxdNNHSrNcxP/vBSukOolgOwQyZJ5f5z/c7ViPyh5/IDlC4qBnhx/0n+I4g== + dependencies: + eslint-config-prettier "^3.3.0" + eslint-plugin-prettier "^3.0.0" + prettier "^1.15.2" + "@vue/test-utils@^1.0.0-beta.25": version "1.0.0-beta.25" resolved "https://registry.yarnpkg.com/@vue/test-utils/-/test-utils-1.0.0-beta.25.tgz#4703076de3076bac42cdd242cd53e6fb8752ed8c" @@ -3621,6 +3630,13 @@ eslint-config-prettier@^3.1.0: dependencies: get-stdin "^6.0.0" +eslint-config-prettier@^3.3.0: + version "3.3.0" + resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-3.3.0.tgz#41afc8d3b852e757f06274ed6c44ca16f939a57d" + integrity sha512-Bc3bh5bAcKNvs3HOpSi6EfGA2IIp7EzWcg2tS4vP7stnXu/J1opihHDM7jI9JCIckyIDTgZLSWn7J3HY0j2JfA== + dependencies: + get-stdin "^6.0.0" + eslint-loader@^2.0.0: version "2.1.1" resolved "https://registry.yarnpkg.com/eslint-loader/-/eslint-loader-2.1.1.tgz#2a9251523652430bfdd643efdb0afc1a2a89546a" @@ -3631,7 +3647,7 @@ eslint-loader@^2.0.0: object-hash "^1.1.4" rimraf "^2.6.1" -eslint-plugin-prettier@3.0.0: +eslint-plugin-prettier@3.0.0, eslint-plugin-prettier@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-3.0.0.tgz#f6b823e065f8c36529918cdb766d7a0e975ec30c" dependencies: @@ -7578,6 +7594,11 @@ prettier@1.14.3: version "1.14.3" resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.14.3.tgz#90238dd4c0684b7edce5f83b0fb7328e48bd0895" +prettier@^1.15.2: + version "1.15.2" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.15.2.tgz#d31abe22afa4351efa14c7f8b94b58bb7452205e" + integrity sha512-YgPLFFA0CdKL4Eg2IHtUSjzj/BWgszDHiNQAe0VAIBse34148whfdzLagRL+QiKS+YfK5ftB6X4v/MBw8yCoug== + pretty-error@^2.0.2: version "2.1.1" resolved "https://registry.yarnpkg.com/pretty-error/-/pretty-error-2.1.1.tgz#5f4f87c8f91e5ae3f3ba87ab4cf5e03b1a17f1a3"