Skip to content

Commit

Permalink
chore: add jsdoc type annotation to rules (#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
bmish committed Nov 12, 2021
1 parent 8bde9b4 commit de1e2f0
Show file tree
Hide file tree
Showing 24 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/rules/consistent-output.js
Expand Up @@ -11,6 +11,7 @@ const utils = require('../utils');
// Rule Definition
// ------------------------------------------------------------------------------

/** @type {import('eslint').Rule.RuleModule} */
module.exports = {
meta: {
type: 'suggestion',
Expand Down
1 change: 1 addition & 0 deletions lib/rules/fixer-return.js
Expand Up @@ -16,6 +16,7 @@ const { getStaticValue } = require('eslint-utils');
// Rule Definition
// ------------------------------------------------------------------------------

/** @type {import('eslint').Rule.RuleModule} */
module.exports = {
meta: {
type: 'problem',
Expand Down
1 change: 1 addition & 0 deletions lib/rules/meta-property-ordering.js
Expand Up @@ -10,6 +10,7 @@ const { getKeyName, getRuleInfo } = require('../utils');
// Rule Definition
// ------------------------------------------------------------------------------

/** @type {import('eslint').Rule.RuleModule} */
module.exports = {
meta: {
type: 'suggestion',
Expand Down
1 change: 1 addition & 0 deletions lib/rules/no-deprecated-context-methods.js
Expand Up @@ -34,6 +34,7 @@ const DEPRECATED_PASSTHROUGHS = {
// Rule Definition
// ------------------------------------------------------------------------------

/** @type {import('eslint').Rule.RuleModule} */
module.exports = {
meta: {
type: 'suggestion',
Expand Down
1 change: 1 addition & 0 deletions lib/rules/no-deprecated-report-api.js
Expand Up @@ -11,6 +11,7 @@ const utils = require('../utils');
// Rule Definition
// ------------------------------------------------------------------------------

/** @type {import('eslint').Rule.RuleModule} */
module.exports = {
meta: {
type: 'suggestion',
Expand Down
1 change: 1 addition & 0 deletions lib/rules/no-identical-tests.js
Expand Up @@ -11,6 +11,7 @@ const utils = require('../utils');
// Rule Definition
// ------------------------------------------------------------------------------

/** @type {import('eslint').Rule.RuleModule} */
module.exports = {
meta: {
type: 'problem',
Expand Down
1 change: 1 addition & 0 deletions lib/rules/no-missing-placeholders.js
Expand Up @@ -12,6 +12,7 @@ const { getStaticValue } = require('eslint-utils');
// Rule Definition
// ------------------------------------------------------------------------------

/** @type {import('eslint').Rule.RuleModule} */
module.exports = {
meta: {
type: 'problem',
Expand Down
1 change: 1 addition & 0 deletions lib/rules/no-only-tests.js
Expand Up @@ -3,6 +3,7 @@
const utils = require('../utils');
const { isCommaToken, isOpeningBraceToken, isClosingBraceToken } = require('eslint-utils');

/** @type {import('eslint').Rule.RuleModule} */
module.exports = {
meta: {
type: 'problem',
Expand Down
1 change: 1 addition & 0 deletions lib/rules/no-unused-placeholders.js
Expand Up @@ -12,6 +12,7 @@ const { getStaticValue } = require('eslint-utils');
// Rule Definition
// ------------------------------------------------------------------------------

/** @type {import('eslint').Rule.RuleModule} */
module.exports = {
meta: {
type: 'problem',
Expand Down
1 change: 1 addition & 0 deletions lib/rules/no-useless-token-range.js
Expand Up @@ -11,6 +11,7 @@ const utils = require('../utils');
// Rule Definition
// ------------------------------------------------------------------------------

/** @type {import('eslint').Rule.RuleModule} */
module.exports = {
meta: {
type: 'suggestion',
Expand Down
1 change: 1 addition & 0 deletions lib/rules/prefer-message-ids.js
Expand Up @@ -7,6 +7,7 @@ const { getStaticValue } = require('eslint-utils');
// Rule Definition
// ------------------------------------------------------------------------------

/** @type {import('eslint').Rule.RuleModule} */
module.exports = {
meta: {
type: 'problem',
Expand Down
1 change: 1 addition & 0 deletions lib/rules/prefer-object-rule.js
Expand Up @@ -10,6 +10,7 @@ const utils = require('../utils');
// Rule Definition
// ------------------------------------------------------------------------------

/** @type {import('eslint').Rule.RuleModule} */
module.exports = {
meta: {
type: 'suggestion',
Expand Down
1 change: 1 addition & 0 deletions lib/rules/prefer-output-null.js
Expand Up @@ -11,6 +11,7 @@ const utils = require('../utils');
// Rule Definition
// ------------------------------------------------------------------------------

/** @type {import('eslint').Rule.RuleModule} */
module.exports = {
meta: {
type: 'suggestion',
Expand Down
1 change: 1 addition & 0 deletions lib/rules/prefer-placeholders.js
Expand Up @@ -12,6 +12,7 @@ const { findVariable } = require('eslint-utils');
// Rule Definition
// ------------------------------------------------------------------------------

/** @type {import('eslint').Rule.RuleModule} */
module.exports = {
meta: {
type: 'suggestion',
Expand Down
1 change: 1 addition & 0 deletions lib/rules/prefer-replace-text.js
Expand Up @@ -11,6 +11,7 @@ const utils = require('../utils');
// Rule Definition
// ------------------------------------------------------------------------------

/** @type {import('eslint').Rule.RuleModule} */
module.exports = {
meta: {
type: 'suggestion',
Expand Down
1 change: 1 addition & 0 deletions lib/rules/report-message-format.js
Expand Up @@ -12,6 +12,7 @@ const utils = require('../utils');
// Rule Definition
// ------------------------------------------------------------------------------

/** @type {import('eslint').Rule.RuleModule} */
module.exports = {
meta: {
type: 'suggestion',
Expand Down
1 change: 1 addition & 0 deletions lib/rules/require-meta-docs-description.js
Expand Up @@ -9,6 +9,7 @@ const utils = require('../utils');

const DEFAULT_PATTERN = new RegExp('^(enforce|require|disallow)');

/** @type {import('eslint').Rule.RuleModule} */
module.exports = {
meta: {
type: 'suggestion',
Expand Down
1 change: 1 addition & 0 deletions lib/rules/require-meta-docs-url.js
Expand Up @@ -16,6 +16,7 @@ const { getStaticValue } = require('eslint-utils');
// Rule Definition
// -----------------------------------------------------------------------------

/** @type {import('eslint').Rule.RuleModule} */
module.exports = {
meta: {
type: 'suggestion',
Expand Down
1 change: 1 addition & 0 deletions lib/rules/require-meta-fixable.js
Expand Up @@ -12,6 +12,7 @@ const utils = require('../utils');
// Rule Definition
// ------------------------------------------------------------------------------

/** @type {import('eslint').Rule.RuleModule} */
module.exports = {
meta: {
type: 'problem',
Expand Down
1 change: 1 addition & 0 deletions lib/rules/require-meta-has-suggestions.js
Expand Up @@ -7,6 +7,7 @@ const { getStaticValue } = require('eslint-utils');
// Rule Definition
// ------------------------------------------------------------------------------

/** @type {import('eslint').Rule.RuleModule} */
module.exports = {
meta: {
type: 'problem',
Expand Down
1 change: 1 addition & 0 deletions lib/rules/require-meta-schema.js
Expand Up @@ -7,6 +7,7 @@ const utils = require('../utils');
// Rule Definition
// ------------------------------------------------------------------------------

/** @type {import('eslint').Rule.RuleModule} */
module.exports = {
meta: {
type: 'suggestion',
Expand Down
1 change: 1 addition & 0 deletions lib/rules/require-meta-type.js
Expand Up @@ -13,6 +13,7 @@ const VALID_TYPES = new Set(['problem', 'suggestion', 'layout']);
// Rule Definition
// ------------------------------------------------------------------------------

/** @type {import('eslint').Rule.RuleModule} */
module.exports = {
meta: {
type: 'problem',
Expand Down
1 change: 1 addition & 0 deletions lib/rules/test-case-property-ordering.js
Expand Up @@ -11,6 +11,7 @@ const utils = require('../utils');
// Rule Definition
// ------------------------------------------------------------------------------

/** @type {import('eslint').Rule.RuleModule} */
module.exports = {
meta: {
type: 'suggestion',
Expand Down
1 change: 1 addition & 0 deletions lib/rules/test-case-shorthand-strings.js
Expand Up @@ -11,6 +11,7 @@ const utils = require('../utils');
// Rule Definition
// ------------------------------------------------------------------------------

/** @type {import('eslint').Rule.RuleModule} */
module.exports = {
meta: {
type: 'suggestion',
Expand Down

0 comments on commit de1e2f0

Please sign in to comment.