diff --git a/package.json b/package.json index 88292ca..75ba036 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "watch": "babel src -w --ignore **/*.test.js,integration -d build", "prebuild": "rimraf build/", "build": "babel src --ignore **/*.test.js,integration -d build", - "prepare": "yarn build", + "prepare": "patch-package && yarn build", "format": "prettier --write \"**/*.js\"" }, "dependencies": { diff --git a/patches/eslint-plugin-import+2.24.2.patch b/patches/eslint-plugin-import+2.24.2.patch new file mode 100644 index 0000000..401b22b --- /dev/null +++ b/patches/eslint-plugin-import+2.24.2.patch @@ -0,0 +1,13 @@ +diff --git a/node_modules/eslint-plugin-import/lib/index.js b/node_modules/eslint-plugin-import/lib/index.js +index 247818e..22ebcb5 100644 +--- a/node_modules/eslint-plugin-import/lib/index.js ++++ b/node_modules/eslint-plugin-import/lib/index.js +@@ -19,7 +19,7 @@ + 'no-named-as-default': require('./rules/no-named-as-default'), + 'no-named-as-default-member': require('./rules/no-named-as-default-member'), + 'no-anonymous-default-export': require('./rules/no-anonymous-default-export'), +- 'no-unused-modules': require('./rules/no-unused-modules'), ++ // 'no-unused-modules': require('./rules/no-unused-modules'), + + 'no-commonjs': require('./rules/no-commonjs'), + 'no-amd': require('./rules/no-amd'),