update eslint, babel-eslint, and eslint-config-scratch

This commit is contained in:
seotts 2020-11-10 16:39:11 -05:00
parent cdf0afc217
commit 706ee3ad5a
3 changed files with 6 additions and 5 deletions

View file

@ -50,7 +50,7 @@
"autoprefixer": "9.7.4",
"babel-cli": "6.26.0",
"babel-core": "^6.23.1",
"babel-eslint": "^8.2.1",
"babel-eslint": "^10.1.0",
"babel-jest": "^23.0.1",
"babel-loader": "^7.1.4",
"babel-plugin-react-intl": "3.0.1",
@ -60,9 +60,9 @@
"css-loader": "3.4.0",
"enzyme": "^3.6.0",
"enzyme-adapter-react-16": "^1.5.0",
"eslint": "^4.4.1",
"eslint": "^7.13.0",
"eslint-config-import": "^0.13.0",
"eslint-config-scratch": "^5.0.0",
"eslint-config-scratch": "^6.0.0",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-react": "7.20.3",
"gh-pages": "github:rschamp/gh-pages#publish-branch-to-subfolder",

View file

@ -1,4 +1,6 @@
/* eslint-disable import/no-commonjs */
module.exports = {
/* eslint-enable import/no-commonjs */
root: true,
extends: ['scratch', 'scratch/es6', 'scratch/react', 'import'],
env: {

View file

@ -634,8 +634,7 @@ const styleShape = function (path, options) {
);
}
}
if (options.hasOwnProperty('strokeWidth')) path.strokeWidth = options.strokeWidth;
if (Object.prototype.hasOwnProperty.call(options, 'strokeWidth')) path.strokeWidth = options.strokeWidth;
};
export {