Skip to content

Commit c518493

Browse files
committed
chore: fix eslint namespace warnning
1 parent 08026c2 commit c518493

File tree

6 files changed

+6
-12
lines changed

6 files changed

+6
-12
lines changed

lib/rules/filename-blocklist.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@ const { getDocUrl } = require('../utils/doc');
1313
const { FILENAME_BLOCKLIST_ERROR_MESSAGE } = require('../constants/message');
1414
const { matchRule } = require('../utils/rule');
1515

16-
/** @typedef {module:eslint} ESLint */
1716
/**
18-
* @type {ESLint.Rule.RuleModule}
17+
* @type {import('eslint').Rule.RuleModule}
1918
*/
2019
module.exports = {
2120
meta: {

lib/rules/filename-naming-convention.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@ const {
1919
FILENAME_NAMING_CONVENTION_ERROR_MESSAGE,
2020
} = require('../constants/message');
2121

22-
/** @typedef {module:eslint} ESLint */
2322
/**
24-
* @type {ESLint.Rule.RuleModule}
23+
* @type {import('eslint').Rule.RuleModule}
2524
*/
2625
module.exports = {
2726
meta: {

lib/rules/folder-match-with-fex.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,8 @@ const { getDocUrl } = require('../utils/doc');
1717
const { FOLDER_MATCH_WITH_FEX_ERROR_MESSAGE } = require('../constants/message');
1818
const { matchRule } = require('../utils/rule');
1919

20-
/** @typedef {module:eslint} ESLint */
2120
/**
22-
* @type {ESLint.Rule.RuleModule}
21+
* @type {import('eslint').Rule.RuleModule}
2322
*/
2423
module.exports = {
2524
meta: {

lib/rules/folder-naming-convention.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,8 @@ const {
2323
FOLDER_NAMING_CONVENTION_ERROR_MESSAGE,
2424
} = require('../constants/message');
2525

26-
/** @typedef {module:eslint} ESLint */
2726
/**
28-
* @type {ESLint.Rule.RuleModule}
27+
* @type {import('eslint').Rule.RuleModule}
2928
*/
3029
module.exports = {
3130
meta: {

lib/rules/no-index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@ const { getDocUrl } = require('../utils/doc');
88
const { getFilename, getBasename, getFilePath } = require('../utils/filename');
99
const { NO_INDEX_ERROR_MESSAGE } = require('../constants/message');
1010

11-
/** @typedef {module:eslint} ESLint */
1211
/**
13-
* @type {ESLint.Rule.RuleModule}
12+
* @type {import('eslint').Rule.RuleModule}
1413
*/
1514
module.exports = {
1615
meta: {

lib/utils/filename.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,9 @@ const toPosixPath = (p) => p.split(path.sep).join(path.posix.sep);
8585
*/
8686
const removeDriveLetter = (p) => p.replace(WINDOWS_DRIVE_LETTER_REGEXP, '');
8787

88-
/** @typedef {module:eslint} ESLint */
8988
/**
9089
* @returns {string} file path in posix style
91-
* @param {ESLint.Rule.RuleContext} context rule eslint context
90+
* @param {import('eslint').Rule.RuleContext} context rule eslint context
9291
*/
9392
const getFilePath = (context) => {
9493
const pathFromRoot = getPathFromRepositoryRoot(

0 commit comments

Comments
 (0)