Skip to content

Commit c548d45

Browse files
committed
fix: linter problems
1 parent 5fcc77f commit c548d45

File tree

2 files changed

+11
-13
lines changed

2 files changed

+11
-13
lines changed

.eslintrc.js

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,20 @@ module.exports = createConfig('eslint', {
66
settings: {
77
'import/resolver': {
88
webpack: {
9-
config: [
10-
path.resolve(__dirname, 'webpack.dev.config.js'),
11-
path.resolve(__dirname, 'webpack.prod.config.js'),
12-
],
9+
config: path.resolve(__dirname, 'webpack.dev.config.js'),
1310
},
1411
},
1512
},
1613
rules: {
1714
'react/function-component-definition': 'off',
18-
'import/no-extraneous-dependencies': [
19-
'error', {
20-
devDependencies: false,
21-
optionalDependencies: false,
22-
peerDependencies: false,
23-
packageDir: __dirname,
24-
},
25-
],
26-
15+
'import/prefer-default-export': 'off',
2716
},
17+
overrides: [
18+
{
19+
files: ['plugins/**/*.jsx'],
20+
rules: {
21+
'import/no-extraneous-dependencies': 'off',
22+
},
23+
},
24+
],
2825
});

src/components/PluggableComponent/index.test.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import React from 'react';
2+
// eslint-disable-next-line import/no-extraneous-dependencies
23
import { render, waitFor, screen } from '@testing-library/react';
34
import PluggableComponent from '.';
45

0 commit comments

Comments
 (0)