diff --git a/lib/rules/indent-legacy.js b/lib/rules/indent-legacy.js index 50010d3f7ac..a26ee87b130 100644 --- a/lib/rules/indent-legacy.js +++ b/lib/rules/indent-legacy.js @@ -954,7 +954,7 @@ module.exports = { } /** - * Checks wether a return statement is wrapped in () + * Checks whether a return statement is wrapped in () * @param {ASTNode} node node to examine * @returns {boolean} the result */ diff --git a/lib/rules/no-loss-of-precision.js b/lib/rules/no-loss-of-precision.js index 9e2811809f6..2d0c6184220 100644 --- a/lib/rules/no-loss-of-precision.js +++ b/lib/rules/no-loss-of-precision.js @@ -105,9 +105,9 @@ module.exports = { } /** - * Converts an integer to to an object containing the the integer's coefficient and order of magnitude + * Converts an integer to to an object containing the integer's coefficient and order of magnitude * @param {string} stringInteger the string representation of the integer being converted - * @returns {Object} the object containing the the integer's coefficient and order of magnitude + * @returns {Object} the object containing the integer's coefficient and order of magnitude */ function normalizeInteger(stringInteger) { const significantDigits = removeTrailingZeros(removeLeadingZeros(stringInteger)); @@ -120,9 +120,9 @@ module.exports = { /** * - * Converts a float to to an object containing the the floats's coefficient and order of magnitude + * Converts a float to to an object containing the floats's coefficient and order of magnitude * @param {string} stringFloat the string representation of the float being converted - * @returns {Object} the object containing the the integer's coefficient and order of magnitude + * @returns {Object} the object containing the integer's coefficient and order of magnitude */ function normalizeFloat(stringFloat) { const trimmedFloat = removeLeadingZeros(stringFloat); diff --git a/lib/rules/prefer-destructuring.js b/lib/rules/prefer-destructuring.js index 413f7272cc1..f82bb75c122 100644 --- a/lib/rules/prefer-destructuring.js +++ b/lib/rules/prefer-destructuring.js @@ -168,7 +168,7 @@ module.exports = { * Assignment expression is not fixed. * Array destructuring is not fixed. * Renamed property is not fixed. - * @param {ASTNode} node the the node to evaluate + * @param {ASTNode} node the node to evaluate * @returns {boolean} whether or not the node should be fixed */ function shouldFix(node) { diff --git a/lib/rules/use-isnan.js b/lib/rules/use-isnan.js index 53ffeb7e6d1..0c7e888c976 100644 --- a/lib/rules/use-isnan.js +++ b/lib/rules/use-isnan.js @@ -101,7 +101,7 @@ module.exports = { } /** - * Checks the the given `CallExpression` node for `.indexOf(NaN)` and `.lastIndexOf(NaN)`. + * Checks the given `CallExpression` node for `.indexOf(NaN)` and `.lastIndexOf(NaN)`. * @param {ASTNode} node The node to check. * @returns {void} */ diff --git a/tests/fixtures/config-extends/error.json b/tests/fixtures/config-extends/error.json index c39795086e7..8b9a039b2e6 100644 --- a/tests/fixtures/config-extends/error.json +++ b/tests/fixtures/config-extends/error.json @@ -1,3 +1,3 @@ { - "extends": "./non-existant.json" + "extends": "./non-existent.json" } diff --git a/tests/lib/rules/indent.js b/tests/lib/rules/indent.js index e7ad6074c49..02517ffaeeb 100644 --- a/tests/lib/rules/indent.js +++ b/tests/lib/rules/indent.js @@ -4145,7 +4145,7 @@ ruleTester.run("indent", rule, { //---------------------------------------------------------------------- // JSX tests // https://github.com/eslint/eslint/issues/8425 - // Some of the following tests are adapted from the the tests in eslint-plugin-react. + // Some of the following tests are adapted from the tests in eslint-plugin-react. // License: https://github.com/yannickcr/eslint-plugin-react/blob/7ca9841f22d599f447a27ef5b2a97def9229d6c8/LICENSE //---------------------------------------------------------------------- @@ -9845,7 +9845,7 @@ ruleTester.run("indent", rule, { //---------------------------------------------------------------------- // JSX tests - // Some of the following tests are adapted from the the tests in eslint-plugin-react. + // Some of the following tests are adapted from the tests in eslint-plugin-react. // License: https://github.com/yannickcr/eslint-plugin-react/blob/7ca9841f22d599f447a27ef5b2a97def9229d6c8/LICENSE //---------------------------------------------------------------------- diff --git a/tests/lib/rules/no-restricted-exports.js b/tests/lib/rules/no-restricted-exports.js index 31458f15fc1..ac0602a25b2 100644 --- a/tests/lib/rules/no-restricted-exports.js +++ b/tests/lib/rules/no-restricted-exports.js @@ -58,7 +58,7 @@ ruleTester.run("no-restricted-exports", rule, { { code: "export { a } from 'foo';", options: [{ restrictedNamedExports: ["x"] }] }, { code: "export { b as a } from 'foo';", options: [{ restrictedNamedExports: ["x"] }] }, - // does not mistakenly disallow non-exported identifers that appear in named export declarations + // does not mistakenly disallow non-exported identifiers that appear in named export declarations { code: "export var b = a;", options: [{ restrictedNamedExports: ["a"] }] }, { code: "export let [b = a] = [];", options: [{ restrictedNamedExports: ["a"] }] }, { code: "export const [b] = [a];", options: [{ restrictedNamedExports: ["a"] }] },