Skip to content

Commit 1973e5c

Browse files
committed
Link to eslint.org instead of github where possible
In most cases we link to documentation on the eslint.org site instead of on GitHub. I found a couple of stragglers and decided to make things a little more consistent.
1 parent e3e6c9d commit 1973e5c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

packages/eslint-config-airbnb/rules/es6.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ module.exports = {
1818
// require parens in arrow function arguments
1919
'arrow-parens': 0,
2020
// require space before/after arrow function's arrow
21-
// https://github.com/eslint/eslint/blob/master/docs/rules/arrow-spacing.md
21+
// http://eslint.org/docs/rules/arrow-spacing
2222
'arrow-spacing': [2, { 'before': true, 'after': true }],
2323
// require trailing commas in multiline object literals
2424
'comma-dangle': [2, 'always-multiline'],
@@ -57,7 +57,7 @@ module.exports = {
5757
// http://eslint.org/docs/rules/no-useless-constructor
5858
'no-useless-constructor': 2,
5959
// require method and property shorthand syntax for object literals
60-
// https://github.com/eslint/eslint/blob/master/docs/rules/object-shorthand.md
60+
// http://eslint.org/docs/rules/object-shorthand
6161
'object-shorthand': [2, 'always'],
6262
// suggest using arrow functions as callbacks
6363
'prefer-arrow-callback': 2,

packages/eslint-config-airbnb/rules/style.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ module.exports = {
2424
// (variable names, property names etc.)
2525
'id-length': 0,
2626
// this option sets a specific tab width for your code
27-
// https://github.com/eslint/eslint/blob/master/docs/rules/indent.md
27+
// http://eslint.org/docs/rules/indent
2828
'indent': [2, 2, { 'SwitchCase': 1, 'VariableDeclarator': 1 }],
2929
// specify whether double or single quotes should be used in JSX attributes
3030
// http://eslint.org/docs/rules/jsx-quotes
@@ -46,7 +46,7 @@ module.exports = {
4646
// disallow mixed 'LF' and 'CRLF' as linebreaks
4747
'linebreak-style': 0,
4848
// specify the maximum length of a line in your program
49-
// https://github.com/eslint/eslint/blob/master/docs/rules/max-len.md
49+
// http://eslint.org/docs/rules/max-len
5050
'max-len': [2, 100, 2, {
5151
'ignoreUrls': true,
5252
'ignoreComments': false
@@ -125,7 +125,7 @@ module.exports = {
125125
// require or disallow space before blocks
126126
'space-before-blocks': 2,
127127
// require or disallow space before function opening parenthesis
128-
// https://github.com/eslint/eslint/blob/master/docs/rules/space-before-function-paren.md
128+
// http://eslint.org/docs/rules/space-before-function-paren
129129
'space-before-function-paren': [2, { 'anonymous': 'always', 'named': 'never' }],
130130
// require or disallow spaces inside parentheses
131131
'space-in-parens': [2, 'never'],

0 commit comments

Comments
 (0)