Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e9141f4

Browse files
committed
[eslint config] [base] [patch] fix category of no-restricted-properties
Per eslint/eslint#7112 / eslint/eslint#7118
1 parent 6cdda07 commit e9141f4

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

packages/eslint-config-airbnb-base/rules/best-practices.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,15 @@ module.exports = {
172172
// disallow declaring the same variable more then once
173173
'no-redeclare': 'error',
174174

175+
// disallow certain object properties
176+
// http://eslint.org/docs/rules/no-restricted-properties
177+
// TODO: enable, semver-major
178+
'no-restricted-properties': ['off', {
179+
object: 'arguments',
180+
property: 'callee',
181+
message: 'arguments.callee is deprecated,'
182+
}],
183+
175184
// disallow use of assignment in return statement
176185
'no-return-assign': 'error',
177186

packages/eslint-config-airbnb-base/rules/node.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,6 @@ module.exports = {
3333
// restrict usage of specified node modules
3434
'no-restricted-modules': 'off',
3535

36-
// disallow certain object properties
37-
// http://eslint.org/docs/rules/no-restricted-properties
38-
// TODO: enable, semver-major
39-
'no-restricted-properties': ['off', {
40-
object: 'arguments',
41-
property: 'callee',
42-
message: 'arguments.callee is deprecated,'
43-
}],
44-
4536
// disallow use of synchronous methods (off by default)
4637
'no-sync': 'off',
4738
}

0 commit comments

Comments
 (0)