|
@@ -4,9 +4,10 @@
|
|
|
const process = require('process');
|
|
|
|
|
|
const isRelaxed = !!process.env.SENTRY_ESLINT_RELAXED;
|
|
|
+const isCi = !!process.env.CI;
|
|
|
|
|
|
// Strict ruleset that runs on pre-commit and in local environments
|
|
|
-const strictRules = {
|
|
|
+const strictRulesNotCi = {
|
|
|
'react-hooks/exhaustive-deps': ['error'],
|
|
|
};
|
|
|
|
|
@@ -23,7 +24,7 @@ module.exports = {
|
|
|
},
|
|
|
|
|
|
rules: {
|
|
|
- ...(!isRelaxed ? strictRules : {}),
|
|
|
+ ...(!isRelaxed && !isCi ? strictRulesNotCi : {}),
|
|
|
},
|
|
|
|
|
|
overrides: [
|