Skip to content

Commit 238cd78

Browse files
committed
refactor: modify the typo
1 parent 5b17f8e commit 238cd78

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/rules/filename-naming-convention.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ module.exports = {
3333
recommended: false,
3434
url: null, // TODO: URL to the documentation page for this rule
3535
},
36-
fixable: null, // Or `code` or `whitespace`
36+
fixable: null,
3737
schema: [
3838
{
3939
additionalProperties: {
@@ -47,15 +47,15 @@ module.exports = {
4747
return {
4848
Program: (node) => {
4949
const rules = context.options[0];
50-
const invalidPatter = checkNamingConfig(rules);
50+
const invalidPattern = checkNamingConfig(rules);
5151

52-
if (invalidPatter) {
52+
if (invalidPattern) {
5353
context.report({
5454
node,
5555
message:
56-
'There is an unsupported naming pattern "{{invalidPatter}}", please check it.',
56+
'There is an unsupported naming style "{{invalidPattern}}", please check it.',
5757
data: {
58-
invalidPatter,
58+
invalidPattern,
5959
},
6060
});
6161
return;

0 commit comments

Comments
 (0)