Skip to content

Commit

Permalink
Merge pull request #516 from bmish/rule-type-jsdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
bmish committed Nov 11, 2021
2 parents 5427fef + f5c3bc2 commit 7ebb102
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/rules/no-assert-ok-find.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ const isMemberExpression = require('../utils/is-member-expression');
const isTestFile = require('../utils/is-test-file');
const { ReferenceTracker } = require('eslint-utils');

/**
* @type {import('eslint').Rule.RuleModule}
*/
module.exports = {
meta: {
type: 'problem',
Expand Down
3 changes: 3 additions & 0 deletions lib/rules/no-handlebar-interpolation.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
'use strict';

/**
* @type {import('eslint').Rule.RuleModule}
*/
module.exports = {
meta: {
type: 'problem',
Expand Down
3 changes: 3 additions & 0 deletions lib/rules/no-missing-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
const { existsSync } = require('fs');
const path = require('path');

/**
* @type {import('eslint').Rule.RuleModule}
*/
module.exports = {
meta: {
type: 'problem',
Expand Down
3 changes: 3 additions & 0 deletions lib/rules/no-restricted-files.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
'use strict';

/**
* @type {import('eslint').Rule.RuleModule}
*/
module.exports = {
meta: {
type: 'suggestion',
Expand Down
3 changes: 3 additions & 0 deletions lib/rules/no-test-return-value.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ const DEFAULT_TEST_HOOKS = [
'todo',
];

/**
* @type {import('eslint').Rule.RuleModule}
*/
module.exports = {
DEFAULT_TEST_HOOKS,
meta: {
Expand Down
3 changes: 3 additions & 0 deletions lib/rules/no-translation-key-interpolation.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ const isMemberExpression = require('../utils/is-member-expression');
const DEFAULT_SERVICE_NAME = 'intl';
const DEFAULT_METHOD_NAME = 't';

/**
* @type {import('eslint').Rule.RuleModule}
*/
module.exports = {
meta: {
type: 'suggestion',
Expand Down
3 changes: 3 additions & 0 deletions lib/rules/require-await-function.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ function isAwaitCall(node) {
return false;
}

/**
* @type {import('eslint').Rule.RuleModule}
*/
module.exports = {
meta: {
type: 'problem',
Expand Down
3 changes: 3 additions & 0 deletions lib/rules/use-call-count-test-assert.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ const STUB_PROPERTY_NAMES = [
'called',
];

/**
* @type {import('eslint').Rule.RuleModule}
*/
module.exports = {
ASSERT_PROPERTY_NAMES,
STUB_PROPERTY_NAMES,
Expand Down
3 changes: 3 additions & 0 deletions lib/rules/use-ember-find.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
const isStringLiteral = require('../utils/is-string-literal');
const isTestFile = require('../utils/is-test-file');

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

0 comments on commit 7ebb102

Please sign in to comment.