All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sonar.l10n.javascript.rules.eslint.react.json Maven / Gradle / Ivy

There is a newer version: 10.20.0.29356
Show newest version
[
  {
    "key": "react/boolean-prop-naming",
    "name": "Enforces consistent naming for boolean props",
    "description": "See description of ESLint rule react/boolean-prop-naming at the eslint-plugin-react website"
  },
  {
    "key": "react/button-has-type",
    "name": "Disallow usage of `button` elements without an explicit `type` attribute",
    "description": "See description of ESLint rule react/button-has-type at the eslint-plugin-react website"
  },
  {
    "key": "react/default-props-match-prop-types",
    "name": "Enforce all defaultProps have a corresponding non-required PropType",
    "description": "See description of ESLint rule react/default-props-match-prop-types at the eslint-plugin-react website"
  },
  {
    "key": "react/destructuring-assignment",
    "name": "Enforce consistent usage of destructuring assignment of props, state, and context",
    "description": "See description of ESLint rule react/destructuring-assignment at the eslint-plugin-react website"
  },
  {
    "key": "react/display-name",
    "name": "Disallow missing displayName in a React component definition",
    "description": "See description of ESLint rule react/display-name at the eslint-plugin-react website"
  },
  {
    "key": "react/forbid-component-props",
    "name": "Disallow certain props on components",
    "description": "See description of ESLint rule react/forbid-component-props at the eslint-plugin-react website"
  },
  {
    "key": "react/forbid-dom-props",
    "name": "Disallow certain props on DOM Nodes",
    "description": "See description of ESLint rule react/forbid-dom-props at the eslint-plugin-react website"
  },
  {
    "key": "react/forbid-elements",
    "name": "Disallow certain elements",
    "description": "See description of ESLint rule react/forbid-elements at the eslint-plugin-react website"
  },
  {
    "key": "react/forbid-foreign-prop-types",
    "name": "Disallow using another component's propTypes",
    "description": "See description of ESLint rule react/forbid-foreign-prop-types at the eslint-plugin-react website"
  },
  {
    "key": "react/forbid-prop-types",
    "name": "Disallow certain propTypes",
    "description": "See description of ESLint rule react/forbid-prop-types at the eslint-plugin-react website"
  },
  {
    "key": "react/function-component-definition",
    "name": "Enforce a specific function type for function components",
    "description": "See description of ESLint rule react/function-component-definition at the eslint-plugin-react website"
  },
  {
    "key": "react/hook-use-state",
    "name": "Ensure destructuring and symmetric naming of useState hook value and setter variables",
    "description": "See description of ESLint rule react/hook-use-state at the eslint-plugin-react website"
  },
  {
    "key": "react/iframe-missing-sandbox",
    "name": "Enforce sandbox attribute on iframe elements",
    "description": "See description of ESLint rule react/iframe-missing-sandbox at the eslint-plugin-react website"
  },
  {
    "key": "react/jsx-boolean-value",
    "name": "Enforce boolean attributes notation in JSX",
    "description": "See description of ESLint rule react/jsx-boolean-value at the eslint-plugin-react website"
  },
  {
    "key": "react/jsx-child-element-spacing",
    "name": "Enforce or disallow spaces inside of curly braces in JSX attributes and expressions",
    "description": "See description of ESLint rule react/jsx-child-element-spacing at the eslint-plugin-react website"
  },
  {
    "key": "react/jsx-closing-bracket-location",
    "name": "Enforce closing bracket location in JSX",
    "description": "See description of ESLint rule react/jsx-closing-bracket-location at the eslint-plugin-react website"
  },
  {
    "key": "react/jsx-closing-tag-location",
    "name": "Enforce closing tag location for multiline JSX",
    "description": "See description of ESLint rule react/jsx-closing-tag-location at the eslint-plugin-react website"
  },
  {
    "key": "react/jsx-curly-spacing",
    "name": "Enforce or disallow spaces inside of curly braces in JSX attributes and expressions",
    "description": "See description of ESLint rule react/jsx-curly-spacing at the eslint-plugin-react website"
  },
  {
    "key": "react/jsx-curly-newline",
    "name": "Enforce consistent linebreaks in curly braces in JSX attributes and expressions",
    "description": "See description of ESLint rule react/jsx-curly-newline at the eslint-plugin-react website"
  },
  {
    "key": "react/jsx-equals-spacing",
    "name": "Enforce or disallow spaces around equal signs in JSX attributes",
    "description": "See description of ESLint rule react/jsx-equals-spacing at the eslint-plugin-react website"
  },
  {
    "key": "react/jsx-filename-extension",
    "name": "Disallow file extensions that may contain JSX",
    "description": "See description of ESLint rule react/jsx-filename-extension at the eslint-plugin-react website"
  },
  {
    "key": "react/jsx-first-prop-new-line",
    "name": "Enforce proper position of the first property in JSX",
    "description": "See description of ESLint rule react/jsx-first-prop-new-line at the eslint-plugin-react website"
  },
  {
    "key": "react/jsx-handler-names",
    "name": "Enforce event handler naming conventions in JSX",
    "description": "See description of ESLint rule react/jsx-handler-names at the eslint-plugin-react website"
  },
  {
    "key": "react/jsx-indent",
    "name": "Enforce JSX indentation",
    "description": "See description of ESLint rule react/jsx-indent at the eslint-plugin-react website"
  },
  {
    "key": "react/jsx-indent-props",
    "name": "Enforce props indentation in JSX",
    "description": "See description of ESLint rule react/jsx-indent-props at the eslint-plugin-react website"
  },
  {
    "key": "react/jsx-key",
    "name": "Disallow missing `key` props in iterators/collection literals",
    "description": "See description of ESLint rule react/jsx-key at the eslint-plugin-react website"
  },
  {
    "key": "react/jsx-max-depth",
    "name": "Enforce JSX maximum depth",
    "description": "See description of ESLint rule react/jsx-max-depth at the eslint-plugin-react website"
  },
  {
    "key": "react/jsx-max-props-per-line",
    "name": "Enforce maximum of props on a single line in JSX",
    "description": "See description of ESLint rule react/jsx-max-props-per-line at the eslint-plugin-react website"
  },
  {
    "key": "react/jsx-newline",
    "name": "Require or prevent a new line after jsx elements and expressions.",
    "description": "See description of ESLint rule react/jsx-newline at the eslint-plugin-react website"
  },
  {
    "key": "react/jsx-no-bind",
    "name": "Disallow `.bind()` or arrow functions in JSX props",
    "description": "See description of ESLint rule react/jsx-no-bind at the eslint-plugin-react website"
  },
  {
    "key": "react/jsx-no-comment-textnodes",
    "name": "Disallow comments from being inserted as text nodes",
    "description": "See description of ESLint rule react/jsx-no-comment-textnodes at the eslint-plugin-react website"
  },
  {
    "key": "react/jsx-no-constructed-context-values",
    "name": "Disallows JSX context provider values from taking values that will cause needless rerenders",
    "description": "See description of ESLint rule react/jsx-no-constructed-context-values at the eslint-plugin-react website"
  },
  {
    "key": "react/jsx-no-duplicate-props",
    "name": "Disallow duplicate properties in JSX",
    "description": "See description of ESLint rule react/jsx-no-duplicate-props at the eslint-plugin-react website"
  },
  {
    "key": "react/jsx-no-leaked-render",
    "name": "Disallow problematic leaked values from being rendered",
    "description": "See description of ESLint rule react/jsx-no-leaked-render at the eslint-plugin-react website"
  },
  {
    "key": "react/jsx-no-literals",
    "name": "Disallow usage of string literals in JSX",
    "description": "See description of ESLint rule react/jsx-no-literals at the eslint-plugin-react website"
  },
  {
    "key": "react/jsx-no-script-url",
    "name": "Disallow usage of `javascript:` URLs",
    "description": "See description of ESLint rule react/jsx-no-script-url at the eslint-plugin-react website"
  },
  {
    "key": "react/jsx-no-target-blank",
    "name": "Disallow `target=\"_blank\"` attribute without `rel=\"noreferrer\"`",
    "description": "See description of ESLint rule react/jsx-no-target-blank at the eslint-plugin-react website"
  },
  {
    "key": "react/jsx-no-useless-fragment",
    "name": "Disallow unnecessary fragments",
    "description": "See description of ESLint rule react/jsx-no-useless-fragment at the eslint-plugin-react website"
  },
  {
    "key": "react/jsx-one-expression-per-line",
    "name": "Require one JSX element per line",
    "description": "See description of ESLint rule react/jsx-one-expression-per-line at the eslint-plugin-react website"
  },
  {
    "key": "react/jsx-no-undef",
    "name": "Disallow undeclared variables in JSX",
    "description": "See description of ESLint rule react/jsx-no-undef at the eslint-plugin-react website"
  },
  {
    "key": "react/jsx-curly-brace-presence",
    "name": "Disallow unnecessary JSX expressions when literals alone are sufficient or enforce JSX expressions on literals in JSX children or attributes",
    "description": "See description of ESLint rule react/jsx-curly-brace-presence at the eslint-plugin-react website"
  },
  {
    "key": "react/jsx-pascal-case",
    "name": "Enforce PascalCase for user-defined JSX components",
    "description": "See description of ESLint rule react/jsx-pascal-case at the eslint-plugin-react website"
  },
  {
    "key": "react/jsx-fragments",
    "name": "Enforce shorthand or standard form for React fragments",
    "description": "See description of ESLint rule react/jsx-fragments at the eslint-plugin-react website"
  },
  {
    "key": "react/jsx-props-no-multi-spaces",
    "name": "Disallow multiple spaces between inline JSX props",
    "description": "See description of ESLint rule react/jsx-props-no-multi-spaces at the eslint-plugin-react website"
  },
  {
    "key": "react/jsx-props-no-spreading",
    "name": "Disallow JSX prop spreading",
    "description": "See description of ESLint rule react/jsx-props-no-spreading at the eslint-plugin-react website"
  },
  {
    "key": "react/jsx-sort-default-props",
    "name": "Enforce defaultProps declarations alphabetical sorting",
    "description": "See description of ESLint rule react/jsx-sort-default-props at the eslint-plugin-react website"
  },
  {
    "key": "react/jsx-sort-props",
    "name": "Enforce props alphabetical sorting",
    "description": "See description of ESLint rule react/jsx-sort-props at the eslint-plugin-react website"
  },
  {
    "key": "react/jsx-space-before-closing",
    "name": "Enforce spacing before closing bracket in JSX",
    "description": "See description of ESLint rule react/jsx-space-before-closing at the eslint-plugin-react website"
  },
  {
    "key": "react/jsx-tag-spacing",
    "name": "Enforce whitespace in and around the JSX opening and closing brackets",
    "description": "See description of ESLint rule react/jsx-tag-spacing at the eslint-plugin-react website"
  },
  {
    "key": "react/jsx-uses-react",
    "name": "Disallow React to be incorrectly marked as unused",
    "description": "See description of ESLint rule react/jsx-uses-react at the eslint-plugin-react website"
  },
  {
    "key": "react/jsx-uses-vars",
    "name": "Disallow variables used in JSX to be incorrectly marked as unused",
    "description": "See description of ESLint rule react/jsx-uses-vars at the eslint-plugin-react website"
  },
  {
    "key": "react/jsx-wrap-multilines",
    "name": "Disallow missing parentheses around multiline JSX",
    "description": "See description of ESLint rule react/jsx-wrap-multilines at the eslint-plugin-react website"
  },
  {
    "key": "react/no-invalid-html-attribute",
    "name": "Disallow usage of invalid attributes",
    "description": "See description of ESLint rule react/no-invalid-html-attribute at the eslint-plugin-react website"
  },
  {
    "key": "react/no-access-state-in-setstate",
    "name": "Disallow when this.state is accessed within setState",
    "description": "See description of ESLint rule react/no-access-state-in-setstate at the eslint-plugin-react website"
  },
  {
    "key": "react/no-adjacent-inline-elements",
    "name": "Disallow adjacent inline elements not separated by whitespace.",
    "description": "See description of ESLint rule react/no-adjacent-inline-elements at the eslint-plugin-react website"
  },
  {
    "key": "react/no-array-index-key",
    "name": "Disallow usage of Array index in keys",
    "description": "See description of ESLint rule react/no-array-index-key at the eslint-plugin-react website"
  },
  {
    "key": "react/no-arrow-function-lifecycle",
    "name": "Lifecycle methods should be methods on the prototype, not class fields",
    "description": "See description of ESLint rule react/no-arrow-function-lifecycle at the eslint-plugin-react website"
  },
  {
    "key": "react/no-children-prop",
    "name": "Disallow passing of children as props",
    "description": "See description of ESLint rule react/no-children-prop at the eslint-plugin-react website"
  },
  {
    "key": "react/no-danger",
    "name": "Disallow usage of dangerous JSX properties",
    "description": "See description of ESLint rule react/no-danger at the eslint-plugin-react website"
  },
  {
    "key": "react/no-danger-with-children",
    "name": "Disallow when a DOM element is using both children and dangerouslySetInnerHTML",
    "description": "See description of ESLint rule react/no-danger-with-children at the eslint-plugin-react website"
  },
  {
    "key": "react/no-deprecated",
    "name": "Disallow usage of deprecated methods",
    "description": "See description of ESLint rule react/no-deprecated at the eslint-plugin-react website"
  },
  {
    "key": "react/no-did-mount-set-state",
    "name": "Disallow usage of setState in componentDidMount",
    "description": "See description of ESLint rule react/no-did-mount-set-state at the eslint-plugin-react website"
  },
  {
    "key": "react/no-did-update-set-state",
    "name": "Disallow usage of setState in componentDidUpdate",
    "description": "See description of ESLint rule react/no-did-update-set-state at the eslint-plugin-react website"
  },
  {
    "key": "react/no-direct-mutation-state",
    "name": "Disallow direct mutation of this.state",
    "description": "See description of ESLint rule react/no-direct-mutation-state at the eslint-plugin-react website"
  },
  {
    "key": "react/no-find-dom-node",
    "name": "Disallow usage of findDOMNode",
    "description": "See description of ESLint rule react/no-find-dom-node at the eslint-plugin-react website"
  },
  {
    "key": "react/no-is-mounted",
    "name": "Disallow usage of isMounted",
    "description": "See description of ESLint rule react/no-is-mounted at the eslint-plugin-react website"
  },
  {
    "key": "react/no-multi-comp",
    "name": "Disallow multiple component definition per file",
    "description": "See description of ESLint rule react/no-multi-comp at the eslint-plugin-react website"
  },
  {
    "key": "react/no-namespace",
    "name": "Enforce that namespaces are not used in React elements",
    "description": "See description of ESLint rule react/no-namespace at the eslint-plugin-react website"
  },
  {
    "key": "react/no-set-state",
    "name": "Disallow usage of setState",
    "description": "See description of ESLint rule react/no-set-state at the eslint-plugin-react website"
  },
  {
    "key": "react/no-string-refs",
    "name": "Disallow using string references",
    "description": "See description of ESLint rule react/no-string-refs at the eslint-plugin-react website"
  },
  {
    "key": "react/no-redundant-should-component-update",
    "name": "Disallow usage of shouldComponentUpdate when extending React.PureComponent",
    "description": "See description of ESLint rule react/no-redundant-should-component-update at the eslint-plugin-react website"
  },
  {
    "key": "react/no-render-return-value",
    "name": "Disallow usage of the return value of ReactDOM.render",
    "description": "See description of ESLint rule react/no-render-return-value at the eslint-plugin-react website"
  },
  {
    "key": "react/no-this-in-sfc",
    "name": "Disallow `this` from being used in stateless functional components",
    "description": "See description of ESLint rule react/no-this-in-sfc at the eslint-plugin-react website"
  },
  {
    "key": "react/no-typos",
    "name": "Disallow common typos",
    "description": "See description of ESLint rule react/no-typos at the eslint-plugin-react website"
  },
  {
    "key": "react/no-unescaped-entities",
    "name": "Disallow unescaped HTML entities from appearing in markup",
    "description": "See description of ESLint rule react/no-unescaped-entities at the eslint-plugin-react website"
  },
  {
    "key": "react/no-unknown-property",
    "name": "Disallow usage of unknown DOM property",
    "description": "See description of ESLint rule react/no-unknown-property at the eslint-plugin-react website"
  },
  {
    "key": "react/no-unsafe",
    "name": "Disallow usage of unsafe lifecycle methods",
    "description": "See description of ESLint rule react/no-unsafe at the eslint-plugin-react website"
  },
  {
    "key": "react/no-unstable-nested-components",
    "name": "Disallow creating unstable components inside components",
    "description": "See description of ESLint rule react/no-unstable-nested-components at the eslint-plugin-react website"
  },
  {
    "key": "react/no-unused-class-component-methods",
    "name": "Disallow declaring unused methods of component class",
    "description": "See description of ESLint rule react/no-unused-class-component-methods at the eslint-plugin-react website"
  },
  {
    "key": "react/no-unused-prop-types",
    "name": "Disallow definitions of unused propTypes",
    "description": "See description of ESLint rule react/no-unused-prop-types at the eslint-plugin-react website"
  },
  {
    "key": "react/no-unused-state",
    "name": "Disallow definitions of unused state",
    "description": "See description of ESLint rule react/no-unused-state at the eslint-plugin-react website"
  },
  {
    "key": "react/no-object-type-as-default-prop",
    "name": "Disallow usage of referential-type variables as default param in functional component",
    "description": "See description of ESLint rule react/no-object-type-as-default-prop at the eslint-plugin-react website"
  },
  {
    "key": "react/no-will-update-set-state",
    "name": "Disallow usage of setState in componentWillUpdate",
    "description": "See description of ESLint rule react/no-will-update-set-state at the eslint-plugin-react website"
  },
  {
    "key": "react/prefer-es6-class",
    "name": "Enforce ES5 or ES6 class for React Components",
    "description": "See description of ESLint rule react/prefer-es6-class at the eslint-plugin-react website"
  },
  {
    "key": "react/prefer-exact-props",
    "name": "Prefer exact proptype definitions",
    "description": "See description of ESLint rule react/prefer-exact-props at the eslint-plugin-react website"
  },
  {
    "key": "react/prefer-read-only-props",
    "name": "Enforce that props are read-only",
    "description": "See description of ESLint rule react/prefer-read-only-props at the eslint-plugin-react website"
  },
  {
    "key": "react/prefer-stateless-function",
    "name": "Enforce stateless components to be written as a pure function",
    "description": "See description of ESLint rule react/prefer-stateless-function at the eslint-plugin-react website"
  },
  {
    "key": "react/prop-types",
    "name": "Disallow missing props validation in a React component definition",
    "description": "See description of ESLint rule react/prop-types at the eslint-plugin-react website"
  },
  {
    "key": "react/react-in-jsx-scope",
    "name": "Disallow missing React when using JSX",
    "description": "See description of ESLint rule react/react-in-jsx-scope at the eslint-plugin-react website"
  },
  {
    "key": "react/require-default-props",
    "name": "Enforce a defaultProps definition for every prop that is not a required prop",
    "description": "See description of ESLint rule react/require-default-props at the eslint-plugin-react website"
  },
  {
    "key": "react/require-optimization",
    "name": "Enforce React components to have a shouldComponentUpdate method",
    "description": "See description of ESLint rule react/require-optimization at the eslint-plugin-react website"
  },
  {
    "key": "react/require-render-return",
    "name": "Enforce ES5 or ES6 class for returning value in render function",
    "description": "See description of ESLint rule react/require-render-return at the eslint-plugin-react website"
  },
  {
    "key": "react/self-closing-comp",
    "name": "Disallow extra closing tags for components without children",
    "description": "See description of ESLint rule react/self-closing-comp at the eslint-plugin-react website"
  },
  {
    "key": "react/sort-comp",
    "name": "Enforce component methods order",
    "description": "See description of ESLint rule react/sort-comp at the eslint-plugin-react website"
  },
  {
    "key": "react/sort-default-props",
    "name": "Enforce defaultProps declarations alphabetical sorting",
    "description": "See description of ESLint rule react/sort-default-props at the eslint-plugin-react website"
  },
  {
    "key": "react/sort-prop-types",
    "name": "Enforce propTypes declarations alphabetical sorting",
    "description": "See description of ESLint rule react/sort-prop-types at the eslint-plugin-react website"
  },
  {
    "key": "react/state-in-constructor",
    "name": "Enforce class component state initialization style",
    "description": "See description of ESLint rule react/state-in-constructor at the eslint-plugin-react website"
  },
  {
    "key": "react/static-property-placement",
    "name": "Enforces where React component static properties should be positioned.",
    "description": "See description of ESLint rule react/static-property-placement at the eslint-plugin-react website"
  },
  {
    "key": "react/style-prop-object",
    "name": "Enforce style prop value is an object",
    "description": "See description of ESLint rule react/style-prop-object at the eslint-plugin-react website"
  },
  {
    "key": "react/void-dom-elements-no-children",
    "name": "Disallow void DOM elements (e.g. ``, `
`) from receiving children", "description": "See description of ESLint rule react/void-dom-elements-no-children at the eslint-plugin-react website" } ]




© 2015 - 2024 Weber Informatics LLC | Privacy Policy