mirror of
https://github.com/airbnb/javascript.git
synced 2026-01-14 08:38:08 -05:00
[eslint config] [base] [patch] fix category of no-restricted-properties
Per https://github.com/eslint/eslint/issues/7112 / https://github.com/eslint/eslint/issues/7118
This commit is contained in:
@@ -172,6 +172,15 @@ module.exports = {
|
||||
// disallow declaring the same variable more then once
|
||||
'no-redeclare': 'error',
|
||||
|
||||
// disallow certain object properties
|
||||
// http://eslint.org/docs/rules/no-restricted-properties
|
||||
// TODO: enable, semver-major
|
||||
'no-restricted-properties': ['off', {
|
||||
object: 'arguments',
|
||||
property: 'callee',
|
||||
message: 'arguments.callee is deprecated,'
|
||||
}],
|
||||
|
||||
// disallow use of assignment in return statement
|
||||
'no-return-assign': 'error',
|
||||
|
||||
|
||||
@@ -33,15 +33,6 @@ module.exports = {
|
||||
// restrict usage of specified node modules
|
||||
'no-restricted-modules': 'off',
|
||||
|
||||
// disallow certain object properties
|
||||
// http://eslint.org/docs/rules/no-restricted-properties
|
||||
// TODO: enable, semver-major
|
||||
'no-restricted-properties': ['off', {
|
||||
object: 'arguments',
|
||||
property: 'callee',
|
||||
message: 'arguments.callee is deprecated,'
|
||||
}],
|
||||
|
||||
// disallow use of synchronous methods (off by default)
|
||||
'no-sync': 'off',
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user