Skip to content
This repository was archived by the owner on Feb 21, 2020. It is now read-only.

Commit 6c55e8a

Browse files
committed
turn on rule to prevent using internals of packages
1 parent 61ceb70 commit 6c55e8a

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/import.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@ module.exports = {
22
plugins: [
33
'import',
44
],
5+
overrides: [
6+
{
7+
files: [
8+
'*.test.js',
9+
],
10+
rules: {
11+
'import/no-internal-modules': 'off',
12+
},
13+
},
14+
],
515
rules: {
616
'import/default': 'error',
717
'import/dynamic-import-chunkname': 'off',
@@ -37,7 +47,7 @@ module.exports = {
3747
optionalDependencies: true, // do not report optional dependencies
3848
peerDependencies: true, // do not report peer dependencies
3949
}],
40-
'import/no-internal-modules': 'off',
50+
'import/no-internal-modules': 'error',
4151
'import/no-mutable-exports': 'error',
4252
'import/no-named-as-default': 'error',
4353
'import/no-named-as-default-member': 'error',

0 commit comments

Comments
 (0)