Skip to content

Commit

Permalink
feat(packages/eslint-plugin-sui): make warning
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosvillu committed Feb 7, 2024
1 parent 7e41dc7 commit c6ffa98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/eslint-plugin-sui/src/rules/factory-pattern.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const dedent = require('string-dedent')
/** @type {import('eslint').Rule.RuleModule} */
module.exports = {
meta: {
type: 'problem',
type: 'warning',
docs: {
description: 'ensure to define at least one factory function',
recommended: true,
Expand Down Expand Up @@ -54,7 +54,7 @@ module.exports = {
)

if (!hasStaticFactoryMethod) {
return context.report({
context.report({
node,
messageId: 'notFoundFactoryFunction'
})
Expand Down

0 comments on commit c6ffa98

Please sign in to comment.