In my .eslintrc I've set strict and disabled global-strict but I always get the error error Unnecessary "use strict" directive strict when I run against my file.
Right now I have it working by using global-strict but I read that global-strict will be deprecated soon and I'm wondering what I need to do to achieve the same results.
Expected To Work
"strict": [2, "global"],
"global-strict": [0, "always"]
Actually works
"strict": [0, "global"],
"global-strict": [2, "always"],
Test File
'use strict'
angular.module('edvisor.viewModels.student.profile')
.directive('studentSidebarTasks', [function() {
return {
restrict: 'E',
scope: {
},
templateUrl: 'view_models/student/student_profile/student_sidebar/student_sidebar_tasks/student_sidebar_tasks.html',
link(scope) {
}
}
}])
In my
.eslintrcI've setstrictand disabledglobal-strictbut I always get the errorerror Unnecessary "use strict" directive strictwhen I run against my file.Right now I have it working by using
global-strictbut I read that global-strict will be deprecated soon and I'm wondering what I need to do to achieve the same results.Expected To Work
Actually works
Test File