Skip to content

Commit 5355448

Browse files
committed
Disable import/no-unresolved.
1 parent 0e6eb77 commit 5355448

File tree

6 files changed

+0
-10
lines changed

6 files changed

+0
-10
lines changed

Lombiq.NodeJs.Extensions/scripts/clean-assets.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
const path = require('path');
77

8-
/* eslint-disable-next-line import/no-unresolved -- ESLint does not know where to find external modules. */
98
const { rimraf } = require('rimraf');
109

1110
const getConfig = require('./get-config');

Lombiq.NodeJs.Extensions/scripts/compile-scripts.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable import/no-unresolved -- ESLint does not know where to find external modules. */
21
const babel = require('@babel/core');
32
const path = require('path');
43
const process = require('process');

Lombiq.NodeJs.Extensions/scripts/copy-assets.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
const { access } = require('fs').promises;
77
const path = require('path');
88
const util = require('util');
9-
/* eslint-disable-next-line import/no-unresolved -- ESLint does not know where to find external modules. */
109
const copyfiles = util.promisify(require('copyfiles'));
1110
const getConfig = require('./get-config');
1211
const getProjectDirectory = require('./get-project-directory');

Lombiq.NodeJs.Extensions/scripts/handle-error.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,9 @@ const pathRelative = require('path').relative;
1010
// Treat this dependency as optional because it's not available everywhere.
1111
let chalk;
1212
try {
13-
/* eslint-disable import/no-unresolved -- ESLint does not know where to find external modules. */
1413
/* eslint-disable global-require -- Optional dependency. */
1514
chalk = require('chalk');
1615
/* eslint-enable global-require */
17-
/* eslint-enable import/no-unresolved */
1816
}
1917
catch {
2018
chalk = false;

Lombiq.NodeJs.Extensions/scripts/lint-markdown.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ const fs = require('fs');
22
const path = require('path');
33
const process = require('process');
44

5-
/* eslint-disable import/no-unresolved -- False positive, they are in the package.json. */
65
const textlintPluginMarkdown = require('@textlint/textlint-plugin-markdown').default;
76
const textLintFilterRuleComments = require('textlint-filter-rule-comments');
87
const textLintRuleCommonMisspellings = require('textlint-rule-common-misspellings').default;
@@ -11,7 +10,6 @@ const textLintRuleMaxComma = require('textlint-rule-max-comma').default;
1110
const textLintRuleNoEmptySection = require('textlint-rule-no-empty-section');
1211
const textLintRuleNoTodo = require('textlint-rule-no-todo').default;
1312
const textLintRuleNoZeroWidthSpaces = require('textlint-rule-no-zero-width-spaces').default;
14-
/* eslint-enable import/no-unresolved */
1513

1614
const findRecursively = require('./find-recursively');
1715
const { handleErrorObject, handleWarningObject } = require('./handle-error');
@@ -72,7 +70,6 @@ function handleError(error) {
7270
* @param files {string[]} The paths of the Markdown files.
7371
*/
7472
async function useMarkdownLint(files) {
75-
// eslint-disable-next-line import/no-unresolved -- ESLint does not know where to find external modules.
7673
const { lint } = await import('markdownlint/promise');
7774
const results = await lint({ files: files, config: markdownlintConfig });
7875

@@ -126,7 +123,6 @@ function newTextlintKernelOptions(config) {
126123
* @param files {string[]} The paths of the Markdown files.
127124
*/
128125
async function useTextLint(files) {
129-
// eslint-disable-next-line import/no-unresolved -- ESLint does not know where to find external modules.
130126
const { TextlintKernel } = await import('@textlint/kernel');
131127

132128
const kernel = new TextlintKernel();

Lombiq.NodeJs.Extensions/scripts/lint-styles.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ const options = {
3636
};
3737

3838
(async function main() {
39-
// eslint-disable-next-line import/no-unresolved -- ESLint does not know where to find external modules.
4039
const { default: stylelint } = await import('stylelint');
4140

4241
stylelint

0 commit comments

Comments
 (0)