Add ESLint shared settings to detect React version

pull/21833/head
Germain Souquet 2021-08-25 09:36:35 +01:00
parent 9444995305
commit 237212b082
1 changed files with 5 additions and 0 deletions

View File

@ -63,6 +63,11 @@ module.exports = {
"@typescript-eslint/ban-ts-comment": "off", "@typescript-eslint/ban-ts-comment": "off",
}, },
}], }],
settings: {
react: {
version: "detect",
}
}
}; };
function buildRestrictedPropertiesOptions(properties, message) { function buildRestrictedPropertiesOptions(properties, message) {