@@ -72,9 +72,9 @@ module.exports = {
7272 extends : [
7373 "./base" ,
7474 "plugin:eslint-comments/recommended" ,
75- "plugin:import/errors" ,
76- "plugin:import/warnings" ,
77- "plugin:import/typescript" ,
75+ "plugin:import-x /errors" ,
76+ "plugin:import-x /warnings" ,
77+ "plugin:import-x /typescript" ,
7878 "prettier" ,
7979 ] ,
8080 globals : {
@@ -181,7 +181,7 @@ module.exports = {
181181 ] ,
182182
183183 "eqeqeq" : [ "error" , "smart" ] ,
184- "import/no-deprecated" : "error" ,
184+ "import-x /no-deprecated" : "error" ,
185185 "max-len" : [
186186 "error" ,
187187 {
@@ -411,13 +411,13 @@ module.exports = {
411411 * By default, libraries should not take dependencies on node libraries.
412412 * This rule can be disabled at the project level for libraries that are intended to be used only in node.
413413 */
414- "import/no-nodejs-modules" : [ "error" ] ,
414+ "import-x /no-nodejs-modules" : [ "error" ] ,
415415
416416 /**
417417 * Allow Fluid Framework to import from its own internal packages.
418- * https://github.com/import-js /eslint-plugin-import/blob/main /docs/rules/no-internal-modules.md
418+ * https://github.com/un-ts /eslint-plugin-import-x /blob/master /docs/rules/no-internal-modules.md
419419 */
420- "import/no-internal-modules" : [
420+ "import-x /no-internal-modules" : [
421421 "error" ,
422422 {
423423 allow : permittedImports ,
@@ -467,8 +467,8 @@ module.exports = {
467467 rules : {
468468 "@typescript-eslint/no-invalid-this" : "off" ,
469469 "@typescript-eslint/unbound-method" : "off" , // This rule has false positives in many of our test projects.
470- "import/no-nodejs-modules" : "off" , // Node libraries are OK for test files.
471- "import/no-deprecated" : "off" , // Deprecated APIs are OK to use in test files.
470+ "import-x /no-nodejs-modules" : "off" , // Node libraries are OK for test files.
471+ "import-x /no-deprecated" : "off" , // Deprecated APIs are OK to use in test files.
472472
473473 // Disabled for test files
474474 "@typescript-eslint/consistent-type-exports" : "off" ,
@@ -482,7 +482,7 @@ module.exports = {
482482 ] ,
483483
484484 // For test files only, additionally allow import of '/test*' and '/internal/test*' exports.
485- "import/no-internal-modules" : [
485+ "import-x /no-internal-modules" : [
486486 "error" ,
487487 {
488488 allow : [ "@fluid*/*/test*" , "@fluid*/*/internal/test*" ] . concat (
@@ -492,23 +492,23 @@ module.exports = {
492492 ] ,
493493
494494 // Test code may leverage dev dependencies
495- "import/no-extraneous-dependencies" : [ "error" , { devDependencies : true } ] ,
495+ "import-x /no-extraneous-dependencies" : [ "error" , { devDependencies : true } ] ,
496496 } ,
497497 } ,
498498 ] ,
499499 settings : {
500- "import/extensions" : [ ".ts" , ".tsx" , ".d.ts" , ".js" , ".jsx" ] ,
501- "import/parsers" : {
500+ "import-x /extensions" : [ ".ts" , ".tsx" , ".d.ts" , ".js" , ".jsx" ] ,
501+ "import-x /parsers" : {
502502 "@typescript-eslint/parser" : [ ".ts" , ".tsx" , ".d.ts" ] ,
503503 } ,
504- "import/resolver" : {
504+ "import-x /resolver" : {
505505 /**
506- * Note: the key order of import/resolver is relevant in the completely resolved eslint config (see ./printed-configs).
506+ * Note: the key order of import-x /resolver is relevant in the completely resolved eslint config (see ./printed-configs).
507507 * Resolvers are tried in key order, and the first one to successfully resolve the import wins. See:
508- * https://github.com/import-js /eslint-plugin-import/blob/c0ac54b8a721c2b1c9048838acc4d6282f4fe7a7/ utils/resolve.js#L196
508+ * https://github.com/un-ts /eslint-plugin-import-x /blob/master/src/ utils/resolve.ts
509509 *
510510 * It's important that the typescript resolver is first, as the node resolver legitimately resolves some imports to modules
511- * with stripped type information, which can cause silent negatives in lint rules. For example, import/no-deprecated fails
511+ * with stripped type information, which can cause silent negatives in lint rules. For example, import-x /no-deprecated fails
512512 * to lint against import and usage of deprecated types when the import is resolvable and resolved using the node resolver.
513513 */
514514 typescript : {
0 commit comments