Bump packages to fix linter
This commit is contained in:
parent
ed9506bbaf
commit
0a11e3fdd9
6063 changed files with 378752 additions and 306784 deletions
6
node_modules/eslint/lib/rules/no-multi-spaces.js
generated
vendored
6
node_modules/eslint/lib/rules/no-multi-spaces.js
generated
vendored
|
|
@ -11,13 +11,13 @@ const astUtils = require("./utils/ast-utils");
|
|||
// Rule Definition
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
/** @type {import('../shared/types').Rule} */
|
||||
module.exports = {
|
||||
meta: {
|
||||
type: "layout",
|
||||
|
||||
docs: {
|
||||
description: "disallow multiple spaces",
|
||||
category: "Best Practices",
|
||||
description: "Disallow multiple spaces",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/no-multi-spaces"
|
||||
},
|
||||
|
|
@ -56,7 +56,7 @@ module.exports = {
|
|||
const options = context.options[0] || {};
|
||||
const ignoreEOLComments = options.ignoreEOLComments;
|
||||
const exceptions = Object.assign({ Property: true }, options.exceptions);
|
||||
const hasExceptions = Object.keys(exceptions).filter(key => exceptions[key]).length > 0;
|
||||
const hasExceptions = Object.keys(exceptions).some(key => exceptions[key]);
|
||||
|
||||
/**
|
||||
* Formats value of given comment token for error message by truncating its length.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue