diff --git a/lib/rules/jsx-newline.js b/lib/rules/jsx-newline.js index e3de9daef3..fe59f22c1b 100644 --- a/lib/rules/jsx-newline.js +++ b/lib/rules/jsx-newline.js @@ -20,6 +20,7 @@ const messages = { module.exports = { meta: { + type: 'layout', docs: { description: 'Require or prevent a new line after jsx elements and expressions.', category: 'Stylistic Issues', diff --git a/lib/rules/jsx-no-constructed-context-values.js b/lib/rules/jsx-no-constructed-context-values.js index da0409791a..3ff64a5814 100644 --- a/lib/rules/jsx-no-constructed-context-values.js +++ b/lib/rules/jsx-no-constructed-context-values.js @@ -130,6 +130,7 @@ const messages = { module.exports = { meta: { + type: 'suggestion', docs: { description: 'Prevents JSX context provider values from taking values that will cause needless rerenders.', category: 'Best Practices', diff --git a/lib/rules/no-adjacent-inline-elements.js b/lib/rules/no-adjacent-inline-elements.js index 140feeb6ce..a2fc724047 100644 --- a/lib/rules/no-adjacent-inline-elements.js +++ b/lib/rules/no-adjacent-inline-elements.js @@ -77,8 +77,8 @@ const messages = { }; module.exports = { - type: 'suggestion', meta: { + type: 'suggestion', docs: { description: 'Prevent adjacent inline elements not separated by whitespace.', category: 'Best Practices', diff --git a/lib/rules/no-arrow-function-lifecycle.js b/lib/rules/no-arrow-function-lifecycle.js index e2a69f3d68..b0e7cc9163 100644 --- a/lib/rules/no-arrow-function-lifecycle.js +++ b/lib/rules/no-arrow-function-lifecycle.js @@ -33,6 +33,7 @@ const messages = { module.exports = { meta: { + type: 'suggestion', docs: { description: 'Lifecycle methods should be methods on the prototype, not class fields', category: 'Best Practices', diff --git a/lib/rules/no-invalid-html-attribute.js b/lib/rules/no-invalid-html-attribute.js index 1a5b255f4e..11067f9b14 100644 --- a/lib/rules/no-invalid-html-attribute.js +++ b/lib/rules/no-invalid-html-attribute.js @@ -478,6 +478,7 @@ function checkCreateProps(context, node, attribute) { module.exports = { meta: { + type: 'problem', fixable: 'code', docs: { description: 'Forbid attribute with an invalid values`', diff --git a/lib/rules/no-namespace.js b/lib/rules/no-namespace.js index 929fb2bf88..669a70e9f5 100644 --- a/lib/rules/no-namespace.js +++ b/lib/rules/no-namespace.js @@ -20,6 +20,7 @@ const messages = { module.exports = { meta: { + type: 'problem', docs: { description: 'Enforce that namespaces are not used in React elements', category: 'Possible Errors', diff --git a/lib/rules/no-unstable-nested-components.js b/lib/rules/no-unstable-nested-components.js index ca4ddff560..8fd1bb5fa5 100644 --- a/lib/rules/no-unstable-nested-components.js +++ b/lib/rules/no-unstable-nested-components.js @@ -268,6 +268,7 @@ function resolveComponentName(node) { module.exports = { meta: { + type: 'problem', docs: { description: 'Prevent creating unstable components inside components', category: 'Possible Errors', diff --git a/lib/rules/no-unused-class-component-methods.js b/lib/rules/no-unused-class-component-methods.js index 3bcadd1d53..9468433904 100644 --- a/lib/rules/no-unused-class-component-methods.js +++ b/lib/rules/no-unused-class-component-methods.js @@ -100,6 +100,7 @@ const messages = { module.exports = { meta: { + type: 'suggestion', docs: { description: 'Prevent declaring unused methods of component class', category: 'Best Practices', diff --git a/lib/rules/prefer-exact-props.js b/lib/rules/prefer-exact-props.js index fb50f1e31f..62d4e4d8ed 100644 --- a/lib/rules/prefer-exact-props.js +++ b/lib/rules/prefer-exact-props.js @@ -22,6 +22,7 @@ const messages = { module.exports = { meta: { + type: 'problem', docs: { description: 'Prefer exact proptype definitions', category: 'Possible Errors',