Skip to content

Update eslint plugins version #437

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Feb 7, 2020
Merged
7 changes: 3 additions & 4 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
const path = require('path');

module.exports = {
extends: 'vinta/recommended',
rules: {
'jest/prefer-inline-snapshots': ['off'],
},
root: true,
extends: ['vinta/recommended'],
rules: {},
env: {
es6: true,
browser: true,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import PropTypes from 'prop-types';
import React from 'react';

import ColorDisplay from '../ColorDisplay';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { shallow } from 'enzyme';
import React from 'react';

import ColorChanger from '../ColorChanger';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import PropTypes from 'prop-types';
import React from 'react';

import './style.scss';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { shallow } from 'enzyme';
import React from 'react';

import ColorDisplay from '../ColorDisplay';

Expand Down
2 changes: 1 addition & 1 deletion frontend/js/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// import pages
import React from 'react';
import * as Sentry from '@sentry/browser';
import React from 'react';
import ReactDOM from 'react-dom';

import './bootstrap-includes';
Expand Down
2 changes: 1 addition & 1 deletion frontend/js/utils/SentryBoundary.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as Sentry from '@sentry/browser';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import React, { Component } from 'react';

const FallbackUI = ({ eventId }) => (
<>
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,20 +62,20 @@
"enzyme": "~3.11.0",
"enzyme-adapter-react-16": "~1.15.2",
"enzyme-to-json": "~3.4.0",
"eslint": "^5.16.0",
"eslint": "^6.8.0",
"eslint-config-prettier": "~6.1.0",
"eslint-config-vinta": "~1.3.0",
"eslint-config-vinta": "~1.4.3",
"eslint-import-resolver-webpack": "~0.12.0",
"eslint-plugin-babel": "~5.3.0",
"eslint-plugin-import": "~2.20.1",
"eslint-plugin-jest": "~22.15.2",
"eslint-plugin-jest": "~22.21.0",
"eslint-plugin-jsx-a11y": "~6.2.3",
"eslint-plugin-prettier": "~3.1.0",
"eslint-plugin-promise": "~4.2.1",
"eslint-plugin-react": "~7.14.3",
"eslint-plugin-react-hooks": "~1.6.1",
"eslint-plugin-sonarjs": "~0.4.0",
"eslint-plugin-unicorn": "~9.1.1",
"eslint-plugin-react": "~7.18.3",
"eslint-plugin-react-hooks": "~2.3.0",
"eslint-plugin-sonarjs": "~0.5.0",
"eslint-plugin-unicorn": "~15.0.1",
"identity-obj-proxy": "~3.0.0",
"jest": "~23.6.0",
"jest-css-modules": "~2.1.0",
Expand Down