Skip to content

Commit 1f48d14

Browse files
committed
[eslint config] [base] [breaking] legacy: Enable 'strict'
This enables the `strict` rule in 'safe' mode: https://eslint.org/docs/rules/strict#safe
1 parent 4539dbc commit 1f48d14

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/eslint-config-airbnb-base/legacy.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ module.exports = {
2727
property: '__defineSetter__',
2828
message: 'Please use Object.defineProperty instead.',
2929
}],
30-
'no-var': 'off'
30+
'no-var': 'off',
31+
strict: ['error', 'safe'],
3132
}
3233
};

0 commit comments

Comments
 (0)