Skip to content

Commit 0d61a9f

Browse files
committed
chore: Upgrade dependencies
1 parent f789bbf commit 0d61a9f

File tree

6 files changed

+1563
-1261
lines changed

6 files changed

+1563
-1261
lines changed

.eslintrc

+3
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,12 @@
1111
"prettier/prettier": "error",
1212
"react/require-default-props": "off",
1313
"react/jsx-filename-extension": ["error", { "extensions": [".js"] }],
14+
"react/jsx-props-no-spreading": "off",
1415
"react/forbid-prop-types": "off",
1516
"react/prefer-stateless-function": "off",
1617
"react/sort-comp": "off",
18+
"react/static-property-placement": "off",
19+
"react/state-in-constructor": "off",
1720
"jsx-a11y/no-static-element-interactions": "off",
1821
"import/no-extraneous-dependencies": [
1922
"error",

package.json

+15-16
Original file line numberDiff line numberDiff line change
@@ -66,44 +66,43 @@
6666
"babel-loader": "^8.0.0",
6767
"babel-plugin-transform-react-remove-prop-types": "^0.4.15",
6868
"conventional-github-releaser": "^3.1.2",
69-
"cross-env": "^5.2.0",
70-
"css-loader": "^2.1.0",
69+
"cross-env": "^6.0.3",
70+
"css-loader": "^3.3.2",
7171
"enzyme": "^3.5.0",
7272
"enzyme-adapter-react-16": "^1.3.0",
73-
"eslint": "^5.4.0",
74-
"eslint-config-airbnb": "^17.1.0",
75-
"eslint-config-prettier": "^4.0.0",
73+
"eslint": "^6.7.2",
74+
"eslint-config-airbnb": "^18.0.1",
75+
"eslint-config-prettier": "^6.7.0",
7676
"eslint-plugin-import": "^2.14.0",
7777
"eslint-plugin-jsx-a11y": "^6.1.1",
7878
"eslint-plugin-prettier": "^3.0.1",
7979
"eslint-plugin-react": "^7.11.1",
80-
"file-loader": "^3.0.1",
80+
"file-loader": "^5.0.2",
8181
"hoist-non-react-statics": "^3.0.1",
8282
"html-loader": "^0.5.5",
8383
"html-webpack-plugin": "^3.2.0",
84-
"husky": "^1.3.1",
84+
"husky": "^3.1.0",
8585
"jest": "^24.1.0",
8686
"less": "^3.8.1",
87-
"less-loader": "^4.1.0",
88-
"lint-staged": "^8.1.0",
89-
"mini-css-extract-plugin": "^0.5.0",
87+
"less-loader": "^5.0.0",
88+
"lint-staged": "^9.5.0",
89+
"mini-css-extract-plugin": "^0.8.0",
9090
"npm-run-all": "^4.1.3",
9191
"prettier": "^1.14.2",
9292
"react": "^16.4.2",
9393
"react-dom": "^16.4.2",
9494
"react-live": "^1.11.0",
9595
"react-modal": "^3.5.1",
9696
"react-test-renderer": "^16.4.2",
97-
"rimraf": "^2.6.2",
97+
"rimraf": "^3.0.0",
9898
"rollup": "^1.0.1",
9999
"rollup-plugin-babel": "^4.0.2",
100-
"rollup-plugin-commonjs": "^9.1.6",
100+
"rollup-plugin-commonjs": "^10.1.0",
101101
"rollup-plugin-ignore": "^1.0.3",
102-
"rollup-plugin-node-resolve": "^4.0.0",
102+
"rollup-plugin-node-resolve": "^5.2.0",
103103
"rollup-plugin-replace": "^2.0.0",
104-
"rollup-plugin-uglify": "^6.0.0",
105-
"standard-version": "^4.4.0",
106-
"uglifyjs-webpack-plugin": "^2.1.1",
104+
"rollup-plugin-terser": "^5.1.3",
105+
"standard-version": "^7.0.1",
107106
"webpack": "^4.17.1",
108107
"webpack-cli": "^3.1.0",
109108
"webpack-dev-server": "^3.1.7"

rollup.config.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import babel from 'rollup-plugin-babel';
22
import nodeResolve from 'rollup-plugin-node-resolve';
33
import commonjs from 'rollup-plugin-commonjs';
44
import replace from 'rollup-plugin-replace';
5-
import { uglify } from 'rollup-plugin-uglify';
5+
import { terser } from 'rollup-plugin-terser';
66
import ignore from 'rollup-plugin-ignore';
77

88
const devConfig = {
@@ -47,7 +47,7 @@ const productionConfig = {
4747
replace({
4848
'process.env.NODE_ENV': JSON.stringify('production'),
4949
}),
50-
uglify(),
50+
terser(),
5151
],
5252
external: ['react'],
5353
};

src/components/UncontrolledTabs.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,6 @@ export default class UncontrolledTabs extends Component {
298298

299299
handleClick = e => {
300300
let node = e.target;
301-
// eslint-disable-next-line no-cond-assign
302301
do {
303302
if (this.isTabFromContainer(node)) {
304303
if (isTabDisabled(node)) {
@@ -312,6 +311,7 @@ export default class UncontrolledTabs extends Component {
312311
this.setSelected(index, e);
313312
return;
314313
}
314+
// eslint-disable-next-line no-cond-assign
315315
} while ((node = node.parentNode) != null);
316316
};
317317

webpack.config.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ const webpack = require('webpack');
22
const path = require('path');
33
const HtmlWebpackPlugin = require('html-webpack-plugin');
44
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
5-
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
65

76
const sourceDirectory = path.resolve(__dirname, 'examples/src');
87
const targetDirectory = path.resolve(__dirname, 'examples/dist');
@@ -71,6 +70,9 @@ module.exports = {
7170
use: [
7271
{
7372
loader: 'file-loader',
73+
options: {
74+
esModule: false,
75+
},
7476
},
7577
],
7678
sideEffects: true,

0 commit comments

Comments
 (0)