Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7ff6303

Browse files
committed
[guide] Use HTTPS for links to ESLint documentation
The result of a `s_http://eslint\.org_https://eslint\.org_g`. Avoids the HTTP 302s of the non-HTTPs URLs.
1 parent 2d4343a commit 7ff6303

File tree

13 files changed

+216
-216
lines changed

13 files changed

+216
-216
lines changed

README.md

Lines changed: 63 additions & 63 deletions
Large diffs are not rendered by default.

packages/eslint-config-airbnb-base/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ Lints ES5 and below. Requires `eslint` and `eslint-plugin-import`.
7575

7676
2. Add `"extends": "airbnb-base/legacy"` to your .eslintrc
7777

78-
See [Airbnb's overarching ESLint config](https://npmjs.com/eslint-config-airbnb), [Airbnb's Javascript styleguide](https://github.com/airbnb/javascript), and the [ESlint config docs](http://eslint.org/docs/user-guide/configuring#extending-configuration-files) for more information.
78+
See [Airbnb's overarching ESLint config](https://npmjs.com/eslint-config-airbnb), [Airbnb's Javascript styleguide](https://github.com/airbnb/javascript), and the [ESlint config docs](https://eslint.org/docs/user-guide/configuring#extending-configuration-files) for more information.
7979

8080
## Improving this config
8181

packages/eslint-config-airbnb-base/rules/best-practices.js

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module.exports = {
44
'accessor-pairs': 'off',
55

66
// enforces return statements in callbacks of array's methods
7-
// http://eslint.org/docs/rules/array-callback-return
7+
// https://eslint.org/docs/rules/array-callback-return
88
'array-callback-return': 'error',
99

1010
// treat var statements as if they were block scoped
@@ -14,7 +14,7 @@ module.exports = {
1414
complexity: ['off', 11],
1515

1616
// enforce that class methods use "this"
17-
// http://eslint.org/docs/rules/class-methods-use-this
17+
// https://eslint.org/docs/rules/class-methods-use-this
1818
'class-methods-use-this': ['error', {
1919
exceptMethods: [],
2020
}],
@@ -32,11 +32,11 @@ module.exports = {
3232
'dot-notation': ['error', { allowKeywords: true }],
3333

3434
// enforces consistent newlines before or after dots
35-
// http://eslint.org/docs/rules/dot-location
35+
// https://eslint.org/docs/rules/dot-location
3636
'dot-location': ['error', 'property'],
3737

3838
// require the use of === and !==
39-
// http://eslint.org/docs/rules/eqeqeq
39+
// https://eslint.org/docs/rules/eqeqeq
4040
eqeqeq: ['error', 'always', { null: 'ignore' }],
4141

4242
// make sure for-in loops have an if statement
@@ -49,19 +49,19 @@ module.exports = {
4949
'no-caller': 'error',
5050

5151
// disallow lexical declarations in case/default clauses
52-
// http://eslint.org/docs/rules/no-case-declarations.html
52+
// https://eslint.org/docs/rules/no-case-declarations.html
5353
'no-case-declarations': 'error',
5454

5555
// disallow division operators explicitly at beginning of regular expression
56-
// http://eslint.org/docs/rules/no-div-regex
56+
// https://eslint.org/docs/rules/no-div-regex
5757
'no-div-regex': 'off',
5858

5959
// disallow else after a return in an if
6060
// https://eslint.org/docs/rules/no-else-return
6161
'no-else-return': ['error', { allowElseIf: false }],
6262

6363
// disallow empty functions, except for standalone funcs/arrows
64-
// http://eslint.org/docs/rules/no-empty-function
64+
// https://eslint.org/docs/rules/no-empty-function
6565
'no-empty-function': ['error', {
6666
allow: [
6767
'arrowFunctions',
@@ -71,7 +71,7 @@ module.exports = {
7171
}],
7272

7373
// disallow empty destructuring patterns
74-
// http://eslint.org/docs/rules/no-empty-pattern
74+
// https://eslint.org/docs/rules/no-empty-pattern
7575
'no-empty-pattern': 'error',
7676

7777
// disallow comparisons to null without a type-checking operator
@@ -87,7 +87,7 @@ module.exports = {
8787
'no-extra-bind': 'error',
8888

8989
// disallow Unnecessary Labels
90-
// http://eslint.org/docs/rules/no-extra-label
90+
// https://eslint.org/docs/rules/no-extra-label
9191
'no-extra-label': 'error',
9292

9393
// disallow fallthrough of case statements
@@ -97,13 +97,13 @@ module.exports = {
9797
'no-floating-decimal': 'error',
9898

9999
// disallow reassignments of native objects or read-only globals
100-
// http://eslint.org/docs/rules/no-global-assign
100+
// https://eslint.org/docs/rules/no-global-assign
101101
'no-global-assign': ['error', { exceptions: [] }],
102102
// deprecated in favor of no-global-assign
103103
'no-native-reassign': 'off',
104104

105105
// disallow implicit type conversions
106-
// http://eslint.org/docs/rules/no-implicit-coercion
106+
// https://eslint.org/docs/rules/no-implicit-coercion
107107
'no-implicit-coercion': ['off', {
108108
boolean: false,
109109
number: true,
@@ -112,7 +112,7 @@ module.exports = {
112112
}],
113113

114114
// disallow var and named functions in global scope
115-
// http://eslint.org/docs/rules/no-implicit-globals
115+
// https://eslint.org/docs/rules/no-implicit-globals
116116
'no-implicit-globals': 'off',
117117

118118
// disallow use of eval()-like methods
@@ -134,7 +134,7 @@ module.exports = {
134134
'no-loop-func': 'error',
135135

136136
// disallow magic numbers
137-
// http://eslint.org/docs/rules/no-magic-numbers
137+
// https://eslint.org/docs/rules/no-magic-numbers
138138
'no-magic-numbers': ['off', {
139139
ignore: [],
140140
ignoreArrayIndexes: true,
@@ -168,7 +168,7 @@ module.exports = {
168168

169169
// disallow reassignment of function parameters
170170
// disallow parameter object manipulation except for specific exclusions
171-
// rule: http://eslint.org/docs/rules/no-param-reassign.html
171+
// rule: https://eslint.org/docs/rules/no-param-reassign.html
172172
'no-param-reassign': ['error', {
173173
props: true,
174174
ignorePropertyModificationsFor: [
@@ -190,7 +190,7 @@ module.exports = {
190190
'no-redeclare': 'error',
191191

192192
// disallow certain object properties
193-
// http://eslint.org/docs/rules/no-restricted-properties
193+
// https://eslint.org/docs/rules/no-restricted-properties
194194
'no-restricted-properties': ['error', {
195195
object: 'arguments',
196196
property: 'callee',
@@ -241,7 +241,7 @@ module.exports = {
241241
'no-script-url': 'error',
242242

243243
// disallow self assignment
244-
// http://eslint.org/docs/rules/no-self-assign
244+
// https://eslint.org/docs/rules/no-self-assign
245245
'no-self-assign': 'error',
246246

247247
// disallow comparisons where both sides are exactly the same
@@ -254,7 +254,7 @@ module.exports = {
254254
'no-throw-literal': 'error',
255255

256256
// disallow unmodified conditions of loops
257-
// http://eslint.org/docs/rules/no-unmodified-loop-condition
257+
// https://eslint.org/docs/rules/no-unmodified-loop-condition
258258
'no-unmodified-loop-condition': 'off',
259259

260260
// disallow usage of expressions in statement position
@@ -265,26 +265,26 @@ module.exports = {
265265
}],
266266

267267
// disallow unused labels
268-
// http://eslint.org/docs/rules/no-unused-labels
268+
// https://eslint.org/docs/rules/no-unused-labels
269269
'no-unused-labels': 'error',
270270

271271
// disallow unnecessary .call() and .apply()
272272
'no-useless-call': 'off',
273273

274274
// disallow useless string concatenation
275-
// http://eslint.org/docs/rules/no-useless-concat
275+
// https://eslint.org/docs/rules/no-useless-concat
276276
'no-useless-concat': 'error',
277277

278278
// disallow unnecessary string escaping
279-
// http://eslint.org/docs/rules/no-useless-escape
279+
// https://eslint.org/docs/rules/no-useless-escape
280280
'no-useless-escape': 'error',
281281

282282
// disallow redundant return; keywords
283-
// http://eslint.org/docs/rules/no-useless-return
283+
// https://eslint.org/docs/rules/no-useless-return
284284
'no-useless-return': 'error',
285285

286286
// disallow use of void operator
287-
// http://eslint.org/docs/rules/no-void
287+
// https://eslint.org/docs/rules/no-void
288288
'no-void': 'error',
289289

290290
// disallow usage of configurable warning terms in comments: e.g. todo
@@ -294,21 +294,21 @@ module.exports = {
294294
'no-with': 'error',
295295

296296
// require using Error objects as Promise rejection reasons
297-
// http://eslint.org/docs/rules/prefer-promise-reject-errors
297+
// https://eslint.org/docs/rules/prefer-promise-reject-errors
298298
'prefer-promise-reject-errors': ['error', { allowEmptyReject: true }],
299299

300300
// require use of the second argument for parseInt()
301301
radix: 'error',
302302

303303
// require `await` in `async function` (note: this is a horrible rule that should never be used)
304-
// http://eslint.org/docs/rules/require-await
304+
// https://eslint.org/docs/rules/require-await
305305
'require-await': 'off',
306306

307307
// requires to declare all vars on top of their containing scope
308308
'vars-on-top': 'error',
309309

310310
// require immediate function invocation to be wrapped in parentheses
311-
// http://eslint.org/docs/rules/wrap-iife.html
311+
// https://eslint.org/docs/rules/wrap-iife.html
312312
'wrap-iife': ['error', 'outside', { functionPrototypeMethods: false }],
313313

314314
// require or disallow Yoda conditions

packages/eslint-config-airbnb-base/rules/errors.js

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
module.exports = {
22
rules: {
33
// Enforce “for” loop update clause moving the counter in the right direction
4-
// http://eslint.org/docs/rules/for-direction
4+
// https://eslint.org/docs/rules/for-direction
55
'for-direction': 'error',
66

77
// Enforces that a return statement is present in property getters
8-
// http://eslint.org/docs/rules/getter-return
8+
// https://eslint.org/docs/rules/getter-return
99
'getter-return': ['error', { allowImplicit: true }],
1010

1111
// Disallow await inside of loops
12-
// http://eslint.org/docs/rules/no-await-in-loop
12+
// https://eslint.org/docs/rules/no-await-in-loop
1313
'no-await-in-loop': 'error',
1414

1515
// Disallow comparisons to negative zero
16-
// http://eslint.org/docs/rules/no-compare-neg-zero
16+
// https://eslint.org/docs/rules/no-compare-neg-zero
1717
'no-compare-neg-zero': 'error',
1818

1919
// disallow assignment in conditional expressions
@@ -50,11 +50,11 @@ module.exports = {
5050
'no-ex-assign': 'error',
5151

5252
// disallow double-negation boolean casts in a boolean context
53-
// http://eslint.org/docs/rules/no-extra-boolean-cast
53+
// https://eslint.org/docs/rules/no-extra-boolean-cast
5454
'no-extra-boolean-cast': 'error',
5555

5656
// disallow unnecessary parentheses
57-
// http://eslint.org/docs/rules/no-extra-parens
57+
// https://eslint.org/docs/rules/no-extra-parens
5858
'no-extra-parens': ['off', 'all', {
5959
conditionalAssign: true,
6060
nestedBinaryExpressions: false,
@@ -82,7 +82,7 @@ module.exports = {
8282
'no-obj-calls': 'error',
8383

8484
// disallow use of Object.prototypes builtins directly
85-
// http://eslint.org/docs/rules/no-prototype-builtins
85+
// https://eslint.org/docs/rules/no-prototype-builtins
8686
'no-prototype-builtins': 'error',
8787

8888
// disallow multiple spaces in a regular expression literal
@@ -92,22 +92,22 @@ module.exports = {
9292
'no-sparse-arrays': 'error',
9393

9494
// Disallow template literal placeholder syntax in regular strings
95-
// http://eslint.org/docs/rules/no-template-curly-in-string
95+
// https://eslint.org/docs/rules/no-template-curly-in-string
9696
'no-template-curly-in-string': 'error',
9797

9898
// Avoid code that looks like two expressions but is actually one
99-
// http://eslint.org/docs/rules/no-unexpected-multiline
99+
// https://eslint.org/docs/rules/no-unexpected-multiline
100100
'no-unexpected-multiline': 'error',
101101

102102
// disallow unreachable statements after a return, throw, continue, or break statement
103103
'no-unreachable': 'error',
104104

105105
// disallow return/throw/break/continue inside finally blocks
106-
// http://eslint.org/docs/rules/no-unsafe-finally
106+
// https://eslint.org/docs/rules/no-unsafe-finally
107107
'no-unsafe-finally': 'error',
108108

109109
// disallow negating the left operand of relational operators
110-
// http://eslint.org/docs/rules/no-unsafe-negation
110+
// https://eslint.org/docs/rules/no-unsafe-negation
111111
'no-unsafe-negation': 'error',
112112
// disallow negation of the left operand of an in expression
113113
// deprecated in favor of no-unsafe-negation
@@ -117,11 +117,11 @@ module.exports = {
117117
'use-isnan': 'error',
118118

119119
// ensure JSDoc comments are valid
120-
// http://eslint.org/docs/rules/valid-jsdoc
120+
// https://eslint.org/docs/rules/valid-jsdoc
121121
'valid-jsdoc': 'off',
122122

123123
// ensure that the results of typeof are compared against a valid string
124-
// http://eslint.org/docs/rules/valid-typeof
124+
// https://eslint.org/docs/rules/valid-typeof
125125
'valid-typeof': ['error', { requireStringLiterals: true }],
126126
}
127127
};

0 commit comments

Comments
 (0)