Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
fix eslint error
remove console log
  • Loading branch information
vraja-pro committed Oct 14, 2024
1 parent 25684d5 commit 7bc6f7e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
2 changes: 0 additions & 2 deletions packages/js/src/components/modals/SEMrushCountrySelector.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,6 @@ class SEMrushCountrySelector extends Component {

const response = await this.doRequest( keyphrase, countryCode );

console.log( 'semrush', response );

if ( response.status === 200 ) {
this.handleSuccessResponse( response );

Expand Down
2 changes: 0 additions & 2 deletions packages/js/src/components/modals/SEMrushKeyphrasesTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,6 @@ class SEMrushKeyphrasesTable extends Component {
const url = "https://www.semrush.com/analytics/keywordoverview/?q=" + encodeURIComponent( keyphrase ) +
"&db=" + encodeURIComponent( countryCode );

console.log( data );

return (
data && ! isEmpty( data.results ) && <Fragment>
<table className="yoast yoast-table">
Expand Down
11 changes: 11 additions & 0 deletions packages/semrush/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,17 @@ module.exports = {
"error",
"always",
],
"import/no-unresolved": [
"error",
{
ignore: [
// Ignore UI library and schema-blocks, or we have to build the code before linting.
// Because `main` in `package.json` points to the `build/index.js` (in the UI library), which is not present before building.
// As we are dealing with our source, not the actual NPM download, due to the monorepo setup.
"^@yoast/(ui-library|schema-blocks|style-guide|components|helpers|search-metadata-previews|social-metadata-forms|replacement-variable-editor|semrush|analysis-report|feature-flag)$",
],
},
],
},
overrides: [
{
Expand Down

0 comments on commit 7bc6f7e

Please sign in to comment.