Skip to content

Commit a29fb08

Browse files
committed
chore: minor fixes
1 parent 9e6acc0 commit a29fb08

File tree

1 file changed

+2
-2
lines changed
  • packages/plugins/eslint-plugin-react-naming-convention/src/rules

1 file changed

+2
-2
lines changed

packages/plugins/eslint-plugin-react-naming-convention/src/rules/use-state.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ export default createRule<[], MessageID>({
2323
[Symbol.for("rule_features")]: RULE_FEATURES,
2424
},
2525
messages: {
26-
invalidSetterName:
27-
"The setter should be named 'set' followed by the capitalized state variable name, e.g., 'setState' for 'state'.",
2826
invalidAssignment:
2927
"useState should be destructured into a value and setter pair, e.g., const [state, setState] = useState(...).",
28+
invalidSetterName:
29+
"The setter should be named 'set' followed by the capitalized state variable name, e.g., 'setState' for 'state'.",
3030
},
3131
schema: [],
3232
},

0 commit comments

Comments
 (0)