Skip to content

Commit 772f917

Browse files
Used eslint --fix to replace single-quotes with double-quotes
1 parent 625242f commit 772f917

24 files changed

+367
-367
lines changed

best-practices.js

Lines changed: 72 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -1,217 +1,217 @@
1-
'use strict';
1+
"use strict";
22

33
module.exports = {
44
rules: {
55
// require corresponding getters for any setters
6-
'accessor-pairs': 'error',
6+
"accessor-pairs": "error",
77

88
// treat var statements as if they were block scoped
9-
'block-scoped-var': 'error',
9+
"block-scoped-var": "error",
1010

1111
// verify calls of super() in constructors
12-
'constructor-super': 'error',
12+
"constructor-super": "error",
1313

1414
// require the use of === and !==
15-
eqeqeq: 'error',
15+
eqeqeq: "error",
1616

1717
// make sure for-in loops have an if statement
18-
'guard-for-in': 'error',
18+
"guard-for-in": "error",
1919

2020
// require a capital letter for constructors
21-
'new-cap': 'error',
21+
"new-cap": "error",
2222

2323
// disallow the omission of parentheses when invoking a constructor with no arguments
24-
'new-parens': 'error',
24+
"new-parens": "error",
2525

2626
// disallow use of the Array constructor
27-
'no-array-constructor': 'error',
27+
"no-array-constructor": "error",
2828

2929
// disallow use of bitwise operators
30-
'no-bitwise': 'error',
30+
"no-bitwise": "error",
3131

3232
// disallow use of arguments.caller or arguments.callee
33-
'no-caller': 'error',
33+
"no-caller": "error",
3434

3535
// disallow the catch clause parameter name being the same as a variable in the outer scope
36-
'no-catch-shadow': 'warn',
36+
"no-catch-shadow": "warn",
3737

3838
// disallow assignment in conditional expressions
39-
'no-cond-assign': 'error',
39+
"no-cond-assign": "error",
4040

4141
// disallow control characters in regular expressions
42-
'no-control-regex': 'error',
42+
"no-control-regex": "error",
4343

4444
// disallow use of debugger
45-
'no-debugger': 'error',
45+
"no-debugger": "error",
4646

4747
// disallow deletion of variables
48-
'no-delete-var': 'error',
48+
"no-delete-var": "error",
4949

5050
// disallow division operators explicitly at beginning of regular expression
51-
'no-div-regex': 'error',
51+
"no-div-regex": "error",
5252

5353
// disallow duplicate argument names in functions
54-
'no-dupe-args': 'error',
54+
"no-dupe-args": "error",
5555

5656
// disallow duplicate keys when creating object literals
57-
'no-dupe-keys': 'error',
57+
"no-dupe-keys": "error",
5858

5959
// disallow duplicate case labels
60-
'no-duplicate-case': 'error',
60+
"no-duplicate-case": "error",
6161

6262
// disallow empty statements
63-
'no-empty': 'error',
63+
"no-empty": "error",
6464

6565
// disallow the use of empty character classes in regular expressions
66-
'no-empty-character-class': 'error',
66+
"no-empty-character-class": "error",
6767

6868
// disallow comparisons to null without a type-checking operator
69-
'no-eq-null': 'error',
69+
"no-eq-null": "error",
7070

7171
// disallow use of eval()
72-
'no-eval': 'error',
72+
"no-eval": "error",
7373

7474
// disallow adding to native types
75-
'no-extend-native': 'error',
75+
"no-extend-native": "error",
7676

7777
// disallow unnecessary function binding
78-
'no-extra-bind': 'error',
78+
"no-extra-bind": "error",
7979

8080
// disallow double-negation boolean casts in a boolean context
81-
'no-extra-boolean-cast': 'error',
81+
"no-extra-boolean-cast": "error",
8282

8383
// disallow unnecessary semicolons
84-
'no-extra-semi': 'error',
84+
"no-extra-semi": "error",
8585

8686
// disallow fallthrough of case statements
87-
'no-fallthrough': 'error',
87+
"no-fallthrough": "error",
8888

8989
// disallow the use of leading or trailing decimal points in numeric literals
90-
'no-floating-decimal': 'error',
90+
"no-floating-decimal": "error",
9191

9292
// disallow overwriting functions written as function declarations
93-
'no-func-assign': 'error',
93+
"no-func-assign": "error",
9494

9595
// disallow use of eval()-like methods
96-
'no-implied-eval': 'error',
96+
"no-implied-eval": "error",
9797

9898
// disallow function or variable declarations in nested blocks
99-
'no-inner-declarations': 'error',
99+
"no-inner-declarations": "error",
100100

101101
// disallow invalid regular expression strings in the RegExp constructor
102-
'no-invalid-regexp': 'error',
102+
"no-invalid-regexp": "error",
103103

104104
// disallow usage of __iterator__ property
105-
'no-iterator': 'error',
105+
"no-iterator": "error",
106106

107107
// disallow labels that share a name with a variable
108-
'no-label-var': 'error',
108+
"no-label-var": "error",
109109

110110
// disallow use of labeled statements
111-
'no-labels': 'error',
111+
"no-labels": "error",
112112

113113
// disallow unnecessary nested blocks
114-
'no-lone-blocks': 'warn',
114+
"no-lone-blocks": "warn",
115115

116116
// disallow creation of functions within loops
117-
'no-loop-func': 'warn',
117+
"no-loop-func": "warn",
118118

119119
// disallow use of multiline strings
120-
'no-multi-str': 'error',
120+
"no-multi-str": "error",
121121

122122
// disallow reassignments of native objects
123-
'no-native-reassign': 'error',
123+
"no-native-reassign": "error",
124124

125125
// disallow negation of the left operand of an in expression
126-
'no-negated-in-lhs': 'error',
126+
"no-negated-in-lhs": "error",
127127

128128
// disallow use of new operator when not part of the assignment or comparison
129-
'no-new': 'error',
129+
"no-new": "error",
130130

131131
// disallow use of new operator for Function object
132-
'no-new-func': 'error',
132+
"no-new-func": "error",
133133

134134
// disallow use of the Object constructor
135-
'no-new-object': 'error',
135+
"no-new-object": "error",
136136

137137
// disallows creating new instances of String, Number, and Boolean
138-
'no-new-wrappers': 'error',
138+
"no-new-wrappers": "error",
139139

140140
// disallow the use of object properties of the global object (Math and JSON) as functions
141-
'no-obj-calls': 'error',
141+
"no-obj-calls": "error",
142142

143143
// disallow use of octal literals
144-
'no-octal': 'error',
144+
"no-octal": "error",
145145

146146
// disallow use of octal escape sequences in string literals, such as var foo = "Copyright \050";
147-
'no-octal-escape': 'error',
147+
"no-octal-escape": "error",
148148

149149
// disallow usage of __proto__ property
150-
'no-proto': 'error',
150+
"no-proto": "error",
151151

152152
// disallow declaring the same variable more then once
153-
'no-redeclare': 'error',
153+
"no-redeclare": "error",
154154

155155
// disallow use of javascript: urls.
156-
'no-script-url': 'error',
156+
"no-script-url": "error",
157157

158158
// disallow comparisons where both sides are exactly the same
159-
'no-self-compare': 'error',
159+
"no-self-compare": "error",
160160

161161
// disallow use of comma operator
162-
'no-sequences': 'error',
162+
"no-sequences": "error",
163163

164164
// disallow declaration of variables already declared in the outer scope
165-
'no-shadow': 'warn',
165+
"no-shadow": "warn",
166166

167167
// disallow shadowing of names such as arguments
168-
'no-shadow-restricted-names': 'error',
168+
"no-shadow-restricted-names": "error",
169169

170170
// disallow sparse arrays
171-
'no-sparse-arrays': 'error',
171+
"no-sparse-arrays": "error",
172172

173173
// disallow throwing non-Error objects
174-
'no-throw-literal': 'error',
174+
"no-throw-literal": "error",
175175

176176
// disallow use of undeclared variables unless mentioned in a /*global */ block
177-
'no-undef': 'error',
177+
"no-undef": "error",
178178

179179
// disallow declaration of variables that are not used in the code
180-
'no-unused-vars': [
181-
'error',
180+
"no-unused-vars": [
181+
"error",
182182
{
183-
vars: 'all', // check "all" variables (as opposed to just "local" variables)
184-
args: 'after-used', // check any arguments that come "after-used" arguments
183+
vars: "all", // check "all" variables (as opposed to just "local" variables)
184+
args: "after-used", // check any arguments that come "after-used" arguments
185185
},
186186
],
187187

188188
// disallow use of void operator
189-
'no-void': 'error',
189+
"no-void": "error",
190190

191191
// disallow use of the with statement
192-
'no-with': 'error',
192+
"no-with": "error",
193193

194194
// require assignment operator shorthand where possible
195-
'operator-assignment': 'error',
195+
"operator-assignment": "error",
196196

197197
// Require the "use strict" pragma, either at the global level or function level,
198198
// depending on whether CommonJS is being used or not
199199
strict: [
200-
'error',
201-
'safe',
200+
"error",
201+
"safe",
202202
],
203203

204204
// disallow comparisons with the value NaN
205-
'use-isnan': 'error',
205+
"use-isnan": "error",
206206

207207
// Ensure that the results of typeof are compared against a valid string
208-
'valid-typeof': 'error',
208+
"valid-typeof": "error",
209209

210210
// require immediate function invocation to be wrapped in parentheses
211-
'wrap-iife': 'error',
211+
"wrap-iife": "error",
212212

213213
// disallow Yoda conditions
214-
yoda: 'error',
214+
yoda: "error",
215215

216216
}
217217
};

browser.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
'use strict';
1+
"use strict";
22

33
module.exports = {
44
env: {
@@ -7,13 +7,13 @@ module.exports = {
77

88
rules: {
99
// disallow the use of alert, confirm, and prompt
10-
'no-alert': 'warn',
10+
"no-alert": "warn",
1111

1212
// Require the "use strict" pragma at the function level,
1313
// to avoid problems with loose scripts
1414
strict: [
15-
'error',
16-
'function',
15+
"error",
16+
"function",
1717
],
1818
}
1919
};

common-js.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
'use strict';
1+
"use strict";
22

33
module.exports = {
44
parserOptions: {
5-
sourceType: 'script',
5+
sourceType: "script",
66
ecmaFeatures: {
77
impliedStrict: false,
88
},
@@ -16,8 +16,8 @@ module.exports = {
1616
// Require the "use strict" pragma at the global level,
1717
// since CommonJS modules are wrapped in a function
1818
strict: [
19-
'error',
20-
'global',
19+
"error",
20+
"global",
2121
],
2222
}
2323
};

es5.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
'use strict';
1+
"use strict";
22

33
module.exports = {
44
env: {
55
es6: false,
66
},
77

8-
parser: 'espree',
8+
parser: "espree",
99

1010
parserOptions: {
1111
ecmaVersion: 5,
1212
},
1313

1414
rules: {
1515
// use `var`, not `let` or `const`
16-
'no-var': 'off',
16+
"no-var": "off",
1717

1818
// ES5 doesn't support method and property shorthand syntax for object literals
19-
'object-shorthand': 'off',
19+
"object-shorthand": "off",
2020

2121
// Don't recommend ES6 language features
22-
'prefer-arrow-callback': 'off',
23-
'prefer-spread': 'off',
24-
'prefer-template': 'off',
22+
"prefer-arrow-callback": "off",
23+
"prefer-spread": "off",
24+
"prefer-template": "off",
2525
}
2626
};

es6-modules.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
'use strict';
1+
"use strict";
22

33
module.exports = {
44
parserOptions: {
5-
sourceType: 'module',
5+
sourceType: "module",
66
ecmaFeatures: {
77
impliedStrict: true,
88
},
@@ -13,8 +13,8 @@ module.exports = {
1313
// in strict mode, and the pragma is illegal in combination with some
1414
// ES6 features (e.g. default values in function parameters)
1515
strict: [
16-
'error',
17-
'never',
16+
"error",
17+
"never",
1818
],
1919
}
2020
};

0 commit comments

Comments
 (0)