Skip to content

Commit

Permalink
fix: eslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
shahramk committed Jul 28, 2023
1 parent e3b0f3f commit fb26096
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 26 deletions.
45 changes: 21 additions & 24 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,30 +1,27 @@
module.exports = {
"env": {
"browser": true,
"es6": true
env: {
browser: true,
es6: true
},
"extends": [
'plugin:@newrelic/eslint-plugin-newrelic/react',
'plugin:@newrelic/eslint-plugin-newrelic/jest',
'plugin:@newrelic/eslint-plugin-newrelic/prettier'
extends: [
'plugin:@newrelic/eslint-plugin-newrelic/react',
'plugin:@newrelic/eslint-plugin-newrelic/jest',
'plugin:@newrelic/eslint-plugin-newrelic/prettier'
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly'
},
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module"
parser: 'babel-eslint',
parserOptions: {
ecmaFeatures: {
jsx: true
},
ecmaVersion: 2018,
sourceType: 'module'
},
"plugins": [
"react",
"prettier"
],
"rules": {
"prettier/prettier": "error"
plugins: ['react', 'prettier'],
rules: {
'prettier/prettier': 'error'
}
};
};
4 changes: 2 additions & 2 deletions components/incidents/incident-timeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ export default class IncidentTimeline extends React.PureComponent {
dateInnerStyle={{
background: this.backgroundColors[incident.impact]
}}
key={`${index}`}
dateText={`${date.toDateString()}`}
key={index}
dateText={date.toDateString()}
>
<IndIncident incident={incident} />
</TimelineItem>
Expand Down

0 comments on commit fb26096

Please sign in to comment.