update rule name
This commit is contained in:
committed by
Jacob Overgaard
parent
dcca874f2f
commit
3df85ff695
@@ -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?
|
||||
}
|
||||
|
||||
@@ -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_',
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -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'),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user