[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:
Jordan Harband
2016-09-12 11:02:12 -07:00
parent 6cdda0737e
commit e9141f4630
2 changed files with 9 additions and 9 deletions

View File

@@ -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',

View File

@@ -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',
}