Skip to content

Commit f876d89

Browse files
authored
remove use-strict (#981)
* remove use-strict * modify corresponding eslint.rc rule
1 parent b28db84 commit f876d89

File tree

15 files changed

+2
-27
lines changed

15 files changed

+2
-27
lines changed

.eslintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"no-unused-vars": [2, {"args": "none"}],
3535
"no-with": 2,
3636
"semi": [0, "never"],
37-
"strict": [2, "global"],
37+
"strict": [2, "never"],
3838
"valid-typeof": 2
3939
},
4040
"extends": [

Gruntfile.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
'use strict';
2-
1+
'use strict'; // eslint-disable-line
32
module.exports = function(grunt) {
43
var path = require('path');
54
var os = require('os');

plugins/angular.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
*
44
* Provides an $exceptionHandler for Angular.js
55
*/
6-
'use strict';
7-
86
var wrappedCallback = require('../src/utils').wrappedCallback;
97

108
// See https://github.com/angular/angular.js/blob/v1.4.7/src/minErr.js

plugins/console.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
* `levels`: An array of levels (methods on `console`) to report to Sentry.
1010
* Defaults to debug, info, warn, and error.
1111
*/
12-
'use strict';
13-
1412
var wrapConsoleMethod = require('../src/console').wrapMethod;
1513

1614
function consolePlugin(Raven, console, pluginOptions) {

plugins/ember.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
*
44
* Patches event handler callbacks and ajax callbacks.
55
*/
6-
'use strict';
7-
86
function emberPlugin(Raven, Ember) {
97
Ember = Ember || window.Ember;
108

plugins/react-native.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
* data payload will be passed as the first argument of the callback.
1818
*
1919
*/
20-
'use strict';
21-
2220
var wrappedCallback = require('../src/utils').wrappedCallback;
2321

2422
// Example React Native path format (iOS):

plugins/require.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
*
55
* Automatically wrap define/require callbacks. (Experimental)
66
*/
7-
'use strict';
8-
97
function requirePlugin(Raven) {
108
if (typeof define === 'function' && define.amd) {
119
window.define = Raven.wrap({deep: false}, define);

plugins/vue.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
* Vue.js 2.0 plugin
33
*
44
*/
5-
'use strict';
65

76
function formatComponentName(vm) {
87
if (vm.$root === vm) {

src/configError.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use strict';
2-
31
function RavenConfigError(message) {
42
this.name = 'RavenConfigError';
53
this.message = message;

src/console.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use strict';
2-
31
var wrapMethod = function(console, level, callback) {
42
var originalConsoleLevel = console[level];
53
var originalConsole = console;

0 commit comments

Comments
 (0)