This repository was archived by the owner on Jan 19, 2019. It is now read-only.
This repository was archived by the owner on Jan 19, 2019. It is now read-only.
[no-dupe-args][no-redeclare] False positive with object destructuring and inline type #164
Closed
Description
Tell us about your environment
- eslint-plugin-typescript: 20.1.1
Please show your full configuration:
module.exports = {
root: true,
env: {
browser: false,
es6: true,
node: false
},
extends: [
'plugin:vue/essential',
'@vue/standard'
],
plugins: ['typescript'],
parserOptions: {
parser: 'typescript-eslint-parser',
jsx: false
}
}
What did you do? Please include the actual source code causing the issue.
function foo ({ v1, v2 }: { v1: number, v2: number }) {
}
What did you expect to happen?
year and month is not duplicated, its inline type definition
What actually happened? Please include the actual, raw output from ESLint.
Duplicate param 'v1' no-dupe-args
Duplicate param 'v2' no-dupe-args
'v1' is already defined no-redeclare
'v2' is already defined no-redeclare