Skip to content

Commit

Permalink
fix: Resolved eslint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-stewart-thg committed Dec 18, 2024
1 parent cb0caa6 commit a26e2fe
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 11 deletions.
7 changes: 4 additions & 3 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"parser": "@babel/eslint-parser",
"extends": [
"airbnb-base",
"plugin:react/recommended"
"eslint:recommended",
"plugin:react/recommended"
],
"plugins": [
"jest",
Expand All @@ -15,7 +15,8 @@
"env": {
"browser": true,
"node": true,
"jest/globals": true
"jest/globals": true,
"es6": true
},
"parserOptions": {
"ecmaFeatures": {
Expand Down
1 change: 0 additions & 1 deletion src/react/actions/configActions.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable import/prefer-default-export */
import types from './actionTypes';

export const loadConfig = payload => ({
Expand Down
2 changes: 1 addition & 1 deletion src/react/containers/EntryContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class EntryContainer extends Component {
className={`liveblog-entry ${entry.key_event ? 'is-key-event' : ''} ${entry.css_classes}`}
>
<aside className="liveblog-entry-aside">
<a className="liveblog-meta-time" href={entry.share_link} target="_blank">
<a className="liveblog-meta-time" href={entry.share_link} target="_blank" rel="noreferrer">
<span>{timeAgo(entry.entry_time)}</span>
<span>{formattedTime(entry.entry_time, config.utc_offset, config.date_format)}</span>
</a>
Expand Down
2 changes: 0 additions & 2 deletions src/react/epics/api.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-disable import/prefer-default-export */

import { combineEpics } from 'redux-observable';
import { of } from 'rxjs/observable/of';
import { concat } from 'rxjs/observable/concat';
Expand Down
9 changes: 5 additions & 4 deletions src/react/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import ReactDOM from 'react-dom';
import { createRoot } from 'react-dom/client';
import { Provider } from 'react-redux';
import Polyfills from './polyfills/index';
import configureStore from './store';
Expand All @@ -10,13 +10,14 @@ import '../styles/core.scss';
Polyfills();

const store = configureStore();
const container = document.getElementById('wpcom-liveblog-container');
const root = createRoot(container);

/* eslint-disable camelcase, no-undef */
__webpack_public_path__ = `${window.liveblog_settings.plugin_dir}assets/`;

ReactDOM.render(
root.render(
<Provider store={store}>
<AppContainer />
</Provider>,
document.getElementById('wpcom-liveblog-container'),
</Provider>
);

0 comments on commit a26e2fe

Please sign in to comment.