Skip to content

Commit

Permalink
Remove useless "recommended" properties (#2355)
Browse files Browse the repository at this point in the history
  • Loading branch information
DEVTomatoCake committed May 11, 2024
1 parent 175ea04 commit d2df181
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
4 changes: 0 additions & 4 deletions rules/prefer-array-flat.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ const arrayFlatMap = {
},
getArrayNode: node => node.callee.object,
description: 'Array#flatMap()',
recommended: true,
};

// `array.reduce((a, b) => a.concat(b), [])`
Expand Down Expand Up @@ -100,7 +99,6 @@ const arrayReduce = {
},
getArrayNode: node => node.callee.object,
description: 'Array#reduce()',
recommended: true,
};

// `[].concat(maybeArray)`
Expand All @@ -121,7 +119,6 @@ const emptyArrayConcat = {
return argumentNode.type === 'SpreadElement' ? argumentNode.argument : argumentNode;
},
description: '[].concat()',
recommended: true,
shouldSwitchToArray: node => node.arguments[0].type !== 'SpreadElement',
};

Expand Down Expand Up @@ -157,7 +154,6 @@ const arrayPrototypeConcat = {
return argumentNode.type === 'SpreadElement' ? argumentNode.argument : argumentNode;
},
description: 'Array.prototype.concat()',
recommended: true,
shouldSwitchToArray: node => node.arguments[1].type !== 'SpreadElement' && node.callee.property.name === 'call',
};

Expand Down
1 change: 0 additions & 1 deletion rules/prefer-modern-math-apis.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ const create = context => {
data: {
replacement: `Math.${replacementMethod}(…)`,
description: 'Math.sqrt(…)',
recommended: true,
},
* fix(fixer) {
const {sourceCode} = context;
Expand Down
1 change: 0 additions & 1 deletion rules/prefer-structured-clone.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ const create = context => {
messageId: MESSAGE_ID_ERROR,
data: {
description: 'JSON.parse(JSON.stringify(…))',
recommended: true,
},
suggest: [
{
Expand Down

0 comments on commit d2df181

Please sign in to comment.