Merge pull request #2246 from Human-Connection/dependabot/npm_and_yarn/webapp/eslint-config-standard-14.1.0

build(deps-dev): bump eslint-config-standard from 12.0.0 to 14.1.0 in /webapp
This commit is contained in:
Robert Schäfer 2019-11-16 17:25:50 +01:00 committed by GitHub
commit 7afad12626
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
23 changed files with 31 additions and 30 deletions

View File

@ -69,7 +69,7 @@ export default {
if (!this.user.slug) { if (!this.user.slug) {
return [] return []
} }
let routes = [ const routes = [
{ {
name: this.$t('profile.name'), name: this.$t('profile.name'),
path: `/profile/${this.user.id}/${this.user.slug}`, path: `/profile/${this.user.id}/${this.user.slug}`,

View File

@ -9,7 +9,7 @@ describe('Category', () => {
let icon let icon
let name let name
let Wrapper = () => { const Wrapper = () => {
return shallowMount(Category, { return shallowMount(Category, {
localVue, localVue,
propsData: { propsData: {

View File

@ -53,7 +53,7 @@ export default {
}, },
computed: { computed: {
routes() { routes() {
let routes = [] const routes = []
if (this.resourceType === 'contribution') { if (this.resourceType === 'contribution') {
if (this.isOwner) { if (this.isOwner) {

View File

@ -223,7 +223,7 @@ export default {
this.form.teaserImage = file this.form.teaserImage = file
}, },
categoryIds(categories) { categoryIds(categories) {
let categoryIds = [] const categoryIds = []
categories.map(categoryId => { categories.map(categoryId => {
categoryIds.push(categoryId.id) categoryIds.push(categoryId.id)
}) })

View File

@ -101,7 +101,7 @@ export default {
} }
}, },
handleSubmit() { handleSubmit() {
let resourceArgs = [] const resourceArgs = []
if (this.deleteContributions) { if (this.deleteContributions) {
resourceArgs.push('Post') resourceArgs.push('Post')
} }

View File

@ -79,7 +79,7 @@ describe('Editor.vue', () => {
describe('limists suggestion list to 15 users', () => { describe('limists suggestion list to 15 users', () => {
beforeEach(() => { beforeEach(() => {
let manyUsersList = [] const manyUsersList = []
for (let i = 0; i < 25; i++) { for (let i = 0; i < 25; i++) {
manyUsersList.push({ id: `user${i}` }) manyUsersList.push({ id: `user${i}` })
} }
@ -120,7 +120,7 @@ describe('Editor.vue', () => {
describe('limists suggestion list to 15 hashtags', () => { describe('limists suggestion list to 15 hashtags', () => {
beforeEach(() => { beforeEach(() => {
let manyHashtagsList = [] const manyHashtagsList = []
for (let i = 0; i < 25; i++) { for (let i = 0; i < 25; i++) {
manyHashtagsList.push({ id: `hashtag${i}` }) manyHashtagsList.push({ id: `hashtag${i}` })
} }

View File

@ -5,6 +5,7 @@ export default class EventHandler extends Extension {
get name() { get name() {
return 'event_handler' return 'event_handler'
} }
get plugins() { get plugins() {
return [ return [
new Plugin({ new Plugin({

View File

@ -10,7 +10,7 @@ config.stubs['nuxt-link'] = '<span><slot /></span>'
describe('Hashtag', () => { describe('Hashtag', () => {
let id let id
let Wrapper = () => { const Wrapper = () => {
return shallowMount(Hashtag, { return shallowMount(Hashtag, {
localVue, localVue,
propsData: { propsData: {

View File

@ -58,7 +58,7 @@ export default {
return find(this.locales, { code: this.$i18n.locale() }) return find(this.locales, { code: this.$i18n.locale() })
}, },
routes() { routes() {
let routes = this.locales.map(locale => { const routes = this.locales.map(locale => {
return { return {
name: locale.name, name: locale.name,
path: locale.code, path: locale.code,

View File

@ -10,7 +10,7 @@ localVue.use(Styleguide)
localVue.use(Filters) localVue.use(Filters)
localVue.filter('truncate', string => string) localVue.filter('truncate', string => string)
config.stubs['dropdown'] = '<span class="dropdown"><slot /></span>' config.stubs.dropdown = '<span class="dropdown"><slot /></span>'
describe('NotificationMenu.vue', () => { describe('NotificationMenu.vue', () => {
let wrapper let wrapper

View File

@ -7,13 +7,13 @@ const localVue = createLocalVue()
localVue.use(Styleguide) localVue.use(Styleguide)
describe('Paginate.vue', () => { describe('Paginate.vue', () => {
let propsData, wrapper, Wrapper, nextButton, backButton let propsData, wrapper, nextButton, backButton
beforeEach(() => { beforeEach(() => {
propsData = {} propsData = {}
}) })
Wrapper = () => { const Wrapper = () => {
return mount(Paginate, { propsData, localVue }) return mount(Paginate, { propsData, localVue })
} }
describe('mount', () => { describe('mount', () => {

View File

@ -16,7 +16,7 @@ describe('RelativeDateTime', () => {
} }
}) })
let Wrapper = () => { const Wrapper = () => {
return shallowMount(RelativeDateTime, { return shallowMount(RelativeDateTime, {
mocks, mocks,
localVue, localVue,

View File

@ -6,7 +6,7 @@ const localVue = createLocalVue()
describe('Ribbon', () => { describe('Ribbon', () => {
let text let text
let Wrapper = () => { const Wrapper = () => {
return shallowMount(Ribbon, { return shallowMount(Ribbon, {
localVue, localVue,
propsData: { propsData: {

View File

@ -64,7 +64,7 @@ export default {
}, },
watch: { watch: {
error() { error() {
let that = this const that = this
setTimeout(function() { setTimeout(function() {
that.error = false that.error = false
}, 2000) }, 2000)

View File

@ -43,7 +43,7 @@ export default {
}, },
watch: { watch: {
error() { error() {
let that = this const that = this
setTimeout(function() { setTimeout(function() {
that.error = false that.error = false
}, 2000) }, 2000)

View File

@ -8,7 +8,7 @@ beforeEach(() => {
}) })
describe('validReport', () => { describe('validReport', () => {
let validate = object => { const validate = object => {
const { formSchema } = validReport({ translate }) const { formSchema } = validReport({ translate })
const validator = new Schema(formSchema) const validator = new Schema(formSchema)
return validator.validate(object, { suppressWarning: true }).catch(({ errors }) => { return validator.validate(object, { suppressWarning: true }).catch(({ errors }) => {

View File

@ -14,7 +14,7 @@ beforeEach(() => {
}) })
describe('UniqueSlugForm', () => { describe('UniqueSlugForm', () => {
let validate = object => { const validate = object => {
const { formSchema } = UniqueSlugForm({ translate, apollo, currentUser }) const { formSchema } = UniqueSlugForm({ translate, apollo, currentUser })
const validator = new Schema(formSchema) const validator = new Schema(formSchema)
return validator.validate(object, { suppressWarning: true }).catch(({ errors }) => { return validator.validate(object, { suppressWarning: true }).catch(({ errors }) => {

View File

@ -1,7 +1,7 @@
import isEmpty from 'lodash/isEmpty' import isEmpty from 'lodash/isEmpty'
export default async ({ store, env, route, redirect }) => { export default async ({ store, env, route, redirect }) => {
let publicPages = env.publicPages const publicPages = env.publicPages
// only affect non public pages // only affect non public pages
if (publicPages.indexOf(route.name) >= 0) { if (publicPages.indexOf(route.name) >= 0) {
return true return true
@ -17,7 +17,7 @@ export default async ({ store, env, route, redirect }) => {
// await store.dispatch('auth/logout', null, { root: true }) // await store.dispatch('auth/logout', null, { root: true })
// set the redirect path for after the login // set the redirect path for after the login
let params = {} const params = {}
if (!isEmpty(route.path) && route.path !== '/') { if (!isEmpty(route.path) && route.path !== '/') {
params.path = route.path params.path = route.path
} }

View File

@ -1,7 +1,7 @@
import isEmpty from 'lodash/isEmpty' import isEmpty from 'lodash/isEmpty'
export default async ({ store, env, route, redirect }) => { export default async ({ store, env, route, redirect }) => {
let publicPages = env.publicPages const publicPages = env.publicPages
// only affect non public pages // only affect non public pages
if (publicPages.indexOf(route.name) >= 0) { if (publicPages.indexOf(route.name) >= 0) {
return true return true
@ -11,7 +11,7 @@ export default async ({ store, env, route, redirect }) => {
if (store.getters['auth/termsAndConditionsAgreed']) return true if (store.getters['auth/termsAndConditionsAgreed']) return true
let params = {} const params = {}
if (!isEmpty(route.path) && route.path !== '/') { if (!isEmpty(route.path) && route.path !== '/') {
params.path = route.path params.path = route.path
} }

View File

@ -113,7 +113,7 @@
"css-loader": "~3.2.0", "css-loader": "~3.2.0",
"eslint": "~6.6.0", "eslint": "~6.6.0",
"eslint-config-prettier": "~6.5.0", "eslint-config-prettier": "~6.5.0",
"eslint-config-standard": "~12.0.0", "eslint-config-standard": "~14.1.0",
"eslint-loader": "~3.0.2", "eslint-loader": "~3.0.2",
"eslint-plugin-import": "~2.18.2", "eslint-plugin-import": "~2.18.2",
"eslint-plugin-jest": "~23.0.4", "eslint-plugin-jest": "~23.0.4",

View File

@ -117,7 +117,7 @@ export default {
this.loadingData = true this.loadingData = true
const { name, slug, about } = this.formData const { name, slug, about } = this.formData
let { locationName } = this.formData || this.currentUser let { locationName } = this.formData || this.currentUser
locationName = locationName && (locationName['label'] || locationName) locationName = locationName && (locationName.label || locationName)
try { try {
await this.$apollo.mutate({ await this.$apollo.mutate({
mutation, mutation,
@ -154,7 +154,7 @@ export default {
if (!res || !res.data || !res.data.features || !res.data.features.length) { if (!res || !res.data || !res.data.features || !res.data.features.length) {
return [] return []
} }
let output = [] const output = []
res.data.features.forEach(item => { res.data.features.forEach(item => {
output.push({ output.push({
label: item.place_name, label: item.place_name,

View File

@ -25,7 +25,7 @@ export const state = () => {
filter: { filter: {
...defaultFilter, ...defaultFilter,
}, },
order: orderOptions['createdAt_desc'], order: orderOptions.createdAt_desc,
} }
} }

View File

@ -7059,10 +7059,10 @@ eslint-config-prettier@^6.0.0, eslint-config-prettier@~6.5.0:
dependencies: dependencies:
get-stdin "^6.0.0" get-stdin "^6.0.0"
eslint-config-standard@~12.0.0: eslint-config-standard@~14.1.0:
version "12.0.0" version "14.1.0"
resolved "https://registry.yarnpkg.com/eslint-config-standard/-/eslint-config-standard-12.0.0.tgz#638b4c65db0bd5a41319f96bba1f15ddad2107d9" resolved "https://registry.yarnpkg.com/eslint-config-standard/-/eslint-config-standard-14.1.0.tgz#b23da2b76fe5a2eba668374f246454e7058f15d4"
integrity sha512-COUz8FnXhqFitYj4DTqHzidjIL/t4mumGZto5c7DrBpvWoie+Sn3P4sLEzUGeYhRElWuFEf8K1S1EfvD1vixCQ== integrity sha512-EF6XkrrGVbvv8hL/kYa/m6vnvmUT+K82pJJc4JJVMM6+Qgqh0pnwprSxdduDLB9p/7bIxD+YV5O0wfb8lmcPbA==
eslint-import-resolver-node@^0.3.2: eslint-import-resolver-node@^0.3.2:
version "0.3.2" version "0.3.2"