├── .all-contributorsrc ├── .eslintignore ├── .eslintrc.js ├── .github ├── dependabot.yml └── workflows │ ├── main.yaml │ └── release.yaml ├── .gitignore ├── .husky ├── .gitignore ├── commit-msg └── pre-commit ├── .prettierignore ├── .prettierrc.js ├── .vscode └── settings.json ├── CHANGELOG.md ├── LICENSE ├── README.md ├── commitlint.config.js ├── docs └── rules │ ├── no-mix-controlled-with-uncontrolled.md │ ├── no-only-value-prop.md │ ├── styled-no-mix-controlled-with-uncontrolled.md │ └── styled-no-only-value-prop.md ├── jest.config.js ├── package.json ├── release.config.js ├── scripts ├── add-rule.ts ├── lib │ ├── plugin-id.ts │ ├── rules.ts │ ├── update-docs-headers.ts │ ├── update-lib-configs-recommended.ts │ ├── update-lib-index.ts │ └── update-readme.ts └── update.ts ├── src ├── configs │ └── recommended.ts ├── index.ts ├── rules │ ├── no-mix-controlled-with-uncontrolled.ts │ ├── no-only-value-prop.ts │ ├── styled-no-mix-controlled-with-uncontrolled.ts │ └── styled-no-only-value-prop.ts ├── types │ └── jsx-ast-utils.d.ts └── utils │ ├── capitalize.ts │ ├── collectStyledComponentData.ts │ ├── docsUrl.ts │ ├── getAsPropValue.ts │ ├── getTagName.ts │ ├── isCheckboxOrRadioInput.ts │ ├── isFormFieldTags.ts │ ├── isHiddenInput.ts │ ├── jsxElementsParser.ts │ ├── makeRule.ts │ ├── propertyToJSXAttribute.ts │ ├── styledJSX.ts │ └── types.ts ├── tests ├── rules │ ├── no-mix-controlled-with-uncontrolled.ts │ ├── no-only-value-prop.ts │ ├── styled-no-mix-controlled-with-uncontrolled.ts │ └── styled-no-only-value-prop.ts └── utils │ └── generateCode.ts └── tsconfig.json /.all-contributorsrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kotarella1110/eslint-plugin-react-form-fields/HEAD/.all-contributorsrc -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | !.*.js 2 | /node_modules 3 | /dist -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kotarella1110/eslint-plugin-react-form-fields/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kotarella1110/eslint-plugin-react-form-fields/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/workflows/main.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kotarella1110/eslint-plugin-react-form-fields/HEAD/.github/workflows/main.yaml -------------------------------------------------------------------------------- /.github/workflows/release.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kotarella1110/eslint-plugin-react-form-fields/HEAD/.github/workflows/release.yaml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules 2 | /dist 3 | -------------------------------------------------------------------------------- /.husky/.gitignore: -------------------------------------------------------------------------------- 1 | _ 2 | -------------------------------------------------------------------------------- /.husky/commit-msg: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | . "$(dirname "$0")/_/husky.sh" 3 | 4 | npx commitlint --edit $1 5 | -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kotarella1110/eslint-plugin-react-form-fields/HEAD/.husky/pre-commit -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | !.*.js 2 | /node_modules 3 | /dist -------------------------------------------------------------------------------- /.prettierrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kotarella1110/eslint-plugin-react-form-fields/HEAD/.prettierrc.js -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kotarella1110/eslint-plugin-react-form-fields/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kotarella1110/eslint-plugin-react-form-fields/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kotarella1110/eslint-plugin-react-form-fields/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kotarella1110/eslint-plugin-react-form-fields/HEAD/README.md -------------------------------------------------------------------------------- /commitlint.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kotarella1110/eslint-plugin-react-form-fields/HEAD/commitlint.config.js -------------------------------------------------------------------------------- /docs/rules/no-mix-controlled-with-uncontrolled.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kotarella1110/eslint-plugin-react-form-fields/HEAD/docs/rules/no-mix-controlled-with-uncontrolled.md -------------------------------------------------------------------------------- /docs/rules/no-only-value-prop.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kotarella1110/eslint-plugin-react-form-fields/HEAD/docs/rules/no-only-value-prop.md -------------------------------------------------------------------------------- /docs/rules/styled-no-mix-controlled-with-uncontrolled.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kotarella1110/eslint-plugin-react-form-fields/HEAD/docs/rules/styled-no-mix-controlled-with-uncontrolled.md -------------------------------------------------------------------------------- /docs/rules/styled-no-only-value-prop.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kotarella1110/eslint-plugin-react-form-fields/HEAD/docs/rules/styled-no-only-value-prop.md -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kotarella1110/eslint-plugin-react-form-fields/HEAD/jest.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kotarella1110/eslint-plugin-react-form-fields/HEAD/package.json -------------------------------------------------------------------------------- /release.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kotarella1110/eslint-plugin-react-form-fields/HEAD/release.config.js -------------------------------------------------------------------------------- /scripts/add-rule.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kotarella1110/eslint-plugin-react-form-fields/HEAD/scripts/add-rule.ts -------------------------------------------------------------------------------- /scripts/lib/plugin-id.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kotarella1110/eslint-plugin-react-form-fields/HEAD/scripts/lib/plugin-id.ts -------------------------------------------------------------------------------- /scripts/lib/rules.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kotarella1110/eslint-plugin-react-form-fields/HEAD/scripts/lib/rules.ts -------------------------------------------------------------------------------- /scripts/lib/update-docs-headers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kotarella1110/eslint-plugin-react-form-fields/HEAD/scripts/lib/update-docs-headers.ts -------------------------------------------------------------------------------- /scripts/lib/update-lib-configs-recommended.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kotarella1110/eslint-plugin-react-form-fields/HEAD/scripts/lib/update-lib-configs-recommended.ts -------------------------------------------------------------------------------- /scripts/lib/update-lib-index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kotarella1110/eslint-plugin-react-form-fields/HEAD/scripts/lib/update-lib-index.ts -------------------------------------------------------------------------------- /scripts/lib/update-readme.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kotarella1110/eslint-plugin-react-form-fields/HEAD/scripts/lib/update-readme.ts -------------------------------------------------------------------------------- /scripts/update.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kotarella1110/eslint-plugin-react-form-fields/HEAD/scripts/update.ts -------------------------------------------------------------------------------- /src/configs/recommended.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kotarella1110/eslint-plugin-react-form-fields/HEAD/src/configs/recommended.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kotarella1110/eslint-plugin-react-form-fields/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/rules/no-mix-controlled-with-uncontrolled.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kotarella1110/eslint-plugin-react-form-fields/HEAD/src/rules/no-mix-controlled-with-uncontrolled.ts -------------------------------------------------------------------------------- /src/rules/no-only-value-prop.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kotarella1110/eslint-plugin-react-form-fields/HEAD/src/rules/no-only-value-prop.ts -------------------------------------------------------------------------------- /src/rules/styled-no-mix-controlled-with-uncontrolled.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kotarella1110/eslint-plugin-react-form-fields/HEAD/src/rules/styled-no-mix-controlled-with-uncontrolled.ts -------------------------------------------------------------------------------- /src/rules/styled-no-only-value-prop.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kotarella1110/eslint-plugin-react-form-fields/HEAD/src/rules/styled-no-only-value-prop.ts -------------------------------------------------------------------------------- /src/types/jsx-ast-utils.d.ts: -------------------------------------------------------------------------------- 1 | declare module 'jsx-ast-utils'; 2 | -------------------------------------------------------------------------------- /src/utils/capitalize.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kotarella1110/eslint-plugin-react-form-fields/HEAD/src/utils/capitalize.ts -------------------------------------------------------------------------------- /src/utils/collectStyledComponentData.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kotarella1110/eslint-plugin-react-form-fields/HEAD/src/utils/collectStyledComponentData.ts -------------------------------------------------------------------------------- /src/utils/docsUrl.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kotarella1110/eslint-plugin-react-form-fields/HEAD/src/utils/docsUrl.ts -------------------------------------------------------------------------------- /src/utils/getAsPropValue.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kotarella1110/eslint-plugin-react-form-fields/HEAD/src/utils/getAsPropValue.ts -------------------------------------------------------------------------------- /src/utils/getTagName.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kotarella1110/eslint-plugin-react-form-fields/HEAD/src/utils/getTagName.ts -------------------------------------------------------------------------------- /src/utils/isCheckboxOrRadioInput.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kotarella1110/eslint-plugin-react-form-fields/HEAD/src/utils/isCheckboxOrRadioInput.ts -------------------------------------------------------------------------------- /src/utils/isFormFieldTags.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kotarella1110/eslint-plugin-react-form-fields/HEAD/src/utils/isFormFieldTags.ts -------------------------------------------------------------------------------- /src/utils/isHiddenInput.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kotarella1110/eslint-plugin-react-form-fields/HEAD/src/utils/isHiddenInput.ts -------------------------------------------------------------------------------- /src/utils/jsxElementsParser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kotarella1110/eslint-plugin-react-form-fields/HEAD/src/utils/jsxElementsParser.ts -------------------------------------------------------------------------------- /src/utils/makeRule.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kotarella1110/eslint-plugin-react-form-fields/HEAD/src/utils/makeRule.ts -------------------------------------------------------------------------------- /src/utils/propertyToJSXAttribute.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kotarella1110/eslint-plugin-react-form-fields/HEAD/src/utils/propertyToJSXAttribute.ts -------------------------------------------------------------------------------- /src/utils/styledJSX.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kotarella1110/eslint-plugin-react-form-fields/HEAD/src/utils/styledJSX.ts -------------------------------------------------------------------------------- /src/utils/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kotarella1110/eslint-plugin-react-form-fields/HEAD/src/utils/types.ts -------------------------------------------------------------------------------- /tests/rules/no-mix-controlled-with-uncontrolled.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kotarella1110/eslint-plugin-react-form-fields/HEAD/tests/rules/no-mix-controlled-with-uncontrolled.ts -------------------------------------------------------------------------------- /tests/rules/no-only-value-prop.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kotarella1110/eslint-plugin-react-form-fields/HEAD/tests/rules/no-only-value-prop.ts -------------------------------------------------------------------------------- /tests/rules/styled-no-mix-controlled-with-uncontrolled.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kotarella1110/eslint-plugin-react-form-fields/HEAD/tests/rules/styled-no-mix-controlled-with-uncontrolled.ts -------------------------------------------------------------------------------- /tests/rules/styled-no-only-value-prop.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kotarella1110/eslint-plugin-react-form-fields/HEAD/tests/rules/styled-no-only-value-prop.ts -------------------------------------------------------------------------------- /tests/utils/generateCode.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kotarella1110/eslint-plugin-react-form-fields/HEAD/tests/utils/generateCode.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kotarella1110/eslint-plugin-react-form-fields/HEAD/tsconfig.json --------------------------------------------------------------------------------