Skip to content

Commit

Permalink
Vulnerability upgrades (#358)
Browse files Browse the repository at this point in the history
* Bump remark + remark-react

* bump web-scripts & misc updates

* bump webpack to 5.x

* clean up CODEOWNERS
  • Loading branch information
ekh64 authored Feb 24, 2022
1 parent 7e44cf8 commit 8267366
Show file tree
Hide file tree
Showing 8 changed files with 39,398 additions and 4,176 deletions.
24 changes: 24 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
module.exports = {
settings: {
react: {
version: 'detect',
},
},
parser: '@babel/eslint-parser',
extends: [
'@spotify/eslint-config-react',
'@spotify/eslint-config-base',
'prettier',
'plugin:chai-friendly/recommended',
],
env: { jest: true },
plugins: ['jest', 'chai-friendly'],
rules: {
'consistent-return': 'off',
'no-nested-ternary': 'off',
'no-console': ['error', { allow: ['warn', 'error'] }],
'jsx-a11y/click-events-have-key-events': 'off',
'jsx-a11y/no-noninteractive-element-interactions': 'off',
'no-restricted-imports': ['error', 'd3'],
},
};
24 changes: 0 additions & 24 deletions .eslintrc.json

This file was deleted.

2 changes: 1 addition & 1 deletion CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
# These owners will be the default owners for everything in
# the repo. Unless a later match takes precedence,
# These users will be requested for review when someone opens a pull request.
* @acmei @iezer @scottsheffield @ekh64
* @iezer @ekh64
4 changes: 2 additions & 2 deletions docs/src/ComponentDocs.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import _ from 'lodash';
import React from 'react';
import PropTypes from 'prop-types';
import remark from 'remark';
import { remark } from 'remark';
import remarkReact from 'remark-react';

const ComponentDocs = props => {
Expand Down Expand Up @@ -110,7 +110,7 @@ function renderType(propInfo) {

function renderMarkdown(markdownText = '') {
return remark()
.use(remarkReact)
.use(remarkReact, React)
.processSync(markdownText).contents;
}

Expand Down
Loading

0 comments on commit 8267366

Please sign in to comment.