File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -1366,7 +1366,7 @@ rules[ 'import/no-deprecated' ] = 'error';
1366
1366
* @name import/no-extraneous-dependencies
1367
1367
* @memberof rules
1368
1368
* @type {string }
1369
- * @default 'error '
1369
+ * @default 'off '
1370
1370
* @see [import/no-extraneous-dependencies]{@link https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-extraneous-dependencies.md}
1371
1371
*
1372
1372
* @example
@@ -1376,22 +1376,28 @@ rules[ 'import/no-deprecated' ] = 'error';
1376
1376
* // Bad...
1377
1377
* import foo from 'some-extranous-module';
1378
1378
*/
1379
- rules [ 'import/no-extraneous-dependencies' ] = 'error' ;
1379
+ rules [ 'import/no-extraneous-dependencies' ] = 'off' ; // NOTE: disabled to allow imports of `@stdlib/*` type declarations
1380
1380
1381
1381
/**
1382
1382
* Prevents importing the submodules of other modules.
1383
1383
*
1384
1384
* @name import/no-internal-modules
1385
1385
* @memberof rules
1386
1386
* @type {string }
1387
- * @default 'error '
1387
+ * @default 'off '
1388
1388
* @see [import/no-internal-modules]{@link https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-internal-modules.md}
1389
1389
*
1390
1390
* @example
1391
1391
* // Bad...
1392
1392
* import something from 'module/some/internal/path';
1393
1393
*/
1394
- rules [ 'import/no-internal-modules' ] = 'error' ;
1394
+ rules [ 'import/no-internal-modules' ] = [
1395
+ 'error' , {
1396
+ 'allow' : [
1397
+ '@stdlib/**'
1398
+ ]
1399
+ }
1400
+ ] ;
1395
1401
1396
1402
/**
1397
1403
* Forbids import statements that import nothing.
You can’t perform that action at this time.
0 commit comments