Skip to content

Commit 2035719

Browse files
committed
Testing: Remove custom import resolver
Redundant with TypeScript resolver changes
1 parent c15a3f9 commit 2035719

File tree

5 files changed

+1
-47
lines changed

5 files changed

+1
-47
lines changed

.eslintrc.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,6 @@ module.exports = {
137137
jsdoc: {
138138
mode: 'typescript',
139139
},
140-
'import/internal-regex': null,
141-
'import/resolver': require.resolve( './tools/eslint/import-resolver' ),
142140
},
143141
rules: {
144142
'jest/expect-expect': 'off',

packages/eslint-plugin/configs/recommended-with-formatting.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Exclude bundled WordPress packages from the list.
2-
const wpPackagesRegExp = '^@wordpress/(?!(icons|interface|style-engine))';
3-
41
const config = {
52
extends: [
63
require.resolve( './jsx-a11y.js' ),
@@ -20,7 +17,6 @@ const config = {
2017
wp: 'readonly',
2118
},
2219
settings: {
23-
'import/internal-regex': wpPackagesRegExp,
2420
'import/extensions': [ '.js', '.jsx' ],
2521
'import/resolver': {
2622
typescript: true,
@@ -33,12 +29,7 @@ const config = {
3329
peerDependencies: true,
3430
},
3531
],
36-
'import/no-unresolved': [
37-
'error',
38-
{
39-
ignore: [ wpPackagesRegExp ],
40-
},
41-
],
32+
'import/no-unresolved': 'error',
4233
'import/default': 'warn',
4334
'import/named': 'warn',
4435
},

packages/react-native-editor/.eslintrc.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ module.exports = {
1414
version: 'detect',
1515
flowVersion: '0.92.0',
1616
},
17-
'import/resolver': require.resolve(
18-
'../../tools/eslint/import-resolver'
19-
),
2017
},
2118
rules: {
2219
'no-restricted-syntax': [

platform-docs/.eslintrc.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ module.exports = {
88
version: 'detect',
99
flowVersion: '0.92.0',
1010
},
11-
'import/resolver': require.resolve( '../tools/eslint/import-resolver' ),
1211
},
1312
overrides: [
1413
{

tools/eslint/import-resolver.js

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)