Skip to content

Commit 95b1980

Browse files
authored
chore: upgrade a few dev deps to latest (#472)
chore: re-apply prettier
1 parent 189f75c commit 95b1980

37 files changed

+185
-185
lines changed

docs/rules/report-message-format.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ module.exports = {
4040
context.report(
4141
node,
4242
'This will get reported, regardless of the value of the {{placeholder}}',
43-
{ placeholder: foo }
43+
{ placeholder: foo },
4444
);
4545
},
4646
};

eslint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module.exports = [
1717
'not-an-aardvark/node',
1818
'plugin:eslint-comments/recommended',
1919
'plugin:prettier/recommended',
20-
'plugin:unicorn/recommended'
20+
'plugin:unicorn/recommended',
2121
),
2222
pluginN.configs['flat/recommended'],
2323
{

lib/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const allRules = Object.fromEntries(
3939
.map((ruleName) => [
4040
ruleName,
4141
require(path.join(__dirname, 'rules', ruleName)),
42-
])
42+
]),
4343
);
4444

4545
const plugin = {
@@ -61,11 +61,11 @@ Object.assign(
6161
rules: Object.fromEntries(
6262
Object.keys(allRules)
6363
.filter((ruleName) => configFilters[configName](allRules[ruleName]))
64-
.map((ruleName) => [`${PLUGIN_NAME}/${ruleName}`, 'error'])
64+
.map((ruleName) => [`${PLUGIN_NAME}/${ruleName}`, 'error']),
6565
),
6666
},
6767
});
68-
}, {})
68+
}, {}),
6969
);
7070

7171
// flat configs
@@ -79,11 +79,11 @@ Object.assign(
7979
rules: Object.fromEntries(
8080
Object.keys(allRules)
8181
.filter((ruleName) => configFilters[configName](allRules[ruleName]))
82-
.map((ruleName) => [`${PLUGIN_NAME}/${ruleName}`, 'error'])
82+
.map((ruleName) => [`${PLUGIN_NAME}/${ruleName}`, 'error']),
8383
),
8484
},
8585
});
86-
}, {})
86+
}, {}),
8787
);
8888

8989
module.exports = plugin;

lib/rules/consistent-output.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ module.exports = {
4545
Program(ast) {
4646
utils.getTestInfo(context, ast).forEach((testRun) => {
4747
const readableCases = testRun.invalid.filter(
48-
(testCase) => testCase.type === 'ObjectExpression'
48+
(testCase) => testCase.type === 'ObjectExpression',
4949
);
5050
const casesWithoutOutput = readableCases.filter(
5151
(testCase) =>
52-
!testCase.properties.map(utils.getKeyName).includes('output')
52+
!testCase.properties.map(utils.getKeyName).includes('output'),
5353
);
5454

5555
if (

lib/rules/fixer-return.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ module.exports = {
5454
*/
5555
function ensureFunctionReturnedFix(
5656
node,
57-
loc = (node.id || node).loc.start
57+
loc = (node.id || node).loc.start,
5858
) {
5959
if (
6060
(node.generator && !funcInfo.hasYieldWithFixer) || // Generator function never yielded a fix
@@ -102,7 +102,7 @@ module.exports = {
102102
const sourceCode = context.sourceCode || context.getSourceCode(); // TODO: just use context.sourceCode when dropping eslint < v9
103103
contextIdentifiers = utils.getContextIdentifiers(
104104
sourceCode.scopeManager,
105-
ast
105+
ast,
106106
);
107107
},
108108

lib/rules/meta-property-ordering.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ module.exports = {
7878
const knownProps = props
7979
.filter((prop) => orderMap.has(getKeyName(prop)))
8080
.sort(
81-
(a, b) => orderMap.get(getKeyName(a)) - orderMap.get(getKeyName(b))
81+
(a, b) => orderMap.get(getKeyName(a)) - orderMap.get(getKeyName(b)),
8282
);
8383
const unknownProps = props.filter(
84-
(prop) => !orderMap.has(getKeyName(prop))
84+
(prop) => !orderMap.has(getKeyName(prop)),
8585
);
8686

8787
for (const violatingProp of violatingProps) {
@@ -96,7 +96,7 @@ module.exports = {
9696
return props.map((prop, k) => {
9797
return fixer.replaceText(
9898
prop,
99-
sourceCode.getText(expectedProps[k])
99+
sourceCode.getText(expectedProps[k]),
100100
);
101101
});
102102
},

lib/rules/no-deprecated-context-methods.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ module.exports = {
7070
contextId.parent.property.type === 'Identifier' &&
7171
Object.prototype.hasOwnProperty.call(
7272
DEPRECATED_PASSTHROUGHS,
73-
contextId.parent.property.name
74-
)
73+
contextId.parent.property.name,
74+
),
7575
)
7676
.forEach((contextId) =>
7777
context.report({
@@ -87,10 +87,10 @@ module.exports = {
8787
fixer.insertTextAfter(contextId, '.getSourceCode()'),
8888
fixer.replaceText(
8989
contextId.parent.property,
90-
DEPRECATED_PASSTHROUGHS[contextId.parent.property.name]
90+
DEPRECATED_PASSTHROUGHS[contextId.parent.property.name],
9191
),
9292
],
93-
})
93+
}),
9494
);
9595
},
9696
};

lib/rules/no-deprecated-report-api.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ module.exports = {
4141
Program(ast) {
4242
contextIdentifiers = utils.getContextIdentifiers(
4343
sourceCode.scopeManager,
44-
ast
44+
ast,
4545
);
4646
},
4747
CallExpression(node) {
@@ -70,9 +70,9 @@ module.exports = {
7070
[openingParen.range[1], closingParen.range[0]],
7171
`{${Object.keys(reportInfo)
7272
.map(
73-
(key) => `${key}: ${sourceCode.getText(reportInfo[key])}`
73+
(key) => `${key}: ${sourceCode.getText(reportInfo[key])}`,
7474
)
75-
.join(', ')}}`
75+
.join(', ')}}`,
7676
);
7777
},
7878
});

lib/rules/no-identical-tests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ module.exports = {
7171
[
7272
start.range[1],
7373
end.value === ',' ? end.range[1] : test.range[1],
74-
]
74+
],
7575
);
7676
},
7777
});

lib/rules/no-missing-message-ids.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ module.exports = {
6464
const reportMessagesAndDataArray =
6565
utils.collectReportViolationAndSuggestionData(reportInfo);
6666
for (const { messageId } of reportMessagesAndDataArray.filter(
67-
(obj) => obj.messageId
67+
(obj) => obj.messageId,
6868
)) {
6969
const values =
7070
messageId.type === 'Literal'
@@ -81,7 +81,7 @@ module.exports = {
8181
val.value,
8282
ruleInfo,
8383
scopeManager,
84-
scope
84+
scope,
8585
)
8686
)
8787
// Couldn't find this messageId in `meta.messages`.

0 commit comments

Comments
 (0)