I am updating my ionic app with es6 and getting multpul eslint errors on one line of code. I'd like to fix it please help!


#1

I am updating my ionic app to es6 version. once I set up eslint and its config I am getting following 3 errors on same line:

definition for ‘rule no-tabs’ was not found. definition for ‘rest-spread-spacing’ was not found. definition for ‘func-call-spacing’ was not found.

how can I solve this problem?

angular.module(‘pgApp’)
.controller(‘AccountDetailsCtrl’, function ($scope, $ionicHistory,
$cordovaCamera, $ionicPopup, userService) {
$scope.accountData = {};

  userService.getUserAccountData()
 .then((accountData) => {
   $scope.accountData = accountData;
   console.log(accountData);
 })
 .catch((err) => {
   const alert = $ionicPopup.alert({
     title: 'Account Info',
     template: err.statusText,
     cssClass: 'errorAlert'
   });
 });
  ......

}
.config(($stateProvider, $urlRouterProvider, $ionicConfigProvider)
=> {
$ionicConfigProvider.scrolling.jsScrolling(false);

}

please~~~ help!
Thanks


#2

First step would be to format your code here so it is readable. Use the </> button in the toolbar to add a code fence around it, this will also apply code highlighting. Thanks.