├── .editorconfig ├── .gitattributes ├── .github ├── FUNDING.yml ├── ISSUE_TEMPLATE │ ├── bug_report.yml │ └── feature_request.yml └── workflows │ └── build_test_publish.yml ├── .gitignore ├── .prettierignore ├── .prettierrc ├── .yarn └── releases │ └── yarn-4.6.0.cjs ├── .yarnrc.yml ├── CHANGELOG.md ├── LICENSE ├── README.md ├── eslint.config.js ├── package.json ├── src ├── index.cjs ├── index.js ├── rules │ ├── no-adjust-state-on-prop-change.js │ ├── no-chain-state-updates.js │ ├── no-derived-state.js │ ├── no-empty-effect.js │ ├── no-event-handler.js │ ├── no-initialize-state.js │ ├── no-manage-parent.js │ ├── no-pass-data-to-parent.js │ ├── no-pass-live-state-to-parent.js │ ├── no-pass-ref-to-parent.js │ └── no-reset-all-state-on-prop-change.js └── util │ └── ast.js ├── test ├── config.test.cjs ├── config.test.js ├── no-adjust-state-on-prop-change.test.js ├── no-chain-state-updates.test.js ├── no-derived-state.test.js ├── no-empty-effect.test.js ├── no-event-handler.test.js ├── no-initialize-state.test.js ├── no-manage-parent.test.js ├── no-pass-data-to-parent.test.js ├── no-pass-live-state-to-parent.test.js ├── no-pass-ref-to-parent.test.js ├── no-reset-all-state-on-prop-change.test.js ├── real-world.test.js ├── rule-tester.js └── syntax.test.js ├── types ├── index.d.cts └── index.d.ts └── yarn.lock /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NickvanDyke/eslint-plugin-react-you-might-not-need-an-effect/HEAD/.editorconfig -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NickvanDyke/eslint-plugin-react-you-might-not-need-an-effect/HEAD/.gitattributes -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: NickvanDyke 2 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NickvanDyke/eslint-plugin-react-you-might-not-need-an-effect/HEAD/.github/ISSUE_TEMPLATE/bug_report.yml -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NickvanDyke/eslint-plugin-react-you-might-not-need-an-effect/HEAD/.github/ISSUE_TEMPLATE/feature_request.yml -------------------------------------------------------------------------------- /.github/workflows/build_test_publish.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NickvanDyke/eslint-plugin-react-you-might-not-need-an-effect/HEAD/.github/workflows/build_test_publish.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NickvanDyke/eslint-plugin-react-you-might-not-need-an-effect/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | README.md 2 | .github 3 | .yarn 4 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /.yarn/releases/yarn-4.6.0.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NickvanDyke/eslint-plugin-react-you-might-not-need-an-effect/HEAD/.yarn/releases/yarn-4.6.0.cjs -------------------------------------------------------------------------------- /.yarnrc.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NickvanDyke/eslint-plugin-react-you-might-not-need-an-effect/HEAD/.yarnrc.yml -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NickvanDyke/eslint-plugin-react-you-might-not-need-an-effect/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NickvanDyke/eslint-plugin-react-you-might-not-need-an-effect/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NickvanDyke/eslint-plugin-react-you-might-not-need-an-effect/HEAD/README.md -------------------------------------------------------------------------------- /eslint.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NickvanDyke/eslint-plugin-react-you-might-not-need-an-effect/HEAD/eslint.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NickvanDyke/eslint-plugin-react-you-might-not-need-an-effect/HEAD/package.json -------------------------------------------------------------------------------- /src/index.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NickvanDyke/eslint-plugin-react-you-might-not-need-an-effect/HEAD/src/index.cjs -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NickvanDyke/eslint-plugin-react-you-might-not-need-an-effect/HEAD/src/index.js -------------------------------------------------------------------------------- /src/rules/no-adjust-state-on-prop-change.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NickvanDyke/eslint-plugin-react-you-might-not-need-an-effect/HEAD/src/rules/no-adjust-state-on-prop-change.js -------------------------------------------------------------------------------- /src/rules/no-chain-state-updates.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NickvanDyke/eslint-plugin-react-you-might-not-need-an-effect/HEAD/src/rules/no-chain-state-updates.js -------------------------------------------------------------------------------- /src/rules/no-derived-state.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NickvanDyke/eslint-plugin-react-you-might-not-need-an-effect/HEAD/src/rules/no-derived-state.js -------------------------------------------------------------------------------- /src/rules/no-empty-effect.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NickvanDyke/eslint-plugin-react-you-might-not-need-an-effect/HEAD/src/rules/no-empty-effect.js -------------------------------------------------------------------------------- /src/rules/no-event-handler.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NickvanDyke/eslint-plugin-react-you-might-not-need-an-effect/HEAD/src/rules/no-event-handler.js -------------------------------------------------------------------------------- /src/rules/no-initialize-state.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NickvanDyke/eslint-plugin-react-you-might-not-need-an-effect/HEAD/src/rules/no-initialize-state.js -------------------------------------------------------------------------------- /src/rules/no-manage-parent.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NickvanDyke/eslint-plugin-react-you-might-not-need-an-effect/HEAD/src/rules/no-manage-parent.js -------------------------------------------------------------------------------- /src/rules/no-pass-data-to-parent.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NickvanDyke/eslint-plugin-react-you-might-not-need-an-effect/HEAD/src/rules/no-pass-data-to-parent.js -------------------------------------------------------------------------------- /src/rules/no-pass-live-state-to-parent.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NickvanDyke/eslint-plugin-react-you-might-not-need-an-effect/HEAD/src/rules/no-pass-live-state-to-parent.js -------------------------------------------------------------------------------- /src/rules/no-pass-ref-to-parent.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NickvanDyke/eslint-plugin-react-you-might-not-need-an-effect/HEAD/src/rules/no-pass-ref-to-parent.js -------------------------------------------------------------------------------- /src/rules/no-reset-all-state-on-prop-change.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NickvanDyke/eslint-plugin-react-you-might-not-need-an-effect/HEAD/src/rules/no-reset-all-state-on-prop-change.js -------------------------------------------------------------------------------- /src/util/ast.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NickvanDyke/eslint-plugin-react-you-might-not-need-an-effect/HEAD/src/util/ast.js -------------------------------------------------------------------------------- /test/config.test.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NickvanDyke/eslint-plugin-react-you-might-not-need-an-effect/HEAD/test/config.test.cjs -------------------------------------------------------------------------------- /test/config.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NickvanDyke/eslint-plugin-react-you-might-not-need-an-effect/HEAD/test/config.test.js -------------------------------------------------------------------------------- /test/no-adjust-state-on-prop-change.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NickvanDyke/eslint-plugin-react-you-might-not-need-an-effect/HEAD/test/no-adjust-state-on-prop-change.test.js -------------------------------------------------------------------------------- /test/no-chain-state-updates.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NickvanDyke/eslint-plugin-react-you-might-not-need-an-effect/HEAD/test/no-chain-state-updates.test.js -------------------------------------------------------------------------------- /test/no-derived-state.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NickvanDyke/eslint-plugin-react-you-might-not-need-an-effect/HEAD/test/no-derived-state.test.js -------------------------------------------------------------------------------- /test/no-empty-effect.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NickvanDyke/eslint-plugin-react-you-might-not-need-an-effect/HEAD/test/no-empty-effect.test.js -------------------------------------------------------------------------------- /test/no-event-handler.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NickvanDyke/eslint-plugin-react-you-might-not-need-an-effect/HEAD/test/no-event-handler.test.js -------------------------------------------------------------------------------- /test/no-initialize-state.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NickvanDyke/eslint-plugin-react-you-might-not-need-an-effect/HEAD/test/no-initialize-state.test.js -------------------------------------------------------------------------------- /test/no-manage-parent.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NickvanDyke/eslint-plugin-react-you-might-not-need-an-effect/HEAD/test/no-manage-parent.test.js -------------------------------------------------------------------------------- /test/no-pass-data-to-parent.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NickvanDyke/eslint-plugin-react-you-might-not-need-an-effect/HEAD/test/no-pass-data-to-parent.test.js -------------------------------------------------------------------------------- /test/no-pass-live-state-to-parent.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NickvanDyke/eslint-plugin-react-you-might-not-need-an-effect/HEAD/test/no-pass-live-state-to-parent.test.js -------------------------------------------------------------------------------- /test/no-pass-ref-to-parent.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NickvanDyke/eslint-plugin-react-you-might-not-need-an-effect/HEAD/test/no-pass-ref-to-parent.test.js -------------------------------------------------------------------------------- /test/no-reset-all-state-on-prop-change.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NickvanDyke/eslint-plugin-react-you-might-not-need-an-effect/HEAD/test/no-reset-all-state-on-prop-change.test.js -------------------------------------------------------------------------------- /test/real-world.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NickvanDyke/eslint-plugin-react-you-might-not-need-an-effect/HEAD/test/real-world.test.js -------------------------------------------------------------------------------- /test/rule-tester.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NickvanDyke/eslint-plugin-react-you-might-not-need-an-effect/HEAD/test/rule-tester.js -------------------------------------------------------------------------------- /test/syntax.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NickvanDyke/eslint-plugin-react-you-might-not-need-an-effect/HEAD/test/syntax.test.js -------------------------------------------------------------------------------- /types/index.d.cts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NickvanDyke/eslint-plugin-react-you-might-not-need-an-effect/HEAD/types/index.d.cts -------------------------------------------------------------------------------- /types/index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NickvanDyke/eslint-plugin-react-you-might-not-need-an-effect/HEAD/types/index.d.ts -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NickvanDyke/eslint-plugin-react-you-might-not-need-an-effect/HEAD/yarn.lock --------------------------------------------------------------------------------