sbdchd / eslint-plugin-cake

:cake: Sweet rules for ESLint
MIT License
1 stars 0 forks source link

react-require-readonly-state-and-props #17

Open sbdchd opened 3 years ago

sbdchd commented 3 years ago

State updates should be done without mutating the current state.

should support

might be able to work off: https://github.com/typescript-eslint/typescript-eslint/blob/c7a95ab7efeff9155db801c93b7564b080c26e51/packages/eslint-plugin/src/rules/prefer-readonly-parameter-types.ts