Override CRA for ESLint

This commit is contained in:
Federico Kereki
2018-06-20 22:43:13 -03:00
parent 7bf3b062e4
commit c0669e6ad8
10 changed files with 693 additions and 122 deletions
+11
View File
@@ -0,0 +1,11 @@
const rewireEslint = require("react-app-rewire-eslint");
function overrideEslintOptions(options) {
// do stuff with the eslint options...
return options;
}
// eslint-disable-next-line no-undef
module.exports = function override(config, env) {
config = rewireEslint(config, env, overrideEslintOptions);
return config;
};