Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

Upgrades ESLint and related plugins/configs. #2231

Closed
wants to merge 1 commit into from
Closed

Upgrades ESLint and related plugins/configs. #2231

wants to merge 1 commit into from

Conversation

mrkev
Copy link
Contributor

@mrkev mrkev commented Oct 29, 2019

Summary

This fixes some security issues reported by GitHub:

Before: 1 Low | 1 Moderate | 1742 High | 2 Critical
After:  1 Low | 1 Moderate | 1739 High | 1 Critical

.eslintrc.js

Changed the value of rules because it was required by the new eslint-plugin-prettier. See prettier/eslint-plugin-prettier@478c7e5

/src

Changed some lints referencing fb-www/. ESLint 6 reports errors on rules that aren't found (see: eslint/eslint@2d32a9e). For some reason fb-www rules are not found. Changing the disables to be /* eslint-disable-next-line */ makes them valid both the open source config and Facebook's internal config.

Etc

Ran tests and ran lint.

  • Tests pass.
  • There are 4 lint warnings, but no errors. Before this PR there were 3. Considering this fairly inconsequential.

This fixes some security issues reported by github too.
Copy link

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mrkev has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link

@mrkev merged this pull request in 53d2a63.

mmissey pushed a commit to mmissey/draft-js that referenced this pull request Mar 24, 2020
Summary:
This fixes some security issues reported by GitHub.

There are still warnings on the lint, but no errors. I had to make some changes. Most notably:

## `.eslintrc.js`

Changed the value of `rules` because it was required by the new `eslint-plugin-prettier`. See prettier/eslint-plugin-prettier@478c7e5

## `/src`

Changed some lints referencing `fb-www/`. ESLint 6 reports errors on rules that aren't found (see: eslint/eslint@2d32a9e). For some reason `fb-www` rules are not found. Changing the disables to be `/* eslint-disable-next-line */` makes them valid both the open source config and Facebook's internal config.
Pull Request resolved: facebookarchive#2231

Reviewed By: claudiopro

Differential Revision: D18206971

Pulled By: mrkev

fbshipit-source-id: 55ca3e8a24c61250dd7cd01220ed55c73a140b9d
vilemj-Viclick pushed a commit to kontent-ai/draft-js that referenced this pull request Jul 16, 2020
Summary:
This fixes some security issues reported by GitHub.

There are still warnings on the lint, but no errors. I had to make some changes. Most notably:

## `.eslintrc.js`

Changed the value of `rules` because it was required by the new `eslint-plugin-prettier`. See prettier/eslint-plugin-prettier@478c7e5

## `/src`

Changed some lints referencing `fb-www/`. ESLint 6 reports errors on rules that aren't found (see: eslint/eslint@2d32a9e). For some reason `fb-www` rules are not found. Changing the disables to be `/* eslint-disable-next-line */` makes them valid both the open source config and Facebook's internal config.
Pull Request resolved: facebookarchive#2231

Reviewed By: claudiopro

Differential Revision: D18206971

Pulled By: mrkev

fbshipit-source-id: 55ca3e8a24c61250dd7cd01220ed55c73a140b9d
alicayan008 pushed a commit to alicayan008/draft-js that referenced this pull request Jul 4, 2023
Summary:
This fixes some security issues reported by GitHub.

There are still warnings on the lint, but no errors. I had to make some changes. Most notably:

## `.eslintrc.js`

Changed the value of `rules` because it was required by the new `eslint-plugin-prettier`. See prettier/eslint-plugin-prettier@478c7e5

## `/src`

Changed some lints referencing `fb-www/`. ESLint 6 reports errors on rules that aren't found (see: eslint/eslint@2d32a9e). For some reason `fb-www` rules are not found. Changing the disables to be `/* eslint-disable-next-line */` makes them valid both the open source config and Facebook's internal config.
Pull Request resolved: facebookarchive/draft-js#2231

Reviewed By: claudiopro

Differential Revision: D18206971

Pulled By: mrkev

fbshipit-source-id: 55ca3e8a24c61250dd7cd01220ed55c73a140b9d
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants