File size: 425 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
const { rules: parentRules } = require( '../../.eslintrc.js' );

const newRestrictedImports = parentRules[ 'no-restricted-imports' ];
const filteredRestrictedPaths = newRestrictedImports[ 1 ].paths.filter(
	( path ) => 'object' !== typeof path || 'superagent' !== path.name
);

module.exports = {
	rules: {
		'no-restricted-imports': [
			newRestrictedImports[ 0 ],
			{
				paths: filteredRestrictedPaths,
			},
		],
	},
};