Skip to content

Commit

Permalink
Add type to more rules
Browse files Browse the repository at this point in the history
  • Loading branch information
sryze committed Jan 4, 2022
1 parent 381ba11 commit 3e7ebd5
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/rules/jsx-newline.js
Expand Up @@ -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',
Expand Down
1 change: 1 addition & 0 deletions lib/rules/jsx-no-constructed-context-values.js
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/no-adjacent-inline-elements.js
Expand Up @@ -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',
Expand Down
1 change: 1 addition & 0 deletions lib/rules/no-arrow-function-lifecycle.js
Expand Up @@ -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',
Expand Down
1 change: 1 addition & 0 deletions lib/rules/no-invalid-html-attribute.js
Expand Up @@ -478,6 +478,7 @@ function checkCreateProps(context, node, attribute) {

module.exports = {
meta: {
type: 'problem',
fixable: 'code',
docs: {
description: 'Forbid attribute with an invalid values`',
Expand Down
1 change: 1 addition & 0 deletions lib/rules/no-namespace.js
Expand Up @@ -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',
Expand Down
1 change: 1 addition & 0 deletions lib/rules/no-unstable-nested-components.js
Expand Up @@ -268,6 +268,7 @@ function resolveComponentName(node) {

module.exports = {
meta: {
type: 'problem',
docs: {
description: 'Prevent creating unstable components inside components',
category: 'Possible Errors',
Expand Down
1 change: 1 addition & 0 deletions lib/rules/no-unused-class-component-methods.js
Expand Up @@ -100,6 +100,7 @@ const messages = {

module.exports = {
meta: {
type: 'suggestion',
docs: {
description: 'Prevent declaring unused methods of component class',
category: 'Best Practices',
Expand Down
1 change: 1 addition & 0 deletions lib/rules/prefer-exact-props.js
Expand Up @@ -22,6 +22,7 @@ const messages = {

module.exports = {
meta: {
type: 'problem',
docs: {
description: 'Prefer exact proptype definitions',
category: 'Possible Errors',
Expand Down

0 comments on commit 3e7ebd5

Please sign in to comment.