-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
enhancement: plugin rule optionNew rule option for an existing eslint-plugin ruleNew rule option for an existing eslint-plugin rulehas prthere is a PR raised to close thisthere is a PR raised to close thispackage: eslint-pluginIssues related to @typescript-eslint/eslint-pluginIssues related to @typescript-eslint/eslint-plugin
Description
Repro
// "typescript/array-type": ["error", "array"]
const x: Array<number> = [1];
// fixes to
const x: number[] = [1];
// "typescript/array-type": ["error", "ReadonlyArray"]
const x: ReadonlyArray<number> = [1];
// fixes to
const x: readonly number[] = [1];
// "typescript/array-type": ["error", "array", "ReadonlyArray"]
const x: ReadonlyArray<number> = [1];
const y: Array<number> = [1];
// fixes to
const x: readonly number[] = [1];
const y: number[] = [1];
Versions
package | version |
---|---|
@typescript-eslint/eslint-plugin |
1.10.2 |
@typescript-eslint/parser |
1.10.2 |
TypeScript |
3.5.2 |
ESLint |
5.16.0 |
node |
8.15.0 |
npm |
6.4.1 |
RettentoRectangle, a-tarasyuk, j-f1, emillaine and ronaldronson
Metadata
Metadata
Assignees
Labels
enhancement: plugin rule optionNew rule option for an existing eslint-plugin ruleNew rule option for an existing eslint-plugin rulehas prthere is a PR raised to close thisthere is a PR raised to close thispackage: eslint-pluginIssues related to @typescript-eslint/eslint-pluginIssues related to @typescript-eslint/eslint-plugin