From c548d4557417c0b9a37fd1652974aca006ad7893 Mon Sep 17 00:00:00 2001 From: johnvente Date: Wed, 13 Dec 2023 13:52:41 -0500 Subject: [PATCH] fix: linter problems --- .eslintrc.js | 23 ++++++++----------- .../PluggableComponent/index.test.jsx | 1 + 2 files changed, 11 insertions(+), 13 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 5aa29ab1..4cbd4e50 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -6,23 +6,20 @@ module.exports = createConfig('eslint', { settings: { 'import/resolver': { webpack: { - config: [ - path.resolve(__dirname, 'webpack.dev.config.js'), - path.resolve(__dirname, 'webpack.prod.config.js'), - ], + config: path.resolve(__dirname, 'webpack.dev.config.js'), }, }, }, rules: { 'react/function-component-definition': 'off', - 'import/no-extraneous-dependencies': [ - 'error', { - devDependencies: false, - optionalDependencies: false, - peerDependencies: false, - packageDir: __dirname, - }, - ], - + 'import/prefer-default-export': 'off', }, + overrides: [ + { + files: ['plugins/**/*.jsx'], + rules: { + 'import/no-extraneous-dependencies': 'off', + }, + }, + ], }); diff --git a/src/components/PluggableComponent/index.test.jsx b/src/components/PluggableComponent/index.test.jsx index 81ba3150..c63a16de 100644 --- a/src/components/PluggableComponent/index.test.jsx +++ b/src/components/PluggableComponent/index.test.jsx @@ -1,4 +1,5 @@ import React from 'react'; +// eslint-disable-next-line import/no-extraneous-dependencies import { render, waitFor, screen } from '@testing-library/react'; import PluggableComponent from '.';