update rule name

This commit is contained in:
Mads Rasmussen
2023-11-19 12:51:53 +01:00
committed by Jacob Overgaard
parent dcca874f2f
commit 3df85ff695
3 changed files with 4 additions and 4 deletions

View File

@@ -51,7 +51,7 @@
"exceptions": ["@umbraco-cms", "@open-wc/testing", "@storybook", "msw", "."]
}
],
"local-rules/prefix-exported-constants": ["error",
"local-rules/exported-string-constant-naming": ["error",
{
"excludedFileNames": ["umbraco-package", "input-tiny-mce.defaults"] // TODO: what to do about the tiny mce defaults?
}

View File

@@ -3,7 +3,7 @@ module.exports = {
type: 'problem',
docs: {
description:
'Ensure all exported constants should be in uppercase with words separated by underscores and prefixed with UMB_',
'Ensure all exported string constants should be in uppercase with words separated by underscores and prefixed with UMB_',
},
},
create: function (context) {
@@ -28,7 +28,7 @@ module.exports = {
context.report({
node: id,
message:
'Exported constant should be in uppercase with words separated by underscores and prefixed with UMB_',
'Exported string constant should be in uppercase with words separated by underscores and prefixed with UMB_',
});
}
}

View File

@@ -18,5 +18,5 @@ module.exports = {
'prefer-import-aliases': preferImportAliasesRule,
'prefer-static-styles-last': preferStaticStylesLastRule,
'umb-class-prefix': umbClassPrefixRule,
'prefix-exported-constants': require('./devops/eslint/rules/prefix-exported-const.cjs'),
'exported-string-constant-naming': require('./devops/eslint/rules/exported-string-constant-naming.cjs'),
};