Skip to content

Commit dc516f4

Browse files
authored
feat: port rule react/no-access-state-in-setstate (#759)
1 parent 1b200c1 commit dc516f4

7 files changed

Lines changed: 1696 additions & 0 deletions

File tree

internal/plugins/react/all.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import (
1818
"github.com/web-infra-dev/rslint/internal/plugins/react/rules/jsx_uses_react"
1919
"github.com/web-infra-dev/rslint/internal/plugins/react/rules/jsx_uses_vars"
2020
"github.com/web-infra-dev/rslint/internal/plugins/react/rules/jsx_wrap_multilines"
21+
"github.com/web-infra-dev/rslint/internal/plugins/react/rules/no_access_state_in_setstate"
2122
"github.com/web-infra-dev/rslint/internal/plugins/react/rules/no_children_prop"
2223
"github.com/web-infra-dev/rslint/internal/plugins/react/rules/no_danger"
2324
"github.com/web-infra-dev/rslint/internal/plugins/react/rules/no_danger_with_children"
@@ -60,6 +61,7 @@ func GetAllRules() []rule.Rule {
6061
jsx_uses_react.JsxUsesReactRule,
6162
jsx_uses_vars.JsxUsesVarsRule,
6263
jsx_wrap_multilines.JsxWrapMultilinesRule,
64+
no_access_state_in_setstate.NoAccessStateInSetstateRule,
6365
no_children_prop.NoChildrenPropRule,
6466
no_danger.NoDangerRule,
6567
no_danger_with_children.NoDangerWithChildrenRule,

0 commit comments

Comments
 (0)