Skip to content

Commit

Permalink
Update dependencies (#705)
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker committed May 2, 2020
1 parent efdb03a commit aab97b4
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 14 deletions.
13 changes: 7 additions & 6 deletions package.json
Expand Up @@ -44,27 +44,27 @@
"regexp-tree": "^0.1.21",
"reserved-words": "^0.1.2",
"safe-regex": "^2.1.1",
"semver": "^7.1.3"
"semver": "^7.3.2"
},
"devDependencies": {
"@ava/babel": "^1.0.1",
"@lubien/fixture-beta-package": "^1.0.0-beta.1",
"@typescript-eslint/parser": "^2.24.0",
"ava": "^3.5.0",
"@typescript-eslint/parser": "^2.30.0",
"ava": "^3.8.1",
"babel-eslint": "^10.1.0",
"chalk": "^3.0.0",
"chalk": "^4.0.0",
"del": "^5.1.0",
"eslint": "^6.8.0",
"eslint-ava-rule-tester": "^4.0.0",
"eslint-plugin-eslint-plugin": "^2.2.1",
"execa": "^4.0.0",
"listr": "^0.14.3",
"nyc": "^15.0.0",
"nyc": "^15.0.1",
"outdent": "^0.7.1",
"pify": "^5.0.0",
"typescript": "^3.8.3",
"vue-eslint-parser": "^7.0.0",
"xo": "^0.28.0"
"xo": "^0.30.0"
},
"peerDependencies": {
"eslint": ">=6.8.0"
Expand Down Expand Up @@ -107,6 +107,7 @@
],
"rules": {
"strict": "error",
"unicorn/no-null": "error",
"unicorn/string-content": "off"
}
}
Expand Down
15 changes: 9 additions & 6 deletions rules/prefer-reflect-apply.js
Expand Up @@ -4,12 +4,15 @@ const getDocumentationUrl = require('./utils/get-documentation-url');
const isLiteralValue = require('./utils/is-literal-value');

const isApplySignature = (argument1, argument2) => (
// Please remove this file from `test/lint/lint.js` when fixing `null` issue
(isLiteralValue(argument1, null) ||
argument1.type === 'ThisExpression') &&
(argument2.type === 'ArrayExpression' ||
(argument2.type === 'Identifier' &&
argument2.name === 'arguments'))
(
// eslint-disable-next-line unicorn/no-null
isLiteralValue(argument1, null) ||
argument1.type === 'ThisExpression'
) &&
(
argument2.type === 'ArrayExpression' ||
(argument2.type === 'Identifier' && argument2.name === 'arguments')
)
);

const getReflectApplyCall = (sourceCode, func, receiver, arguments_) => (
Expand Down
2 changes: 0 additions & 2 deletions test/lint/lint.js
Expand Up @@ -14,8 +14,6 @@ const cli = new CLIEngine({
useEslintrc: false,
fix,
ignorePattern: [
// This can't disable by `eslint-disable` before `xo` update
'rules/prefer-reflect-apply.js'
]
});

Expand Down

0 comments on commit aab97b4

Please sign in to comment.