Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[ban-types] Default options are never removed #686

Closed
Labels
bugSomething isn't workingpackage: eslint-pluginIssues related to @typescript-eslint/eslint-plugin
Milestone
@OliverJAsh

Description

@OliverJAsh

Repro

module.exports={parser:'@typescript-eslint/parser',plugins:['@typescript-eslint'],rules:{'@typescript-eslint/ban-types':['error',{types:{Omit:'Prefer `OmitStrict`.',},},],},};
// Don't use 'Object' as a type. Use Record<string, any> insteadtypeFoo1=Object;// Don't use 'Boolean' as a type. Use boolean insteadtypeFoo2=Boolean;// Don't use 'Number' as a type. Use number insteadtypeFoo3=Number;

Expected Result
No errors, because I am overriding thedefault options.

Actual Result
Each line errors. It is not possible to disable the default options.

Additional Info

Versions

packageversion
@typescript-eslint/eslint-plugin1.11.0
@typescript-eslint/parser1.11.0
TypeScript3.5.2
ESLint6.0.1
node8.15.1
npm6.9.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpackage: eslint-pluginIssues related to @typescript-eslint/eslint-plugin

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp