mirror of
https://github.com/scratchfoundation/scratch-paint.git
synced 2024-12-22 21:42:30 -05:00
update eslint, babel-eslint, and eslint-config-scratch
This commit is contained in:
parent
cdf0afc217
commit
706ee3ad5a
3 changed files with 6 additions and 5 deletions
|
@ -50,7 +50,7 @@
|
||||||
"autoprefixer": "9.7.4",
|
"autoprefixer": "9.7.4",
|
||||||
"babel-cli": "6.26.0",
|
"babel-cli": "6.26.0",
|
||||||
"babel-core": "^6.23.1",
|
"babel-core": "^6.23.1",
|
||||||
"babel-eslint": "^8.2.1",
|
"babel-eslint": "^10.1.0",
|
||||||
"babel-jest": "^23.0.1",
|
"babel-jest": "^23.0.1",
|
||||||
"babel-loader": "^7.1.4",
|
"babel-loader": "^7.1.4",
|
||||||
"babel-plugin-react-intl": "3.0.1",
|
"babel-plugin-react-intl": "3.0.1",
|
||||||
|
@ -60,9 +60,9 @@
|
||||||
"css-loader": "3.4.0",
|
"css-loader": "3.4.0",
|
||||||
"enzyme": "^3.6.0",
|
"enzyme": "^3.6.0",
|
||||||
"enzyme-adapter-react-16": "^1.5.0",
|
"enzyme-adapter-react-16": "^1.5.0",
|
||||||
"eslint": "^4.4.1",
|
"eslint": "^7.13.0",
|
||||||
"eslint-config-import": "^0.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-import": "^2.18.2",
|
||||||
"eslint-plugin-react": "7.20.3",
|
"eslint-plugin-react": "7.20.3",
|
||||||
"gh-pages": "github:rschamp/gh-pages#publish-branch-to-subfolder",
|
"gh-pages": "github:rschamp/gh-pages#publish-branch-to-subfolder",
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
|
/* eslint-disable import/no-commonjs */
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
/* eslint-enable import/no-commonjs */
|
||||||
root: true,
|
root: true,
|
||||||
extends: ['scratch', 'scratch/es6', 'scratch/react', 'import'],
|
extends: ['scratch', 'scratch/es6', 'scratch/react', 'import'],
|
||||||
env: {
|
env: {
|
||||||
|
|
|
@ -634,8 +634,7 @@ const styleShape = function (path, options) {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (Object.prototype.hasOwnProperty.call(options, 'strokeWidth')) path.strokeWidth = options.strokeWidth;
|
||||||
if (options.hasOwnProperty('strokeWidth')) path.strokeWidth = options.strokeWidth;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export {
|
export {
|
||||||
|
|
Loading…
Reference in a new issue