Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add jsdoc type annotation to rules #516

Merged
merged 1 commit into from
Nov 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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