Skip to content

Commit

Permalink
rename docs to documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker committed Oct 8, 2019
1 parent 462fa3f commit a3ae40e
Show file tree
Hide file tree
Showing 45 changed files with 90 additions and 90 deletions.
4 changes: 2 additions & 2 deletions rules/catch-error-name.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';
const astUtils = require('eslint-ast-utils');
const avoidCapture = require('./utils/avoid-capture');
const getDocumentsUrl = require('./utils/get-documents-url');
const getDocumentationUrl = require('./utils/get-documentation-url');

// Matches `someObj.then([FunctionExpression | ArrowFunctionExpression])`
function isLintablePromiseCatch(node) {
Expand Down Expand Up @@ -144,7 +144,7 @@ module.exports = {
meta: {
type: 'suggestion',
docs: {
url: getDocumentsUrl(__filename)
url: getDocumentationUrl(__filename)
},
fixable: 'code',
schema
Expand Down
4 changes: 2 additions & 2 deletions rules/consistent-function-scoping.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use strict';
const getDocumentsUrl = require('./utils/get-documents-url');
const getDocumentationUrl = require('./utils/get-documentation-url');

const MESSAGE_ID_ARROW = 'ArrowFunctionExpression';
const MESSAGE_ID_FUNCTION = 'FunctionDeclaration';
Expand Down Expand Up @@ -172,7 +172,7 @@ module.exports = {
meta: {
type: 'suggestion',
docs: {
url: getDocumentsUrl(__filename)
url: getDocumentationUrl(__filename)
},
messages: {
[MESSAGE_ID_ARROW]: 'Move arrow function to the outer scope.',
Expand Down
4 changes: 2 additions & 2 deletions rules/custom-error-definition.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';
const upperfirst = require('lodash.upperfirst');
const getDocumentsUrl = require('./utils/get-documents-url');
const getDocumentationUrl = require('./utils/get-documentation-url');

const MESSAGE_ID_INVALID_EXPORT = 'invalidExport';

Expand Down Expand Up @@ -178,7 +178,7 @@ module.exports = {
meta: {
type: 'problem',
docs: {
url: getDocumentsUrl(__filename)
url: getDocumentationUrl(__filename)
},
fixable: 'code',
messages: {
Expand Down
4 changes: 2 additions & 2 deletions rules/error-message.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use strict';
const getDocumentsUrl = require('./utils/get-documents-url');
const getDocumentationUrl = require('./utils/get-documentation-url');

const errorConstructors = new Set([
'Error',
Expand Down Expand Up @@ -94,7 +94,7 @@ module.exports = {
meta: {
type: 'problem',
docs: {
url: getDocumentsUrl(__filename)
url: getDocumentationUrl(__filename)
}
}
};
4 changes: 2 additions & 2 deletions rules/escape-case.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const {
parseRegExpLiteral
} = require('regexpp');

const getDocumentsUrl = require('./utils/get-documents-url');
const getDocumentationUrl = require('./utils/get-documentation-url');

const escapeWithLowercase = /((?:^|[^\\])(?:\\\\)*)\\(x[a-f\d]{2}|u[a-f\d]{4}|u{(?:[a-f\d]+)})/;
const escapePatternWithLowercase = /((?:^|[^\\])(?:\\\\)*)\\(x[a-f\d]{2}|u[a-f\d]{4}|u{(?:[a-f\d]+)}|c[a-z])/;
Expand Down Expand Up @@ -127,7 +127,7 @@ module.exports = {
meta: {
type: 'suggestion',
docs: {
url: getDocumentsUrl(__filename)
url: getDocumentationUrl(__filename)
},
fixable: 'code'
}
Expand Down
4 changes: 2 additions & 2 deletions rules/expiring-todo-comments.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const readPkgUp = require('read-pkg-up');
const semver = require('semver');
const ci = require('ci-info');
const baseRule = require('eslint/lib/rules/no-warning-comments');
const getDocumentsUrl = require('./utils/get-documents-url');
const getDocumentationUrl = require('./utils/get-documentation-url');

const MESSAGE_ID_AVOID_MULTIPLE_DATES = 'avoidMultipleDates';
const MESSAGE_ID_EXPIRED_TODO = 'expiredTodo';
Expand Down Expand Up @@ -467,7 +467,7 @@ module.exports = {
meta: {
type: 'suggestion',
docs: {
url: getDocumentsUrl(__filename)
url: getDocumentationUrl(__filename)
},
messages: {
[MESSAGE_ID_AVOID_MULTIPLE_DATES]:
Expand Down
4 changes: 2 additions & 2 deletions rules/explicit-length-check.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use strict';
const getDocumentsUrl = require('./utils/get-documents-url');
const getDocumentationUrl = require('./utils/get-documentation-url');

const operatorTypes = {
gt: ['>'],
Expand Down Expand Up @@ -164,7 +164,7 @@ module.exports = {
meta: {
type: 'problem',
docs: {
url: getDocumentsUrl(__filename)
url: getDocumentationUrl(__filename)
},
fixable: 'code',
schema
Expand Down
4 changes: 2 additions & 2 deletions rules/filename-case.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const camelCase = require('lodash.camelcase');
const kebabCase = require('lodash.kebabcase');
const snakeCase = require('lodash.snakecase');
const upperfirst = require('lodash.upperfirst');
const getDocumentsUrl = require('./utils/get-documents-url');
const getDocumentationUrl = require('./utils/get-documentation-url');
const cartesianProductSamples = require('./utils/cartesian-product-samples');

const pascalCase = string => upperfirst(camelCase(string));
Expand Down Expand Up @@ -233,7 +233,7 @@ module.exports = {
meta: {
type: 'suggestion',
docs: {
url: getDocumentsUrl(__filename)
url: getDocumentationUrl(__filename)
},
schema,
messages: {
Expand Down
4 changes: 2 additions & 2 deletions rules/import-index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use strict';
const getDocumentsUrl = require('./utils/get-documents-url');
const getDocumentationUrl = require('./utils/get-documentation-url');

const regexp = /^(@.*?\/.*?|[./]+?.*?)(?:\/(\.|(?:index(?:\.js)?))?)$/;
const isImportingIndex = value => regexp.test(value);
Expand Down Expand Up @@ -27,7 +27,7 @@ module.exports = {
meta: {
type: 'suggestion',
docs: {
url: getDocumentsUrl(__filename)
url: getDocumentationUrl(__filename)
},
fixable: 'code'
}
Expand Down
4 changes: 2 additions & 2 deletions rules/new-for-builtins.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use strict';
const getDocumentsUrl = require('./utils/get-documents-url');
const getDocumentationUrl = require('./utils/get-documentation-url');

const enforceNew = new Set([
'Object',
Expand Down Expand Up @@ -71,7 +71,7 @@ module.exports = {
meta: {
type: 'suggestion',
docs: {
url: getDocumentsUrl(__filename)
url: getDocumentationUrl(__filename)
},
fixable: 'code'
}
Expand Down
4 changes: 2 additions & 2 deletions rules/no-abusive-eslint-disable.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use strict';
const getDocumentsUrl = require('./utils/get-documents-url');
const getDocumentationUrl = require('./utils/get-documentation-url');

const disableRegex = /^eslint-disable(-next-line|-line)?($|(\s+(@[\w-]+\/(?:[\w-]+\/)?)?[\w-]+)?)/;

Expand Down Expand Up @@ -33,7 +33,7 @@ module.exports = {
meta: {
type: 'suggestion',
docs: {
url: getDocumentsUrl(__filename)
url: getDocumentationUrl(__filename)
}
}
};
4 changes: 2 additions & 2 deletions rules/no-array-instanceof.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use strict';
const getDocumentsUrl = require('./utils/get-documents-url');
const getDocumentationUrl = require('./utils/get-documentation-url');

const create = context => ({
BinaryExpression: node => {
Expand All @@ -21,7 +21,7 @@ module.exports = {
meta: {
type: 'suggestion',
docs: {
url: getDocumentsUrl(__filename)
url: getDocumentationUrl(__filename)
},
fixable: 'code'
}
Expand Down
4 changes: 2 additions & 2 deletions rules/no-console-spaces.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use strict';
const getDocumentsUrl = require('./utils/get-documents-url');
const getDocumentationUrl = require('./utils/get-documentation-url');

const getConsoleMethod = node => {
const methods = [
Expand Down Expand Up @@ -135,7 +135,7 @@ module.exports = {
meta: {
type: 'suggestion',
docs: {
url: getDocumentsUrl(__filename)
url: getDocumentationUrl(__filename)
},
fixable: 'code'
}
Expand Down
4 changes: 2 additions & 2 deletions rules/no-fn-reference-in-iterator.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use strict';
const getDocumentsUrl = require('./utils/get-documents-url');
const getDocumentationUrl = require('./utils/get-documentation-url');

const iteratorMethods = new Map([
['map', 1],
Expand Down Expand Up @@ -66,7 +66,7 @@ module.exports = {
meta: {
type: 'problem',
docs: {
url: getDocumentsUrl(__filename)
url: getDocumentationUrl(__filename)
},
fixable: 'code'
}
Expand Down
4 changes: 2 additions & 2 deletions rules/no-for-loop.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use strict';
const getDocumentsUrl = require('./utils/get-documents-url');
const getDocumentationUrl = require('./utils/get-documentation-url');

const defaultElementName = 'element';
const isLiteralValue = value => node => node && node.type === 'Literal' && node.value === value;
Expand Down Expand Up @@ -360,7 +360,7 @@ module.exports = {
meta: {
type: 'suggestion',
docs: {
url: getDocumentsUrl(__filename)
url: getDocumentationUrl(__filename)
},
fixable: 'code'
}
Expand Down
4 changes: 2 additions & 2 deletions rules/no-hex-escape.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use strict';
const getDocumentsUrl = require('./utils/get-documents-url');
const getDocumentationUrl = require('./utils/get-documentation-url');

function checkEscape(context, node, value) {
const fixedValue = typeof value === 'string' ? value.replace(/((?:^|[^\\])(?:\\\\)*)\\x/g, '$1\\u00') : value;
Expand Down Expand Up @@ -29,7 +29,7 @@ module.exports = {
meta: {
type: 'suggestion',
docs: {
url: getDocumentsUrl(__filename)
url: getDocumentationUrl(__filename)
},
fixable: 'code'
}
Expand Down
4 changes: 2 additions & 2 deletions rules/no-keyword-prefix.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const getDocumentsUrl = require('./utils/get-documents-url');
const getDocumentationUrl = require('./utils/get-documentation-url');

const MESSAGE_ID = 'noKeywordPrefix';

Expand Down Expand Up @@ -184,7 +184,7 @@ module.exports = {
meta: {
type: 'suggestion',
docs: {
url: getDocumentsUrl(__filename)
url: getDocumentationUrl(__filename)
},
fixable: 'code',
schema,
Expand Down
4 changes: 2 additions & 2 deletions rules/no-nested-ternary.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use strict';
const getDocumentsUrl = require('./utils/get-documents-url');
const getDocumentationUrl = require('./utils/get-documentation-url');

const isParethesized = (sourceCode, node) => {
const previousToken = sourceCode.getTokenBefore(node);
Expand Down Expand Up @@ -50,7 +50,7 @@ module.exports = {
meta: {
type: 'suggestion',
docs: {
url: getDocumentsUrl(__filename)
url: getDocumentationUrl(__filename)
},
fixable: 'code'
}
Expand Down
4 changes: 2 additions & 2 deletions rules/no-new-buffer.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use strict';
const getDocumentsUrl = require('./utils/get-documents-url');
const getDocumentationUrl = require('./utils/get-documentation-url');

const inferMethod = arguments_ => (arguments_.length > 0 && typeof arguments_[0].value === 'number') ? 'alloc' : 'from';

Expand All @@ -26,7 +26,7 @@ module.exports = {
meta: {
type: 'problem',
docs: {
url: getDocumentsUrl(__filename)
url: getDocumentationUrl(__filename)
},
fixable: 'code'
}
Expand Down
4 changes: 2 additions & 2 deletions rules/no-process-exit.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use strict';
const getDocumentsUrl = require('./utils/get-documents-url');
const getDocumentationUrl = require('./utils/get-documentation-url');

const create = context => {
const startsWithHashBang = context.getSourceCode().lines[0].indexOf('#!') === 0;
Expand Down Expand Up @@ -79,7 +79,7 @@ module.exports = {
meta: {
type: 'suggestion',
docs: {
url: getDocumentsUrl(__filename)
url: getDocumentationUrl(__filename)
}
}
};
4 changes: 2 additions & 2 deletions rules/no-unreadable-array-destructuring.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use strict';
const getDocumentsUrl = require('./utils/get-documents-url');
const getDocumentationUrl = require('./utils/get-documentation-url');

const isCommaFollowedWithComma = (element, index, array) => {
return element === null && array[index + 1] === null;
Expand Down Expand Up @@ -28,7 +28,7 @@ module.exports = {
meta: {
type: 'suggestion',
docs: {
url: getDocumentsUrl(__filename)
url: getDocumentationUrl(__filename)
}
}
};
4 changes: 2 additions & 2 deletions rules/no-unsafe-regex.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';
const safeRegex = require('safe-regex');
const getDocumentsUrl = require('./utils/get-documents-url');
const getDocumentationUrl = require('./utils/get-documentation-url');

const message = 'Unsafe regular expression.';

Expand Down Expand Up @@ -53,7 +53,7 @@ module.exports = {
meta: {
type: 'problem',
docs: {
url: getDocumentsUrl(__filename)
url: getDocumentationUrl(__filename)
}
}
};
4 changes: 2 additions & 2 deletions rules/no-unused-properties.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use strict';
const getDocumentsUrl = require('./utils/get-documents-url');
const getDocumentationUrl = require('./utils/get-documentation-url');

const getDeclaratorOrPropertyValue = declaratorOrProperty => {
return declaratorOrProperty.init || declaratorOrProperty.value;
Expand Down Expand Up @@ -234,7 +234,7 @@ module.exports = {
meta: {
type: 'suggestion',
docs: {
url: getDocumentsUrl(__filename)
url: getDocumentationUrl(__filename)
}
}
};
4 changes: 2 additions & 2 deletions rules/no-zero-fractions.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use strict';
const getDocumentsUrl = require('./utils/get-documents-url');
const getDocumentationUrl = require('./utils/get-documentation-url');

const MESSAGE_ZERO_FRACTION = 'Don\'t use a zero fraction in the number.';
const MESSAGE_DANGLING_DOT = 'Don\'t use a dangling dot in the number.';
Expand Down Expand Up @@ -48,7 +48,7 @@ module.exports = {
meta: {
type: 'suggestion',
docs: {
url: getDocumentsUrl(__filename)
url: getDocumentationUrl(__filename)
},
fixable: 'code'
}
Expand Down
Loading

0 comments on commit a3ae40e

Please sign in to comment.