Upgraded to eslint 6 and fixed barrel file issue for codeclimate (#7161)

This commit is contained in:
Nick Taylor 2020-04-08 14:39:06 -04:00 committed by GitHub
parent a4a14a5377
commit 60d2febc54
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View file

@ -48,7 +48,9 @@ plugins:
enabled: true
eslint:
enabled: true
channel: "eslint-5"
channel: "eslint-6"
exclude_patterns:
- "app/javascript/**/index.js" # exclude barrel files
duplication:
enabled: true
config:
@ -71,4 +73,3 @@ exclude_patterns:
- "**/.eslintrc.js"
- "*.js"
- "**/__stories__/"

View file

@ -1,6 +1,6 @@
'use strict';
/* global userData, filterXSS */
/* global filterXSS */
function initializeUserProfileContent(user) {
document.getElementById('sidebar-profile--avatar').src = user.profile_image_90;