|
@@ -5,6 +5,11 @@ const process = require('process');
|
|
|
|
|
|
const isRelaxed = !!process.env.SENTRY_ESLINT_RELAXED;
|
|
|
|
|
|
+// Strict ruleset that runs on pre-commit and in local environments
|
|
|
+const strictRules = {
|
|
|
+ 'react-hooks/exhaustive-deps': ['error'],
|
|
|
+};
|
|
|
+
|
|
|
module.exports = {
|
|
|
extends: [isRelaxed ? 'sentry-app' : 'sentry-app/strict'],
|
|
|
globals: {
|
|
@@ -17,7 +22,9 @@ module.exports = {
|
|
|
jest: true,
|
|
|
},
|
|
|
|
|
|
- rules: {},
|
|
|
+ rules: {
|
|
|
+ ...(!isRelaxed ? strictRules : {}),
|
|
|
+ },
|
|
|
|
|
|
overrides: [
|
|
|
{
|